I am trying to create a spritesheet in my system. I had this working previously in Three.js and now I am trying to get it going again in babylon and I am having many difficulties.
So user uploads a bunch of images, they get created as materials and put on a set of planes. (working)
A RenderTargetTexture is created and those planes are added to it and render is called.
A new material is created using that texture.
A new plane is created showing that texture on screen. This comes out a mess. Not sure where to start asking about this.
I want to create a new scene and have the rendertargettexture render that scene, but it looks like I have to render the planes to screen (the main visible scene) or it won’t work. I really want offscreen rendering like I used to have - does babylon support this?
I’m really very lost at this point after days of working on this. Does anyone have a simple example of rendering a texture to a multiple planes, onto a rendertexture and then rendering that plane to screen?