Author Topic: Rendering a World on Multiple Canvas!!  (Read 3538 times)

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Rendering a World on Multiple Canvas!!
« on: May 18, 2006, 08:14:35 am »
Hi, I am doing a program that needs to render a World into 4 diferrent canvas unsing GLCAnvas. But I noticed that it seems to use only the last one referenced. Is the resultant Canvas dereferenced when referencing another one to the original???? it seems to behave on that way. Any suggestions?
Nada por ahora

Offline Mr.Marbles

  • int
  • **
  • Posts: 81
    • View Profile
Rendering a World on Multiple Canvas!!
« Reply #1 on: May 18, 2006, 04:40:01 pm »
Are you using FrameBuffer.enableGLCanvasRenderer(int) ? If you are, I believe this method returns the same instance of the 'Canvas' each time it is called. So every framebuffer has exactly one Canvas. I think you'll need 4 seperate framebuffers, and then just render your world into each of them the way I was doing here:

http://www.jpct.net/forum/viewtopic.php?t=534

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Rendering a World on Multiple Canvas!!
« Reply #2 on: May 18, 2006, 05:17:05 pm »
Exactly! x Canvas' means x instances of FrameBuffer.