Jump to content
  • Advertisement
Sign in to follow this  
judge dreadz

whats this Cg error?

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

i am trying to sort out using MRT. i dont understand what the following error is complaining about: CG ERROR : The compile returned an error.(17) : fatal error C9999: Invalid component for output connector my fragment shader code: void main ( float2 coords : TEXCOORD0, uniform samplerRECT posTex, uniform samplerRECT velTex, out float4 new_pos : COLOR0, out float4 test : COLOR1 ) { float4 pos = texRECT(posTex,coords); float4 vel = texRECT(velTex,coords); new_pos = pos + vel; test = vel; }

Share this post


Link to post
Share on other sites
Advertisement
Hmm, either your card doesn´t support multiple color outputs, but that´s improbable, or it is a bug.

C9999 as error code...probably a bug.


Regards

Michael

Share this post


Link to post
Share on other sites
righto, i've figured what the problem is (kind of). you need fp40 profile to use MRT. according to my card, it doesnt support fp40. i think it should do, since GeForce 6 series are supposed to fully support shader model 3 (which i think includes MRT). all the drivers are up to date. i'm a bit pissed at this, any ideas why it wont do fp40?

Share this post


Link to post
Share on other sites
The 6600 does support FP40. I just tried your shader using cgc on the command line and everything worked fine. How are you testing for FP40 support?

Share this post


Link to post
Share on other sites
i have just tried compiling using

fragmentProfile = CG_PROFILE_FP40;

and i get a profile not supported error.

also when i do cgGLGetLatestProfile(CG_GL_FRAGMENT) it says its FP30.

is there a setting i need to put or something to enable it? i tried updating the drivers but didnt change anything.

Share this post


Link to post
Share on other sites
i reinstalled the Cg compiler yesterday when i did the drivers, so everything should be up to date. its really doing my head in, i cant do my uni project which i specifically bought this card to do.

Share this post


Link to post
Share on other sites
GeForce 6600 supports Shader Model 3.0 for DirectX 9. I´m not sure if it supports that for OpenGL. But it could be an answer, why fp40 isn´t supported.

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.

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!