As we all know, there are 6 surfaces on a cube.
My question is how to let the program know which surface the user clicks on? and how to apply texture to that surface only?
How to set texture for a particular surface of a cube?
Or use UV mapping - like here
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!
A meshbuffer is just a group of polygons (or vertices+indices to be more exact) which has a common material. So each time a part of your mesh needs another material (for example another texture) it needs to be put into an own meshbuffer. Take a look into CGeometryCreator.cpp in the Irrlicht sources for some examples how they are created.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm