Page 1 of 1

Texture explanation ? help !

Posted: Sat Oct 04, 2008 3:49 pm
by AmigaIrr
i use mesh and want to use only a small part of a big image

how to do this

i can make this with texture = driver.getTexture("big pix.bmp")

Posted: Sat Oct 04, 2008 4:30 pm
by skumar
driver->getTexture() loads the texture .....but the way which is applied is according to the information contained in your mesh...called texture coordinates

Technically speaking ....answer to your problem is called texture mapping..

Texture coordinates of a mesh are the parameters which determine which part of the image to be applied to the mesh.(for more info read dx or opengl texts)

Practically , you have to edit the mesh in some 3d editors like 3ds max and apply the big texture.....

Then, using UV mapping modifier make the desired mapping....
When the mesh is loaded the image will be automatically loaded....


Finally , Doing it manually is very hard....

Posted: Sat Oct 04, 2008 5:37 pm
by hessiess
3ds max
or Blender, wings3d etc if you haven't got several grand to throw away ;)