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?
Textures For .x Files
is the bug going to get fixed anytime soon
It is driving me crazy i can't export anything from blender to irrlicht
-
- Posts: 11
- Joined: Wed Apr 19, 2006 6:23 am
Sorry; missed this:
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 ....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 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. And what info I can find that's relevant implies the program has been replaced with something else ...mview is part of directx-sdk.
-
- Posts: 11
- Joined: Wed Apr 19, 2006 6:23 am
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.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.
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.It should automatically load the texture. If not there's something wrong with the file.
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 ...