Page 1 of 1
Colors inside-out...
Posted: Sat Apr 16, 2005 5:02 pm
by nomisqc
Hi !
I export a model from 3DsMax 7 using Ogre exporter.
Usually, everything works fine...
However...I've got this model which, when I export it, becomes kinda inverted.
I see thru its external texture right through the model and I see the texture on the other side...
Like it was flipped inside out...
The model is right when rendered in 3Ds though...
Anyone can help me with this one ??
Thx !
Posted: Sat Apr 16, 2005 5:13 pm
by Crashy
mmh, I'm not sure to have well understand, but if so, try to add
cull_hardware none
cull_software none
In the pass of your material.
Posted: Sat Apr 16, 2005 5:22 pm
by haffax
I don't know the max importer, but it probably has an option called "Flip normals" or something like this. If it has, turn it on if it was off before or off if it was on.
If it doesn't have such an option maybe Max itself has a function to do so, and if not you still have Crashy's solution, but i recommend to substitute the two nones with fronts, as no culling costs performance.
Posted: Sat Apr 16, 2005 5:43 pm
by nomisqc
Thanks for the hints....
However, I already tried the Flip normals think and when I do, the model seems right but is kinda in the dark.
I tried the
cull_hardware none
cull_software none
thingy but with NONE, it didn't changed anything and with FRONT, it did the same as flipping the normals...
Any other idea ?
Thx..
Posted: Sat Apr 16, 2005 6:13 pm
by johnhpus
the model seems right but is kinda in the dark
If your saying that your model appear too dark in Ogre, try adding more / brighter lights to your Ogre scene.
Posted: Sat Apr 16, 2005 6:29 pm
by Slicky
I would guess you had a normals problem. Try it flipped like you did (also in most packages you can have them show you which direction the normals are pointing).
After that increase the lighting params of your material. Bring up ambient for example.
Posted: Sat Apr 16, 2005 7:08 pm
by nomisqc
I found a way to fix this but I do not understand it...
I used a NORMAL modifier in 3Ds Max....which kinda inverts the model as I see it in 3Ds....
The result is that I now see the inverted model in 3Ds but when I export it it's ok...
It's like if the action of exporting inverted the normals but the FLIP NORMALS option wouldn't affect it...
Thx for the suggestions guys !
Posted: Sun Apr 17, 2005 4:45 am
by semicolon
I've seen that problem before. My model has some faces extruded from edges. It's like usually an edge can have only one or two faces sharing together. But if an edge has three or more faces sharing, the normal will point in the wrong direction. What I did to change it is to have material showing 2-sided face.
Semicolon