branchsbox-csgeditor/maincancel
35 Commits over 120 Days - 0.01cph!
Box tool interaction fixes
Can draw new geometry with the box tool
MoveTool tweaks to stay aligned to the grid
ToolBar options are now checkable
Nicer behaviour when dragging nested CSGs into viewport
Fixed gizmos being invisible
Nicer drag / drop to import nested assets
Ctrl+C / Ctrl+V, Delete keyboard shortcuts
Removed logging
Can now drag / drop multiple brushes at once in the brush list
Basic rotate tool
Rotate all selected objects
Rotation snapping
Can now select / deselect brushes by clicking in the viewport
Tweaked tool icons
Box tool visual tweaks
Fixed serializing bounds of compiled solids
BoxTool only operates on one brush at a time for now
WIP raycasting
Fix position widget being relative to object rotation
Split up tools into classes, add tool bar
Drag and drop in tree view to reorder brushes
Fixed editor brushes breaking after saving
Refresh geometry if a referenced CsgAsset changes
Drag other CSG assets into viewport to import them as nested object
Stip out old gamemode code
WIP editor rewrite
Using a new brush system
New wireframe shader for brushes
https://files.facepunch.com/ziks/2023-02-28/sbox-dev_YmLTpr5SVj.png
Property editor for selected brush
Compiling / saving CsgAsset
Basic context menu duplicate / delete
Testing out immediate mode stuff
Working on box scale gizmos
Scaling gizmo works for all axes
Scene -> Gizmo, scale gizmo tweaks
Smarter invalidation of elements, visual tweaks
Set default camera transform
Fixed detecting invalid prism bases
Add shearing to prism tool
Find out / show when a drawn prism base is invalid
https://files.facepunch.com/ziks/1b1911b1/sbox-dev_TgxiYpzbQg.mp4
Prism drawing tool is functional
https://files.facepunch.com/ziks/1b1711b1/sbox-dev_oyi4K5UPBo.mp4
Prism extruding fixes, still only convex
Started work on DrawPrismTool
WIP DrawPrismTool
Save geometry to .csg file on edit
WIP multiplayer cleanup
WIP refactor to clean up input, split into different tools
Re-created box drawing
Trying to debug MoveReferencePlaneTool
Fixed switching plane
Re-implemented subtracting
Fixed widgets sometimes not being drawn
Lock grid plane when holding Ctrl, dragged shape colour tweaks
Compiled shaders, some WIP brush tweaks
Grid tweaks and fixes
https://files.facepunch.com/ziks/2022-11-08/sbox-dev_X0cMxotYna.mp4
Move reference plane to surface under cursor
https://files.facepunch.com/ziks/2022-11-08/sbox-dev_uiDRx5bQp5.mp4
WIP draw boxes to add / subtract
Brushes can have arbitrary scale in XYZ
Brush drawing, right click drag to rotate, basic lighting
Initial commit
Add sbox-csg submodule
Grid and basic camera