• Advertisement
Sign in to follow this  

Making Lights Brighter

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Now forgive me for being dumb, I am new to direct X but not new to programming. And since using Direct X I have seen no obvious way of making light more or less intense. I have looked a few examples but none of them address light brightness. So can anyone point what I am missing, as this is getting really annoying. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You specify the brightness of a light by manipulating it's
RGB value: If it's a dark red it's (0.2, 0.0, 0.0), if it's a light strong red it's (1.0, 0.0, 0.0).

Was that what you meant with brightness?

-- constantin

Share this post


Link to post
Share on other sites
It's all about the intensity of the color of the light. So, if you're dealing with a white light, a color of (1.0f,1.0f,1.0f) would be much brighter than a color of (0.5f,0.5f,0.5f). Similarly, for a red light, a color of (1.0f,0.0f,0.0f) would be brighter than a color of (0.5f,0.0f,0.0f).

Share this post


Link to post
Share on other sites
Also with your texture stages... if you use modulate, the texture can only get darker than it's original value. If you modulate2x, a light of 50% brightness has no effect on texture color, while a light at 100% brightness makes the texture twice as bright. This larger variation of brightness from light looks nice. Modulate4X is a bit overkill though.

Share this post


Link to post
Share on other sites
Cool thanks people.
Im not at home yet so i cant test it but that looks just right.

i am intrested to see how bright 1.0f will be, as the problem i have now is my lights are to dark.

Namethatnobodyelsetook: that sound like a handy hint. i will try that to.

(:

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement