Jump to content
  • Advertisement

Archived

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

Dave007

Texture generating

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

Hi, does anyone know, how can I generate random texture, for eg. with smooth color fade. ...but nothing like this: tex = RGB(rand(), rand(), rand()); Thnx. Dave007 dave007@volny.cz

Share this post


Link to post
Share on other sites
Advertisement
You could use matematical expressions based on four or 16 (or more) near pixels of the image.
ANd blend the new pixel..
or you could use a fractal generated texture with random params several times on another blending them...

Or you could generate a texture with random colors (not tooo random... ) and then a blur (convolve i don''t know how to say...) on it to fade colors.

For a texture with only color fade... you could create a spatial filler that fills textures from a starting point (could be random...) and a starting color to the totally blended color (e.g. 0,0,0)....

Sorry for my poor english.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!