Jump to content
  • Advertisement
Sign in to follow this  
DevLiquidKnight

Procedural Textures?

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

Does anyone have suggestions of places that talk about the creation of procedural textures using directx. With examples? Besides the SDK? Also, are procedural textures the only way textures are animated in directx; if not could someone list a few other commonly used techniques.

Share this post


Link to post
Share on other sites
Advertisement
I might not have understood your question perfectly, but if you are meaning, textures on geometry that can pan, rotate and scale then the answer is no. I don't know exactly what procedural textures are, but animating texture what I meant can be done by changing texture U, V and if there W coordinates of the geometry for each triangle.

I hope this helped you somehow.

Share this post


Link to post
Share on other sites
for animating a texture you can just create multiple textures and change the texture to the next one every x frames...this is(/was) mainly used for explosions.

regards,
m4gnus

Share this post


Link to post
Share on other sites
Quote:
Original post by m4gnus
for animating a texture you can just create multiple textures and change the texture to the next one every x frames...this is(/was) mainly used for explosions.

regards,
m4gnus


What m4gnus says is a good way too. Yet in his example, in most cases there is one texture and only a part of the entire texture is draw. When the next frame is drawn an other/next part is drawn from the texture. This way you get an fluïd progression.

This is a texture what I meant:

Share this post


Link to post
Share on other sites
Quote:
Original post by DevLiquidKnight
Does anyone have suggestions of places that talk about the creation of procedural textures using directx. With examples? Besides the SDK?
There's nothing remotely DirectX-specific about procedural textures, so here's a book that has very good coverage of the topic.

Quote:
Also, are procedural textures the only way textures are animated in directx;
No, not by a long shot.

Quote:
if not could someone list a few other commonly used techniques.



  • Texture coordinate manipulation
  • Texture cycling
  • Streaming video to texture
  • Manipulating sampled colour in pixel shader using a time constant

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!