Jump to content
  • Advertisement
Sign in to follow this  
dimensionX

noise functions in GLSL

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

What is the word on GLSL noise1/2/3 functions on NVIDIA hardware (7800GTX, 81.85) ? Seems, these functions always return 0.0. Did anyone see the same result ?

Share this post


Link to post
Share on other sites
Advertisement
They're only implemented on the 3DLabs Wildcat Realizm, as I understand it.

[Edited by - Promit on November 11, 2005 1:43:15 PM]

Share this post


Link to post
Share on other sites
If these are not implemented, atleast the compiler should produce an error saying functions not supported or something. What's the point in compiling without complaining and returning 0.0 ?

Share this post


Link to post
Share on other sites
It's in their release notes too:

http://download.nvidia.com/developer/Papers/2005/OpenGL_2.0/NVIDIA_OpenGL_2.0_Support.pdf

It would be nice if there was a standard way in GLSL to claim support for different subsets of functionality.

Share this post


Link to post
Share on other sites
If the hardware doesn't support noise functions, the driver SHOULD fall back to a software renderer, and produce the correct results.

Unfortunately, Nvidia usually prefers performance over compatability, even if the well-performing result is simply wrong. I do not know what ATI's windows drivers do. Mac OS X 10.4.3 will fall back, and will render shaders with noise() corrrectly.

Share this post


Link to post
Share on other sites
IMO noise is something that shouldnt be supported in glsl
search the www.opengl.org glsl forum someone has written a noise lookup via a texture (runs reasonably fast)

Share this post


Link to post
Share on other sites
Given that core clock speed is increasing faster than memory bandwidth using instructions to calculate noise is a better solution than performing a texture lookup.

Anyways, if you need a noise function then look up 'simplex noise'

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!