multitexture and mesh : how to ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Kortyburns
Posts: 20
Joined: Wed Sep 10, 2003 12:31 pm
Location: FRANCE

multitexture and mesh : how to ?

Post by Kortyburns »

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 ?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

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

Post by Kortyburns »

Thanks :D

It works fine now !
Post Reply