branchrust_reboot/main/Hackweek-SkinViewercancel
                         
                     
             
         
     
    
        
70 Commits over 273 Days - 0.01cph!
    
    
    
        
        
        
            
            
            
                
                Skin viewer basic UI for loading info etc
                
                
                
                
             
         
        
            
            
            
                
                Fixed clothing items removing their bone setup in the skin viewer, causing them not to show
                
                
                
                
             
         
        
            
            
            
                
                Try applying skin to clothing in preview
                
                
                
                
             
         
        
            
            
            
                
                Fix skin viewer lighting layer issues
                
                
                
                
             
         
        
            
            
            
                
                Merge main -> HackWeek-SkinViewer
                
                
                
                
             
         
        
            
            
            
                
                Got the double-layer model interaction when using the skin viewer in the item store working correctly
                
                
                
                
             
         
        
        
            
            
            
                
                Removed skin viewer UI canvas and interaction stuff. No longer relevant now that it's sent to a rendertexture on separate overlay UI that's always on top
                
                
                
                
             
         
        
            
            
            
                
                Fixing problems with closing the viewer in the item store + other stuff
                
                
                
                
             
         
        
            
            
            
                
                Fixed the fallback positioning code
                
                
                
                
             
         
        
        
            
            
            
                
                Cleaned up PropRenderer merge
                
                
                
                
             
         
        
            
            
            
                
                Merge Main -> Hackweek-SkinViewer
                
                
                
                
             
         
        
            
            
            
                
                Some work-in-progress skin viewer stuff I had from hack week. Converting it to use a rendertexture instead of a separate camera.
                
                
                
                
             
         
        
            
            
            
                
                Fixed border appearing behind the model
                
                
                
                
             
         
        
            
            
            
                
                Skin viewer now on a rendertexture
                
                
                
                
             
         
        
        
        
            
            
            
                
                Reverted MenuUI back to screen space overlay style (same as on Main). Too many issues with how I implemented this last hack week, going to redo it a better way.
                
                
                
                
             
         
        
        
            
            
            
                
                Finally fixed skin viewer key controls not working in the main menu popup version. The commit - by necessity - also enables Movement keybinds in the NeedsKeyboard script in MenuUI.
                
                
                
                
             
         
        
            
            
            
                
                Switched viewer to use direct horizontal and vertical rotation. Using the item's axes sometimes worked poorly since some items are at a permanent angle (e.g. pickaxe). Key and mouse drag rotation now shares a method.
                
                
                
                
             
         
        
            
            
            
                
                Updated OnSkinChanged to match use in BuildingBlock.Grades
                
                
                
                
             
         
        
            
            
            
                
                Simplified skin refresh methods
                
                
                
                
             
         
        
            
            
            
                
                Reapplied branch changes to BaseEntity.Skin
                
                
                
                
             
         
        
            
            
            
                
                Merge Main -> Hackweek-SkinViewer. Stomping my changes to BaseEntity.Skin for now, will redo.
                
                
                
                
             
         
        
            
            
            
                
                Some initial work re opening the skin viewer from the in-game crafting screen. This needs the planned change from second camera to rendertexture to start fully working.
                
                
                
                
             
         
        
            
            
            
                
                Remove SkinViewer scene from build list (we'll just use the prefab)
                
                
                
                
             
         
        
            
            
            
                
                Partial fix for clothing loading issues
                
                
                
                
             
         
        
            
            
            
                
                Get skinviewer skin loading working in listen server mode
                
                
                
                
             
         
        
            
            
            
                
                Fix for LR300 workshop item name bug
                
                
                
                
             
         
        
            
            
            
                
                Add support for skinviewer loading weapons and clothing
                
                
                
                
             
         
        
            
            
            
                
                Close only if the user clicked outside the camera area
                
                
                
                
             
         
        
            
            
            
                
                Modal interaction blocker
                
                
                
                
             
         
        
            
            
            
                
                Remove UI canvas raycaster
                
                
                
                
             
         
        
        
        
            
            
            
                
                Visual border on the popup window. Set the window size programmatically.
                
                
                
                
             
         
        
        
        
            
            
            
                
                Delay camera showing until the skin has loaded
                
                
                
                
             
         
        
            
            
            
                
                Match perfectly the size of the skin preview image (hardcoded for now)
                
                
                
                
             
         
        
            
            
            
                
                Clean up unnecessary components
                
                
                
                
             
         
        
        
            
            
            
                
                Fixed camera movement looking like winning Solitare in the 90s
                
                
                
                
             
         
        
        
            
            
            
                
                Use PropRenderer scene lighting and positioning
                
                
                
                
             
         
        
            
            
            
                
                WIP on some lighting issues