Jump to content
  • Advertisement

Archived

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

sebastian

OpenGL code for procedural-tex. (maybe openGL)?

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

has someone got some code snippets (c/c++, maybe asm) ? i played around with rand() and stuff but my textures look like crap and i think my function is too costly for creating the textures and too confusing for myself. BTW i need them for openGL ......

Share this post


Link to post
Share on other sites
Advertisement
You need to use perlin noise functions. Pure random numbers would just look like white noise.



Here is a link which describes the process. There are also some good links at the bottom of the page.

Perlin Noise


Good luck with your program







"You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!""


Share this post


Link to post
Share on other sites
Can you explain how to control Perlin Noise function? I have this function ready, but I cant´t use it.

void Perlins(long u, long v, long du, long dv, long ddu, long ddv, int/*unsigned _int16*/ Num_Pix, unsigned _int16* palette, unsigned _int16* screen_buffer)

Thanks,

Edited by - Gandalf on July 24, 2000 5:27:12 AM

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.

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!