vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.08k stars 90 forks source link

VOXEDIT: camera/viewport improvements #147

Closed mgerhardy closed 1 year ago

mgerhardy commented 2 years ago

78e07a908e2ad1dedc00bc44f2d6f66f056baf67 activates the ortho camera views for left,right,top and bottom viewports.

The Camera::screenRay() or the SceneManager::trace() is broken for the ortho views.

Once the tracing is working we should not limit the ortho views to the 3 viewports as given in the above commit, but should add a viewport combobox with perspective, orthographic, isometric. to switch each camera between these modes. Stuff like position (eye, pan), rotation and zoom factors must be preserved of course.

Smooth transition between perspective and orthographic modes

Bildschirmfoto von 2022-04-09 11-37-39

mgerhardy commented 1 year ago

52d12f7e32dbe69a541e89f15bbbdd4e5b569645 fixes the raycasting for orthographic cameras - but there is still at least one todo left: 328cbee846627f4df9312f43477ba527083bfecb

mgerhardy commented 1 year ago

The camera node in the scenegraph should also receive more work - there are formats like magicavoxel or goxel that bring their own camera settings - we already import them, but being able to switch to them would be even better. Bonus points for also saving those cameras back.

mgerhardy commented 1 year ago

this issue is also related: https://github.com/mgerhardy/vengi/issues/146

mgerhardy commented 1 year ago

also related to issue #211