Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ploiu

cg bump mapping...

This topic is 5561 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, Where can I find a tutorial on how to do bump mapping with normal maps with cg using opengl? Thanks

Share this post


Link to post
Share on other sites
Advertisement
thanks...

now I''ll make a pretty direct question: is cg the best way to bump map nowadays?

Share this post


Link to post
Share on other sites
CG, glslang, vertexprograms, fragmentprograms, env combiners, reg combiners...

everything here is about choise, i have several different ways to do bumpmaps, and i use different methods depending on the number of textures on the surface, the accuracy i need and what card i need it to work on.

most of the time i use vertexprograms + envcombiners and dot3 ( in the envcombine), its simple and works on several cards.. i also have versions that preforms real normalixation per pixel, and then i use fragment programs.. I dont like CG becourse the way it was meant to run ( according to me) that is, compile at runtime requires atleast an extra external dll (i cant use their .lib in delphi) and precompile to a vertexprogram doesnt give me anything for such simple shaders im writing at the moment. when glslang comes i think i will be using it as much as possible.

Still, CG is pretty nice, so if you like the syntax and dont want to hazzle with ASM, then use it..

Share this post


Link to post
Share on other sites
I know that people uses CG with delphi, I''ve seen such program myself.

______________________________
Madman

Share this post


Link to post
Share on other sites
Yes, its possible to do that, its just that for runtime compilation you need an external dll ( and even exe i early versions), but in vc++ you can use a static linked .lib which is much nicer and cleaner, but delphi cannot handle the COFF format that the .lib is in.

Share this post


Link to post
Share on other sites
thanks...

just another thing: does anyone have any idea of when I, a nvidia geforce user, will be able to work with glslang?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
by the way... does anyone know any bump mapping demo using cg with opengl, thats uses those blueish normal maps, not height maps...?

Share this post


Link to post
Share on other sites

  • 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!