|
Post by GuppyB on Jul 13, 2004 21:21:37 GMT -5
What's the easiest way to read the values at specific pixels to load the values into an array? I am essentially trying to read grayscale values from a .jpg to create a depth map.
I thought this would be easy, but Basic4gl hasn't implemented the ReadPixels() and glGetTexImage() functions yet. Anybody have any better suggestions.
thanks in advance...G
|
|
|
Post by NoVaGene on Jul 14, 2004 6:28:45 GMT -5
Alternatively, you can use utils like wilbur or terragen to generate heightmap values from the .jpg and implement it using the techniques from Tom's heightmap tutorial to read the values. These are the sites to locate the utils:- www.ridgenet.net/~jslayton/software.htmlHope this helps! ;D Rgds, Lucas Tan
|
|
|
Post by NoVaGene on Jul 14, 2004 6:31:45 GMT -5
|
|