Archived

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

Neo[NB]

Placing a texture on an primitve?

Recommended Posts

Neo[NB]    122
Hello, I have seen some car racing games, where the cars make some dirt on the road, when they drive in a curve (the marks of the wheels)! Does someone know, how I realize this with the Immediate Mode of Direct3D? Is this a special multitexture technique? Thanks Neo

Share this post


Link to post
Share on other sites
zerwit    122
It sounds more like they are using some sort of decals. Multitextured things are not usually dynamic.

*** Triality ***

Share this post


Link to post
Share on other sites
Neo[NB]    122
Well thanks, it works with decals. But how do I use them. I looked into the DirectX 7 SDK Help and it coundn''t answer the question!

Neo

Share this post


Link to post
Share on other sites
zerwit    122
There isn''t one specific way to implement them. You could have a decal class that holds one polygon which is a part of dirt on the road. You can render probably by using the zbias renderstate. Check that out.

*** Triality ***

Share this post


Link to post
Share on other sites