22,480 Commits over 1,614 Days - 0.58cph!
Animgraph: Fix animgraph not autosaving (uses default settings, no UI yet)
Animgraph: Add context menu item to select all child nodes
Animgraph: Fix crash when focusing on deleted state machine item
Game can set Mouse.Position
fixes sbox-issues/issues/1946
Citizen: hand hitboxes cover more of the hand now
(It was very small before.)
Citizen/animgraph: sit idle motion & fixes
- Added look chains & idle breathing to sitting.
- The "none" weapon branch now has a reset blocker which, it turns out, is now needed since the look/aim stuff was moved much earlier in the graph and isn't here anymore to block reset signals coming from the 2nd "holdtype" selector node. This fixes sitting bugging out if sitting with a weapon & going back to being weaponless.
Refactor TypeLibrary so tools can opt out of Event registration for game dlls - Fixes sbox-issues/issues/1943
Clothing document fixes
Trousers and skirts should all swap out correctly now when selected
Merge branch 'master' of sbox
Do not spawn generic gibs if model has break_create_particle nodes
Outfit Texture Adjustments
Better colours and designs for the V neck shirt, long sleeve shirt, office blazer, office skirt. Plus small ao texture adjustments to most of the top clothing.
Clicking on background of asset browser clears selection
Rename Asset.TryLoadGameResource to Asset.TryLoadResource
Add AssetType.FromType
Cleaned up how Resource/GameResource get serialized to Json
All Resource derivatives are now forced to be serialized as a filename by default. When saving/loading GameResource we use a special method that serializes manually, so it won't get saved as a filename.
1 hour of googling, 20 mins workarounding JamesNK/Newtonsoft.Json/issues/719
Fix warnings
The engine seems very insistent that these vtex files should be deleted
Citizen/animgraph: let sit_offset_height affect model-space IK targets
Update shader compiler platforms to support dx12 and dx12.1
Actually inherit the right class next time for our render context
Citizen/animgraph: changes to sitting
- The "b_sit" boolean is out, replaced by the "sit" enum. 1 = sitting normally, in any seat-like circumstances, and 2 = sitting on the ground, with its own set of poses.
- Added the "sit_offset_height" float, active only if sit = 1, to let you adjust the height, currently with a range of -12 to +12.
- Added the "sit_pose" float, to let you choose a sitting pose in either state. No randomization here, 0 = a default pose.
- The sit stuff is now in a subgraph; this is a good place to start dogfooding it.
Raster, Blend, Depth & Stencil states cache
Remove #pragma optimize off that managed to slip through
Improve VR performance by as much as double, enabling multiview instancing by default and lots of misc changes to the VR render process:
- Fix our shaders for multiview instancing to work with the new transform system
- Hard code some dumped stencil meshes for Oculus HMDs, reduce render area from 5-14% ( SteamVR doesn't pass us these )
- Remove multi-gpu support, complicates shit and pointless for us to even attempt to maintain
- Add SCENE_RTSIZE_VRFRAMEBUFFER and make it adjust to multiview size, avoids allocating 8K render target for framebuffer fetches on VR
- Don't attempt to render viewmodel shadows in VR
- Fix asserts from C# trying to update viewmodels in VR mode (scenesystem transforms are locked here)
- Global.IsRunningInVR doesn't false report if you're running in non VR mode with SteamVR in the background
- Generally loads of dead code removal in the render pipeline
Co-Authored-By: Sam Pavlovic <sam@sampavlovic.com>
Push water shader object with multiview support, drop multiview hack on it
Fix GameResources not automatically reloading on change
Fix path when loading resource from asset
Always skip BaseViewModel.UpdateAllPostCamera when in VR, avoids a circular dependency that was consuming a chunk of frametime because scenesystem abs transforms were locked.
Ideally games shouldn't be making view models in VR either though.
Global.IsRunningInVR is only true if the game is started in VR mode, instead of if SteamVR is running
Create device context & rendersystem
todo, remove this later
populate caps
Initial support for cbuffers, actually use our referenced sdk
Switch from an empty context to an empty dx12 context
Regular & Async compute command lists, fix cbuf creation & uploading data
Undo render device placeholders, introduce dx12 rendering thread
Can PlaySound using full SoundEvent path now + removed a bunch of unused code in soundevent.cpp
Obsolete GameResource.Name, GameResource.Path (Resource.ResourceName, Resource.ResourcePath)
Clear AssetList selection when navigating
Fix ResourceLibrary.Get never working
adding mat variation, logo, decal
Obsolete SetAnimGraphPreview, addons will probably fail otherwise because a command in base was using it
Remove animgraph_preview - no longer functional and can be done a better way
Rephrase climb & drop distance for nav paths
Tweak drop down costs & introduce WithDropDistanceCostScale to path builder
This lets you scale how likely the AI will drop down rather than take an alternate route
Stop monitors from stealing our C# attributes
Revert "Make monitors actually square & within the framebuffers bounds automatically"
This reverts commit c2ba6f2de5bb5aa86f86e05bf6c9c306d9ac0ee8.
Make monitors actually square & within the framebuffers bounds automatically
Add background size transitions
ScenePortal now skips scratch render targets and we render the lifetime ourselves now
Fix scratch render target errors for ScenePanel once and for all
Fix water refraction on VR
Adjust pixelinput.hlsl to be contractually correct in Domain/Hull shaders
Fix glass refraction shader on VR and lower internal resolutions
Add SetWellKnownRenderTargetSize to scenesystem to arbitrarily change RTSIZE of an internal scratch render target
Add SCENE_RTSIZE_VRFRAMEBUFFER and make it adjust to multiview size, avoids allocating 8K render target for framebuffer fetches on VR
Pass our own depth texture & size to ScenePortal
Fix UI blurs and framebuffer fetches on VR
Texture adjustments and general fixes to a few outfit pieces
Fixes to Jeans modeldoc plus small adjustments to cardboard trousers and tanktop! More retexturing on previous clothing pieces soon.
Fix water refraction on lower internal resolution modes
Fix VR spectator view with multiview instancing
hmdDisplayName for Quest 2 is "Quest2" without spaces
Citizen/animgraph: idle updates + sit fixes
Draw waveform for sound file preview https://files.facepunch.com/layla/1b1811b1/sbox-dev_qVSPpHFSP6.png
Handle sound file reloads, release ref and add it back after reload finishes
Add (probably temp) sound file preview