Skip to main content
GameDev.net gamedev.net
🔒 Locked

Materials/Lighting question

Started by Zoffopperskof Aug 1, 2002 at 11:31 PM 0 replies 200+ views
Original Post
Zoffopperskof
Zoffopperskof
When using 2-D transformed vertices is it possible to use materials to color them? I have tried turning lighting on and off, using ambient lighting, and using diffuse and/or specular colors in the FVF, but nothing seems to work; a default white material is applied everytime. I''m pretty sure I''m making and setting the materials properly because it works in 3-D. Any help would be greatly appreciated.
masonium
masonium
When you used already-transformed vertices, I''m pretty sure that the color is purely based on D3DFVF_DIFFUSE. The vertices-don''t grow through the main pipeline and, therefore, don''t go through the lighting calculations. But, I could be wrong...

No, HTML is not an OO language.

Topic Locked

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

Sign in to reply to this topic.