Jump to content
  • Advertisement
Sign in to follow this  
Infinity8378

Mountainous Roughness Equation to texture

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

for (q=0;q<122880;q++){
screen[q]=(q>>8)%128+Math.abs(((q%256)%128)-64)>>1
}
 
So far I have this 256*480 distribution I'm looking for a pattern that looks more like a mountain so I can apply it to a sillouete of a mountain.
 
(Higher value=darker Spots)
 
I don't wan't to use memory for a texture just a function that generates a texture
 
Edited by Infinity8378

Share this post


Link to post
Share on other sites
Advertisement

The image is 6 BitsPerPixel or .75BytesPP

 

mm in my code was set to the Roughness Function and 

 

With WebP it becomes .065BytesPP which is enough for WEB at 2.4MBytes/s(360 by 512)

Edited by Infinity8378

Share this post


Link to post
Share on other sites

Memory Triplanar vs Mine(any plane)

 

4B Heightmap*1024^2+6B=3*16bit texture 1024^2+3B=Normal map*24*1024^2

 

 

13BPP*1024*1024 constant

(3/4BPP*720*1024)

 

26 times better No texture Projection/Clipping/Streched or blurred textures/Perlin Generator/Cubic Interpolation/Other interpolation with 16bit Floats and a lot cheaper to run

Edited by Infinity8378

Share this post


Link to post
Share on other sites
Okay, that’s enough rambling for one thread.

If you’d like to post updates so frequently, you should start a developer journal or blog instead.

Share this post


Link to post
Share on other sites

This topic is 610 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.

Guest
This topic is now closed to further replies.
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!