Page 2 of 2

Posted: Fri Apr 21, 2006 1:47 am
by 23yrold3yrold
Yeah, I tried removing the space again all over and this time it worked. Guess I missed something first time.

I set up a little camera rotation around the object and it looks like some of the faces are being culled incorrectly, which is weird since the normals are all correct in Blender. One more thing to fix and it's perfect ...

BTW, why do I have to call setMaterialTexture() on my mesh node? Is there some way to set it so it just gets the texture name from the .x file, or is there some reason why not?

is the bug going to get fixed anytime soon

Posted: Fri Apr 21, 2006 7:09 am
by juliusctw
It is driving me crazy i can't export anything from blender to irrlicht

Posted: Sat Apr 22, 2006 6:04 am
by 23yrold3yrold
Sorry; missed this:
what i did was the following: i opened the .x in mview (screenie 1) and resaved it. after that i loaded it into irrlicht. it seems distorted when you get near to it but from further away everything is fine...as you said: backfaces.
I'm not really that close though. And it's lower faces that are missing while the top half is fine; seems odd if it's a distance thing. Of course ....
mview is part of directx-sdk.
.... I installed the April 2006 DirectX SDK and there's no MeshView program. :( Anywhere else I can download this? Googling for MeshView brings up a million different little programs. :roll: And what info I can find that's relevant implies the program has been replaced with something else ...

Posted: Sat Apr 22, 2006 7:02 am
by Hirte
Erm, source in examples/09.Meshviewer, bin in bin/*

Posted: Sat Apr 22, 2006 9:06 am
by hybrid
The MeshViewer from Irrlicht is useful to check whether models are correctly loaded by Irrlicht, but does not help with the reexport. It's the direct X viewer (apparently called mview.exe) which is part od the DirectX SDK.

Posted: Sat Apr 22, 2006 9:09 am
by hybrid
23yrold3yrold wrote:BTW, why do I have to call setMaterialTexture() on my mesh node? Is there some way to set it so it just gets the texture name from the .x file, or is there some reason why not?
It should automatically load the texture. If not there's something wrong with the file.

Posted: Sat Apr 22, 2006 3:33 pm
by 23yrold3yrold
hybrid wrote:The MeshViewer from Irrlicht is useful to check whether models are correctly loaded by Irrlicht, but does not help with the reexport. It's the direct X viewer (apparently called mview.exe) which is part od the DirectX SDK.
Exactly. The latest DirectX did come with a MeshViewer but it doesn't allow saving (that I can see). It does load and display the model perfectly though, texture included. Still looks like a mess in the Irrlicht example program though. :(
It should automatically load the texture. If not there's something wrong with the file.
Actually, yes, this works now that I removed the space in the file name; my bad. The console still reports errors, but it does load and display the texture from file. :) So my only problem now is the model is a bit warped/distorted when loaded.

EDIT: As the camera rotates around it, the texture warps and bends too. Maybe there's some way to set Irrlicht to use some more accurate rendering mode? Right now it seems like it's doing a lot of bad rounding. :) This is the example "Hello, World!" program I'm running, just with my own model from Blender ...