[slvd]What is the best mesh format that works with Irrlicht?
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm
[slvd]What is the best mesh format that works with Irrlicht?
I tried to import and display many mesh formats like .X, .B3D, .3DS but there are problems of loading textures, Irrlicht doesn't load textures automatically (this doesn't happen with BSP meshes).
Please tell me how to solve this problem?
What is the best mesh format that works with Irrlicht (except BSP)?
Thanks.
Please tell me how to solve this problem?
What is the best mesh format that works with Irrlicht (except BSP)?
Thanks.
Last edited by Jolly Joker on Wed Aug 01, 2007 3:37 pm, edited 1 time in total.
it depands on the mesh type (static or animated) for static meshes mainly all types are good but my3d is the only one that supports light maps...
for animated meshes I think .X and .ms3d are a pretty good choice...
and I don't remember a format that doesnt load the textures automaticaly
just be sure the textures are in the same folder as the mesh (and for 3ds be sure the texture names are in 8.3 DOS style) !!!
for animated meshes I think .X and .ms3d are a pretty good choice...
and I don't remember a format that doesnt load the textures automaticaly
just be sure the textures are in the same folder as the mesh (and for 3ds be sure the texture names are in 8.3 DOS style) !!!
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
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm
Thanks for your replies.
To Acki: I tested with .x, .b3d, .3ds. When I export map from DeleD, there are many texture files, I placed them in same folder with the map, but it doesn't load to my program, what I see is just a white object. I tried Mesh Viewer and it has the same result so I don't think the problem is in my code If you ever loaded a map successfully, please post a sample code I don't want to use BSP because there must be too many additional steps to create it.
To Acki: I tested with .x, .b3d, .3ds. When I export map from DeleD, there are many texture files, I placed them in same folder with the map, but it doesn't load to my program, what I see is just a white object. I tried Mesh Viewer and it has the same result so I don't think the problem is in my code If you ever loaded a map successfully, please post a sample code I don't want to use BSP because there must be too many additional steps to create it.
Hi there, In the mesh viewer, do you see a white box? If so, then it means it is not loading up the textures which is the problem. I can successful load up an .b3d file without any problem, so it may be a problem with your model. Have you checked to see where you are reference the model, that the texture images are in the same place?
A Good programmer never blames his tools, only himself
Well, I really don't know what you're doing wrong...
It should work with no problems like shown in the tutorials...
I suggest you to make a test with the model(s) that comes with Irrlicht...
for example the dwarf.x
this should really work with no problems !!!
It should work with no problems like shown in the tutorials...
I suggest you to make a test with the model(s) that comes with Irrlicht...
for example the dwarf.x
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("path/to/Irrlicht/media/folder/dwarf.x");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
node->setMaterialFlag(EMF_LIGHTING, false);
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
he means that they're not loading, are you sure the path to textures is correct instead the model uses the path were the textures were first?
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
hmm, maybe...
Joker, what is your console output telling you then ???
Joker, what is your console output telling you then ???
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
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm
I'm glad you got it now...
with this info we probably solved the problem faster, because a black mesh mostly depands on a missing light source !!!
but as seen on your screen shots it's not white, but it's black !!!Jolly Joker wrote:what I see is just a white object.
with this info we probably solved the problem faster, because a black mesh mostly depands on a missing light source !!!
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
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm
Yeah Sometimes it display as white but I didn't take a screenshot
I have another question: Can I read from a file (text or xml) an array of waypoints, and use it to move camera (like the demo program does)? Is there any trouble converting string to float type?
To create this array, a current position of an active camera may be required (example situation: create this array from a visual editor). Is there any way to get current camera position?
I have another question: Can I read from a file (text or xml) an array of waypoints, and use it to move camera (like the demo program does)? Is there any trouble converting string to float type?
To create this array, a current position of an active camera may be required (example situation: create this array from a visual editor). Is there any way to get current camera position?
yes, all is possible !!!
Irrlicht also has a XML reader/writer implemented (don't know how to use it, because I use tinyXML), but there should be no problem to read floats with...
and it's very strange, but then you can get the cam's position with cam->getPosition()...
to follow the path you then can use createFollowSplineAnimator(...) (like the demo does)...
for further information have a look at the docu, it's really a magical file...
Irrlicht also has a XML reader/writer implemented (don't know how to use it, because I use tinyXML), but there should be no problem to read floats with...
and it's very strange, but then you can get the cam's position with cam->getPosition()...
to follow the path you then can use createFollowSplineAnimator(...) (like the demo does)...
for further information have a look at the docu, it's really a magical file...
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
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm
I doubt they work with .NET, but I never tested it because I don't own .NET, sorry...
But you can try it, unfortunately you'll have to edit the sorces "by hand" then...
If you install my IrrExtensions you'll find a folder named "tools" and in there are the tool files...
they are simple XML files and you should have no problems to read them (e.g. with text editor) and see how to edit the sources...
but for the static text prob I also have no solution, I never saw a static text that has a scroll bar, regardless what sdk...
only solution would be to set the dimensions large enough and/or set it to multi line (wordWrap = true)...
But you can try it, unfortunately you'll have to edit the sorces "by hand" then...
If you install my IrrExtensions you'll find a folder named "tools" and in there are the tool files...
they are simple XML files and you should have no problems to read them (e.g. with text editor) and see how to edit the sources...
but for the static text prob I also have no solution, I never saw a static text that has a scroll bar, regardless what sdk...
only solution would be to set the dimensions large enough and/or set it to multi line (wordWrap = true)...
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
-
- Posts: 23
- Joined: Fri Jul 13, 2007 6:08 pm