Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6736 times and has 3 replies Next Thread
lightweave
Newbie




Joined: Sep 24, 2013
Post Count: 9
Status: Offline
Reply to this Post  Reply with Quote 
3D window rendering

What interface is used for rendering the 3d window? Is it an OpenGL or a DirectX surface? I took only a cursory glance trough the code at the momend and hoped to find the rendering part easily, but it seems I have to deleve a bit deeper.

Reason I'm asking is, because I have NVidia 3D Stereo glasses and I thought it would be cool if the 3D rendering could be switched to full screen and then the driver would automatically take advantage of it if it is DirectX, so I could look at my designed home in full 3D.

I just started to take a closer look at Sweet Home and it seems perfect, so I'm considering implementing such a part myself if need be.
[Sep 24, 2013, 6:40:10 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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.
I don't know if Java 3D will support easily stereo viewing, but if you want to try with Sweet Home 3D code, you should start by Component3DManager class where all Canvas3D instances are created. The layout of the 3D view is done in the HomePane class.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Sep 25, 2013, 8:57:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hal9000
Advanced Member
Member's Avatar

Spain
Joined: May 9, 2012
Post Count: 154
Status: Offline
Reply to this Post  Reply with Quote 
Re: 3D window rendering

Have you looked at Tridef 3D Ignition? Not sure if it will work for your glasses, but may be it does.

http://www.tridef.com/

I can see SH3D in 3D on my 3D monitor with just some glitches.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue
[Sep 25, 2013, 9:41:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
lightweave
Newbie




Joined: Sep 24, 2013
Post Count: 9
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Sep 25, 2013, 11:27:57 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved