Archived

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

sebastian

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

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