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



Hi !

I tried using the noise() function from Cg a month ago on Linux, and it was always returning 0. After searching on Google for a long time, I finally found out a nVidia document saying this was normal, and to be corrected in future implementations.
Thus, we had to look for a Perlin noise implementation in Cg, and we fought hard to get it right... If you need it, please tell me and I'll send you our code, and the original nVidia code we used.


Fred Leboucher

On Mar 26, 2005, at 2:52 PM, 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);
}

Thanks,
Josh
_______________________________________________
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


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



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.