About Store Forum Documentation Contact
Donations:
169$/mo



Post Reply 
Loading a mesh and it's materials
Author Message
Zapa Offline
Member

Post: #1
Loading a mesh and it's materials
Hi,

I've been trying to load a mesh and show it. It keeps giving me an error regarding the images, although I have them placed in the data folder.
I use the following code:
Code:
//Vars
Actor ground2;
Mesh MyMesh;
PhysBody MyPhysBody;

...........
//in Init()
    MyMesh.load("obj/test/test.mesh");
    MyPhysBody.parts.New().createMesh(MyMesh);

   ground2.create(MyPhysBody);

//In draw
   ground2.draw();

I have the images and mesh placed using this path:
Data\Obj\test\test.mesh
Data\Obj\test\images\images_name.extension (this goes for all .mtrl's and images).

Yet, I'm receiving the following error:
" Can't load 'C:/Users\user.name(replaced my user name)/Desktop/test/images\ground.gfx' Additional path "obj/test\images" ".

The meshes and all have been modeled by a co-worker, loaded in the MeshEditor/Obj Editor, exported as .mesh, and sent to me! Any ideas?
08-28-2011 04:16 PM
Find all posts by this user Quote this message in a reply
Post Reply