www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: thtj on July 18, 2010, 09:59:23 pm

Title: Rendering of near and distant objects(SceneGraph) onto same canvas!
Post by: thtj on July 18, 2010, 09:59:23 pm
Hi There

Is it possible to render two scenegraphs on to the same canvas!

I am new to jPCT and consider using this 3D engine for a Android project.

I am experienced in programming for Java3D, so the concepts are not alien to me, although the terminology of jPCT is a bit different to that of Java3D.

What I need jPCT to do is the ability to render two scenegraphs(World's??) onto the same canvas(Framebuffer??) Is this possible with jPCT?

Thanks in advance!

/THTJ
Title: Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
Post by: EgonOlsen on July 18, 2010, 10:05:21 pm
Yes, it's possible. I used to use this approach to render the skybox, i.e. the scene was one world, the skybox another. I've never tried this with the Android version though, but it should work. If it doesn't, it's a bug that has to be fixed... ;)
Title: Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
Post by: thtj on July 19, 2010, 09:56:05 am
Excellent is there a demo of this Skybox method somewhere!? ;D

Yes, it's possible. I used to use this approach to render the skybox, i.e. the scene was one world, the skybox another. I've never tried this with the Android version though, but it should work. If it doesn't, it's a bug that has to be fixed... ;)
Title: Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
Post by: EgonOlsen on July 19, 2010, 10:00:48 am
Not for AE, but for desktop jPCT: http://www.jpct.net/wiki/index.php/Advanced_example (http://www.jpct.net/wiki/index.php/Advanced_example)