Hi,
I would like to code a multitextured mesh.
This is what i have :
SMeshBuffer* buffer = new SMeshBuffer();
SMesh* mesh = new SMesh();
and in order to use 2 textures on the mesh, i need to declare
video::S3DVertex2TCoords vertex ;
that contains the 2 textures coordinates.
But now the problem is that i can't call the method
buffer->Vertices.push_back(vertex) ;
because it wants a "irr::video::S3DVertex" parameter type.
How can i solve that with still using the SMesh class ?
multitexture and mesh : how to ?
-
Kortyburns
- Posts: 20
- Joined: Wed Sep 10, 2003 12:31 pm
- Location: FRANCE
Instead of SMeshBuffer try SMeshBufferLightmap (http://irrlicht.sourceforge.net/docu/st ... htMap.html)
-
Kortyburns
- Posts: 20
- Joined: Wed Sep 10, 2003 12:31 pm
- Location: FRANCE