Sign in to follow this  
bigbrother2000

Object unaffected by lights

Recommended Posts

bigbrother2000    138
Hi everyone, I have .x model although the normals were not exported correctly and therefore the model remains dark at all times even if a light source is close by. Is there a way to make an object be unaffected by any lights in a scene. As previously using darkbasic professional which runs on directx the command Set Object Light would determin this, is there a function that can do this directly using DirectX, any help would be appreciated.

Share this post


Link to post
Share on other sites
bigbrother2000    138
cheers guys got it sorted

i was using D3DXComputeNormals(m_pMesh, NULL); but forgot to add the null parameter, so it was not recognising the function. Although pressing F1 in Visual Studio .Net help does not explain the function, is this information available anywhere else, for other directX functions as well.

http://img.photobucket.com/albums/v38/bigbrother_200uk/lighting.jpg

Share this post


Link to post
Share on other sites
DrunkenHyena    805
The DirectX documentation is in the DX SDK. If you have it installed you should see it in the Start Menu. Otherwise you can dig in the directory where you installed it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this