Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
object without light
Topic Started: Dec 9 2007, 09:31 PM (195 Views)
Mauro
DirectX - WinAPI Programmer
[ *  *  *  * ]
i want an object COMPLETY and ALWAYS white, but for the light i see it grey... how i can adjust this?
Programming c++ and directx
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
If you do not want the texture of an object to be influenced by any light sources, use the following code;

for a primitive object:
Code:
 
SetMaterial(0,0,0,255);
SetMaterialEmissive(128,128,128);


for a model object:
Code:
 
SetModelMaterial(MatID,0,0,0,255);
SetModelMaterialEmissive(MatID,128,128,128);
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Use emissive lighting, just like this:
Code:
 
SetModelMaterial(GetMaterialIndex("Material name"),0,0,0,255);
SetModelMaterialEmissive(GetMaterialIndex("Material name"),128,128,128);


Edit: This forum must be heaven, a place where mods contest, who answers a question first :lol: .
Offline Profile Quote Post Goto Top
 
Mauro
DirectX - WinAPI Programmer
[ *  *  *  * ]
thank's again MysteriXYZ! :lol:

EDIT: Also dr.best ^_^
Programming c++ and directx
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply