dim3 Forum

Full Version: Wings3D exported OBJ is not lit properly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have imported my model from Wings3D into the Animator from .obj file. I am able to see all the vertex normals. When I add it as a scenery object to the demo map provided in the 2.2 release, it is not effected by lights properly. Placing it under the swinging light causes the whole model to get brighter and darker with the swing.

I tried making a simple cube exported from Wings3D and the same thing happens. (My original model is very detailed with 7000 faces... I just wanted to see it in engine with this detail. I thought maybe this was causing a problem, but a cube should work.)

For some reason Wings's lightwave exporter crashes on me so I can't test that. I have tried calculating the normals, inverting them, preparing the object. I also tried matching all of the settings I could find between JoeFoe and Player to my models and nothing seems to make it work right. There is nothing fancy with the models, only one texture, no bumps, no shaders, no bones, no animations, etc.

I export the models from Wings with triangulate set on and the other options as their defaults.

Any thoughts?

Running on a MacBook CoreDuo 2.0 with 10.4.10.
I'm not sure, but try checking the normals, maybe somethings wrong there. or maybe dim3 doesn't allow lighting on scenery. i don't know.
The problem is that scenery objects don't have vertex lighting.
I think Brian said that he want's to add it. Not sure though.
Make a simple script for your object and turn vertex lighting on.
Code:
obj.model.lit=DIM3_MODEL_LIT_VERTEX
Thanks! I will give the script a try!

Brian, if you are reading, I dropped a donation to you today. I have been following Dim3 for a long time and wanted to give something back. Thanks for making this. I am sure it has been an incredible amount of work.

Edit:

Perfect. I hadn't tried anything with the scripting yet so I just based a new script for my model on the basic drum. Thanks again for the info!
Reference URL's