Hello folks,
can someone tell me how to load a .x mesh including the textures?
E.g. a mesh created with Delgine3D Editr an exported as x mesh with all textures.
I use PureBasic with irrlichtwrapper but I think its the same in C++.
Its easy If you want to load a Quake 3 BSP Map:
code:
IrrAddZipFile( "data\map-20kdm2.pk3", #IRR_IGNORE_CASE, #IRR_IGNORE_PATHS )
*BSPMesh = IrrGetMesh( "Data\20kdm2.bsp" )
*BSPNode = IrrAddMeshToSceneAsOcttree( *BSPMesh )
This loads the mesh and the textures. This works fine.
But if i write the following:
code:
*BSPMesh = IrrGetMesh( "Data\castle.x" )
*BSPNode = IrrAddMeshToSceneAsOcttree( *BSPMesh )
only the mesh model is being loaded.
How can I add the texture bound to this mesh?
Its the same when using an ogre3D mesh with .material script
Thanx a lot guys.
Greets
Andi
How to load a .x file including all textures
Thats really intersting
So does it mean that the code line
IrrGetMesh("mymesh.x")
loads the mesh with all textures?
There noting more to be done?
Andi
IrrGetMesh("mymesh.x")
loads the mesh with all textures?
There noting more to be done?
Andi
Thanx a lot
Okay thank you very much.
I check the exporter. Maybe there's the problem
Andi
I check the exporter. Maybe there's the problem
Andi
Be sure all textures are in the same folder as the mesh !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java