Hard time rendering mesh lines in a render buffer

Hello all,

I hope you guys are well.

I’m on a project right now and I’m trying to create some sort of heart monitor using mesh lines example (https://playcanvas.com/editor/scene/1023589)
and combining it to the rendertotexture exemple (https://playcanvas.com/project/560797/overview/tutorial-render-to-texture)

Idea is to render in 3d the heart beat monitor in 3d in a second render camera and put that generated texture into a UI element displayed on my main camera. That way, should we have screen changes, my heart monitor should display correctly in my 2dscreen image element.

So the mesh lines display fine on my main camera, but no way to make it to display in my render to texture system.

I just want to see the mesh grid into my rendertocamera cam.

Thanks for the support

have a look at http://playcanvas.github.io/#graphics/render-to-texture.html source code,
at least the comments - perhaps you will spot what you’re missing.

1 Like

ha!!! :slight_smile: thanks