Hello! I have a mesh buffer, how would I render that?
Thank you!
Rendering A MeshBuffer
Rendering A MeshBuffer
Dream Big Or Go Home.
Help Me Help You.
Help Me Help You.
Re: Rendering A MeshBuffer
driver->drawMeshBuffer
Please read the docs.
Please read the docs.
Re: Rendering A MeshBuffer
Yes but how do I position it, can I redraw the same buffer multiple times, if I'm going to update the vertex data do I need to drop the meshbuffer and make a new one or can I use the same one?
Dream Big Or Go Home.
Help Me Help You.
Help Me Help You.
Re: Rendering A MeshBuffer
Well, you could just check out how the mesh scene node does it: http://sourceforge.net/p/irrlicht/code/ ... e.cpp#l128
Set transforrm, set material, draw - that's all there is
Set transforrm, set material, draw - that's all there is
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
Height2Normal v. 2.1 - convert height maps to normal maps
Step back! I have a void pointer, and I'm not afraid to use it!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Rendering A MeshBuffer
That should be also documented in the drawMeshBuffer method. Basically all functions named drawSomething and doing 3d rendering use this same scheme.
Also, adding the meshbuffer to a mesh and adding that to the scene would work and makes many things much simpler.
Also, adding the meshbuffer to a mesh and adding that to the scene would work and makes many things much simpler.