How to get all of my textures...

Started by
2 comments, last by NextS 24 years ago
...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
Advertisement
Hi,

You could probably use specular lighting and set it to 0.5;0.5;0.5 at each vertex, and the D3DRENDERSTATE_SPECULAR renderstate to TRUE.

Greets Tobias
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
--------> http://www.larswolter.de <---------
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

This topic is closed to new replies.

Advertisement