• Advertisement

Archived

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

How to get all of my textures...

This topic is 6528 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

...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
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

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

  • Advertisement