Rendering a World on Multiple Canvas!!

Started by Melssj5, May 18, 2006, 08:14:35 AM

Previous topic - Next topic

Melssj5

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

Mr.Marbles

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

EgonOlsen

Exactly! x Canvas' means x instances of FrameBuffer.