Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cg noise()



Thanks, I guess I missed that.  I assumed that if noise wasn't
supported by a particular profile, an error would be raised when 
trying to compile the program.

Josh


On Sat, Mar 26, 2005 at 08:39:47AM -0800, Geoff Stahl wrote:
> NVIDIA release notes for GLSL says something to the effect that noise  
> always returns a constant, not sure it this is at all true for Cg but  
> most (if not all) hardware currently little to no noise support.  You  
> maybe able to search the web for Cg noise support and get some info.   
> Most shaders I see currently use a 3D noise texture for noise support  
> on hardware that does not provide a noise function.
> 
> Geoff Stahl
> 3D Software Engineer
> Apple
> 
> On Mar 26, 2005, at 5:52 AM, Joshua 'Schwa' Gargus wrote:
> 
> >Hi,
> >
> >I'm trying to use the Cg Standard Library noise() function,
> >but it seems to always return zero.  I don't have access to
> >a PC right now, so I can't tell if this is a Mac issue.
> >
> >Here's my test fragment shader:
> >
> >void main(in float4 inColor : COLOR, out float4 outColor : COLOR)
> >{
> >    float3 intensity = abs(noise(2100)) * 10;
> >    outColor = float4(intensity, 1);
> >}
> >
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Cg noise() (From: "Joshua 'Schwa' Gargus" <email@hidden>)
 >Re: Cg noise() (From: Geoff Stahl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.