#Making an level editor

1 messages · Page 1 of 1 (latest)

slate obsidian
#

I'm making a level editor, mostly intended to handle the modelling/material aspects of the level. How could/should I handle making my CSG selectable/pickable with the mouse in the 3D editor? I don't know where to even start with this.

slate obsidian
#

I want to be able to select a brush as a whole, or its vertices, edges, and faces. I need to be able to do something like Blender where it select the object closest to the mouse based on the selection mode (vertex, edge, face)

#

but the data of those parts of the mesh are local to the brush and aren't global, so it gets more complicated when i need to select something between multiple brushes

atomic sun
#

I haven't worked with CSG much, but for picking 3d objects I project from the camera to the mouse position and check for collisions. First collision found is theoretically what you've clicked

#

Oh, are you trying to make the level editor work in the editor?