Jump to content
  • Advertisement
Sign in to follow this  
hanhan

OpenGL cg and vs ps

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

Hi, There are some problmes which confused me.Would you like to make me understand it clearly? 1) Cg is the topper level of vs and ps, so if we use cg, we must install directx or opengl? if we want to use shader 3.0, we must install the correct version directx which has vs 3.0 and ps3.0? 2)I have some codes written in fragment programme. Can i implement it using ps3.0? I am a newbie on cg. Would you like to help me? Thanks in advance. hanhan

Share this post


Link to post
Share on other sites
Advertisement
1. Yes, it is C like. Microsofts HLSL is pretty much identical as well. Good tools to use are RenderMonkey (from ATI) and FX Composer (from NVidia). Visual Studio .net includes debugging support for HLSL.
2. Should be able to. Not many graphic cards around support ps3.0 though

Share this post


Link to post
Share on other sites
Quote:
Original post by Trip99
1. Yes, it is C like. Microsofts HLSL is pretty much identical as well. Good tools to use are RenderMonkey (from ATI) and FX Composer (from NVidia). Visual Studio .net includes debugging support for HLSL.
2. Should be able to. Not many graphic cards around support ps3.0 though


Thanks very much!
In the fragment programme i have, there are codes which need the pixel position.
so if i want to run it on gpu, the card must supports shader model 3? ( that is to say it must support ps3.0?). Am i right?

Now i have a card ATI X600, i can not use it for above problem because it supports shader model 2.0??

Share this post


Link to post
Share on other sites
The card must support ps3.0 if you want to use them.
ATI cards currently do not support shader model 3.0, the only cards that do are currenty NVidia GeForce 6800 models AFAIK.

Share this post


Link to post
Share on other sites
Quote:
Original post by izzo
GeForce 6600 also supports shader model 3.0

cheers
sam


if i want to do texture look up in vertex shader, my card must support vs3.0??
thanks!

Share this post


Link to post
Share on other sites
You can use shader model 2, if you calculate the pixel position in the vertex shader and pass it down to the pixel shader in a texture coordinate. It's linear, so it comes down just fine.

Alternately, you can pass down clip space position in a texture coordinate instead.

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!