Archived

This topic is now archived and is closed to further replies.

NextS

How to get all of my textures...

Recommended Posts

...exactly twice as bright using DirectX. Or better: I want to do my lighting using only vertex-colors. But I have no chance to get brighter as the original texture-color. Any Ideas ? Some kind of blending ? Perhaps some kind of lightmaps ? NextS

Share this post


Link to post
Share on other sites
hi

You can blend the Texture with your Vertex color. That is the Standard for the first TextureStage, so you only need to use the Multiply2 Coloroperation, so set the
SetTextureStageState(0,D3DTSS_COLOROP,D3DTOP_MODULATE2X);

That should do it, there are other Values you can try aswell, so you can get many different Effects

Lars

Edited by - Lars W. on 4/6/00 5:44:21 AM

Share this post


Link to post
Share on other sites
Hey Lars, that''s it.

That''s exactly what I wanted, cool, thanx.

NextS

Tobias: I think Specular lighting only works with vertex-normals, which I do not have what I did not mention, sorry. Thanx to you anyway

Share this post


Link to post
Share on other sites