Results 1 to 8 of 8

Thread: About shaders

  1. #1
    Member Contributor
    Join Date
    Jul 2003
    Posts
    92

    About shaders

    I want to start to use shader with OpenGL.
    And i have several questions:

    1) Can i do the same effect with Cg and the future GLSlang?

    2) Does Cg work with ATI grphic cards (radeon 9700/9800)? will it work with all video card (ATI, NVIDIA, 3DLabs,...) and will it continue to be supported for long time?

    3) Will GLSlang works with todays video card like Cg (GeForce 4/FX, or radeon 9700/9800)?

    4) How can i compile GLSlang shaders? And will it works with MinGW? Where can i find the libraries?

    5) Where can i found some documentations about GLSlang? (for beginner)

    Thanks.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    595

    Re: About shaders

    1. Yes, since both provides enough information to do what the current HW can handle.

    2. Yes, CG compiles to the ARB vertex and fragment program extensions.

    3. i guess it will work on Fx and 9700/9800 but not on gf4 since the minimial requirements are set to high for that. But we will see when drivers supporting glsl comes out.

    4. you compile it via openglfunctions.. so you send the source to the opengldriver and then you let the driver compiles it. So it works will all languages/compilers that can use opengl, no extra libraries are needed.

    5. Look at some early examples on 3dlabs web.. since no driver yet supports it, noone has done a tutorial yet.

  3. #3
    Member Contributor
    Join Date
    Jul 2003
    Posts
    92

    Re: About shaders

    Thanks.

  4. #4
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: About shaders

    Originally posted by greg2:
    Does Cg work with ATI grphic cards (radeon 9700/9800)? will it work with all video card (ATI, NVIDIA, 3DLabs,...) and will it continue to be supported for long time?
    Cg's support is being dropped by nvidia already

  5. #5
    Member Contributor
    Join Date
    Jul 2003
    Posts
    92

    Re: About shaders

    ?
    Why?
    Cg is new, and Nvidia has created it.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    340

    Re: About shaders

    Because now there is a high level shading language available for both major 3D APIs (DX9's HLSL and OpenGL's glslang).
    Cg is not needed anymore.

  7. #7
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    Re: About shaders

    Originally posted by kehziah:
    Because now there is a high level shading language available for both major 3D APIs (DX9's HLSL and OpenGL's glslang).
    Cg is not needed anymore.
    I disagree with that. Cg will soon be less useful than it is now but CgFX is still a step foward other shading languages and anyway, Cg has been already introduced in DCC programs. Unless the same happens to other shading languages, Cg will be useful.

    The fact Cg can be ported over D3D or GL is another nice advantage. I personally don't care for that but a lot of developers will want to develop for Xbox / Xbox2 and PC(GL) without changing their assets too much (shaders are not exaclty assets, but they are very close to them). Cg allows a faster transition and that's a definite plus.

    EDIT: repeated word.

    [This message has been edited by Obli (edited 10-31-2003).]

  8. #8
    Senior Member Frequent Contributor
    Join Date
    May 2001
    Location
    France
    Posts
    765

    Re: About shaders

    1) no. both languages are different, even if most of the features in one do exist in the other. Actually GLslang is a bit superior than Cg, but in the future Cg can evolve too.

    2) Yes it works for ATi cards, but with ARB profiles. There doesn't exist an ATi profile.
    Of course Cg support will continue. Currently nVidia works more on DX's HLSL but that doesn't mean that Cg is being dropped, and won't be for several reasons.

Similar Threads

  1. need help with shaders
    By juanito in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-14-2014, 10:40 AM
  2. Can shaders be used here?
    By rakeshthp in forum OpenGL: GLSL
    Replies: 7
    Last Post: 08-25-2012, 06:39 PM
  3. Replies: 7
    Last Post: 08-11-2012, 01:52 PM
  4. Shaders and VBO
    By Pedro Xavier Contla in forum OpenGL: GLSL
    Replies: 2
    Last Post: 02-13-2012, 09:17 AM
  5. Shaders
    By Agarwen in forum OpenGL: User Software
    Replies: 0
    Last Post: 05-29-2003, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean