Textures For .x Files

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
23yrold3yrold
Posts: 11
Joined: Wed Apr 19, 2006 6:23 am

Post 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?
juliusctw
Posts: 392
Joined: Fri Apr 21, 2006 6:56 am
Contact:

is the bug going to get fixed anytime soon

Post by juliusctw »

It is driving me crazy i can't export anything from blender to irrlicht
23yrold3yrold
Posts: 11
Joined: Wed Apr 19, 2006 6:23 am

Post 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 ...
Hirte
Posts: 73
Joined: Sat Apr 01, 2006 1:32 pm

Post by Hirte »

Erm, source in examples/09.Meshviewer, bin in bin/*
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
23yrold3yrold
Posts: 11
Joined: Wed Apr 19, 2006 6:23 am

Post 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 ...
Post Reply