Skip to main content
gamedev.net
🔒 Locked

About light problem

Started by lly20000 1 reply 750+ views
Original Post
lly20000
lly20000
Now I was write a some light code but the light can't work on my .x animate model my animate model is display a black model but can work on static model I don't know why? please tell me
Dark_Light
Dark_Light
check the following

Can your caraphic card support light
is there a light in the 3d world
is the light on/commited
has your mesh got normal data
if not then it needs to have some made (look at mesh.generatnormals)
if your mesh is textured make sure the texture is loaded and set the the correct stage ie 0
also make sure you are setting the device material.
you will need to create a material that reflects light

if all the above is sorted then your object will render correctly
Marlow Landscape
Marlow Landscape
I tried to export a 3d model from MilkShape to .x extension and it didn't work
maybe your problem too
btw does anyone here knows why?
"You have tried and failed miserably, the lesson is, never try"-Homer J. Simpson.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.