Print at Dec 19, 2025, 3:21:07 AM

Posted by lightweave at Sep 25, 2013, 11:27:57 AM
Re: 3D window rendering
The 3D view is rendered generally with OpenGL, and more rarely with DirectX, through Java 3D library. The DirectX switch is done with the properties set in this file.


Thanks!

I don't know if Java 3D will support easily stereo viewing, but if you want to try with Sweet Home 3D code,


The NVidia stereo driver automatically takes over when a full screen DirectX scene is displayed. This makes it possible that any DirectX game can be viewed in full stereo 3D, without special support from the game engine itself (with some possible optimizations for 2D overlays, which shouldn't apply here anyway). However, NVidia only implemented this for DirectX for commercial reasons. So the only requirement would be that the window can be switched to full screen and the rest should happen automatically. Since Sweet Home 3D can separate the 3D view already in a detached window, it shouldn't be to hard to switch this window to full screen mode. I have to look how this is done, as I havent much experience with DirectX programming so far, but I don't think that this should be a big issue.

you should start by Component3DManager class where all Canvas3D instances are created. The layout of the 3D view is done in the HomePane class.


Thanks for that info. :) That gives me a good starting point.