Author Topic: Rendering of near and distant objects(SceneGraph) onto same canvas!  (Read 1817 times)

Offline thtj

  • byte
  • *
  • Posts: 2
    • View Profile
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
« Reply #1 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... ;)

Offline thtj

  • byte
  • *
  • Posts: 2
    • View Profile
Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
« Reply #2 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... ;)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11748
    • View Profile
    • http://www.jpct.net
Re: Rendering of near and distant objects(SceneGraph) onto same canvas!
« Reply #3 on: July 19, 2010, 10:00:48 am »
Not for AE, but for desktop jPCT: http://www.jpct.net/wiki/index.php/Advanced_example