Dark textures on model

Started by
0 comments, last by DaWanderer 20 years, 1 month ago
Hi, everyone! I''m currently using C# and Managed DirectX 9 to write a Quake 3 style engine. Most everything is working at this point, and I decided that I wanted to load and render MD2 models (maybe MD3 someday...). I''ve gotten them to load fine and render, except that the textures are very dark on them most of the time. Plus, moving my camera around in space changes the lighting on them. The thing is, I have no lighting! I disable it and just use lightmaps for the level geometry. I''ve calculated normals for the model faces and tried adding materials, turning on ambient lighting, and even doing some texture operations. If I move the camera around the model, it will sometimes flash with the correct lighting and will stay if I keep at the same position and angle. Does anyone have a clue what''s going on? Thanks for any help in advance!
Advertisement
Anyone have an idea? Does Direct3D do some sort of special lighting depending on the World matrix that I don''t know about?

This topic is closed to new replies.

Advertisement