Mesh export problem

professor420

28-07-2006 09:32:05

Greetings,

I am having alot of problems exporting from oFusion. Most immediate is an entirely black mesh even with ambient lighting turned up to 1. I have no idea what is causing this... everything looks fine in the oFusion Viewport (normals good, all meshes had XForm reset, etc.). Any ideas? Is this something to do with the material file? Code/wrapper?

Second, and more recently (don't even remember if its from oFusion exports, as exporting dozens of files at 4am makes you tired), my programmer is getting an error "Cannot locate an appropriate 2D Texture Coordinate set for all the vertex data in this mesh to create tangents from." I checked the checkbox to Generate Tangent Vectors, or whatever that checkbox is called, but anything I do seems to yield the same result. I'm going to make another post in the general Ogre forums as well, since this is happening outside of oFusion exports, but any help on the first issue would be much appreciated.

Celldweller

28-07-2006 12:38:17

you'll maybe fix it adding a light to the scene1... clear ogre viewport and then update to se the change. And the model has to have an ogre material

Lioric

28-07-2006 16:31:55

Are this issues in your application or in the preview viewport?

When you select the "Generate Tangent Vectors", the tangent vectors are created inside your .mesh file, so you dont need to recreate then in your application

professor420

28-07-2006 17:37:40

Are this issues in your application or in the preview viewport?

When you select the "Generate Tangent Vectors", the tangent vectors are created inside your .mesh file, so you dont need to recreate then in your application


The issues are only in the app, the Viewport everything works perfectly (and everything works in the meshviewer).
I think, and I'll ask him when he comes online or wakes up, that he's creating the tangent vectors in the application, through code. Would such a redundancy, of having them in the mesh file, and in the code, crash the program?
The reason I ask is because (this is OT from oFusion), when I exported with 'Tangent Vectors' unchecked from the Maxscript it worked, but on the same mesh when I exported with it checked, it crashed.

professor420

30-07-2006 04:54:26

Well it turns out, yes, generating the tangent vectors via the export script in the mesh file, and then generating them through code, creates the error.

Everything is solved and figured out. Thanks for you help, though, and we'll definately be integrating oFusion into our game pipeline (not that we had such a hard decision given this awesome tool).