www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Jamiro on January 20, 2018, 05:56:36 pm

Title: Render Scene to Texture - Questions/Possibility
Post by: Jamiro on January 20, 2018, 05:56:36 pm
Hello once again,

I've read about this particular possibility and I've tried it in the past but without any success. So I' will try it again this time until it works, so, my render loop is defined this way:

Code: [Select]
   while(run){
      //-- START RENDER WORLD --//
      BUFFER.clear(back_Color);
      BUFFER.setPaintListenerState(false);
     
      *1*
     
      WORLD.renderScene(BUFFER);
      WORLD.draw(BUFFER);
      //-- END RENDER WORLD --//
     
      draw2DElements(BLIT_OBJECTS, BUFFER);
     
      *2*
     
      BUFFER.setPaintListenerState(true);
      BUFFER.update();
      BUFFER.displayGLOnly();
      canvas.repaint();
     
      *3*
     
      Thread.sleep(delay);
   }

So my questions are these:






regards,
Jamiro
Title: Re: Render Scene to Texture - Questions/Possibility
Post by: EgonOlsen on January 21, 2018, 05:22:14 pm
I'll jump straight to your question:


Title: Re: Render Scene to Texture - Questions/Possibility
Post by: Jamiro on January 21, 2018, 11:04:11 pm
Awesome, thanks