Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 8 123 ... LastLast
Results 1 to 10 of 71

Thread: Nvidia Cg toolkit

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Aug 2000
    Location
    Portsmouth, Hampshire, England
    Posts
    1,063

    Nvidia Cg toolkit

    http://www.nvnews.net/articles/cg_to..._toolkit.shtml

    Looks V. interesting.. Any idea when it's coming out?

    Nutty

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,652

    Re: Nvidia Cg toolkit

    First I want to know "What the hell is it?"

    If it's a shader compiler (likely, but still no conclusive descriptions out there), then, ummm, what's the point?

  3. #3
    Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    354

    Re: Nvidia Cg toolkit

    What about OGL 2.0 shading language? Will NVIDIA once again try to impose its own standard while other IHVs are trying to agree on a common solution?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Nvidia Cg toolkit

    not at all interesting.. why can't nvidia follow the standarts of the others? they can't do it with the exts, now they can't with gl2.0..

    i guess thats what nvidia once said about "we develop an own glide, a modern one for modern gpu's"

    well.. imho, its bull****
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Jul 2001
    Posts
    533

    Re: Nvidia Cg toolkit

    I suggest this would not be the case. It is entirely reasonable to expect the compiler to spit out GL2.0 shader symbols rather than NVIDIA ones. The interesting thing about this is that it sits on top of DirectX and OpenGL, rather than just OpenGL.

  6. #6
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Nvidia Cg toolkit

    it doesn't sit on top, it sits beside. and i dont need a 3rd api. really not.i dont get more features, i dont get more power, i dont get stuff that i could not get before.

    just support gl2.0. why? because then we can code for EVERYONE, not just for nvidia. if i have to code for nvidia only, i want to see money from nvidia, for sure.
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  7. #7
    Member Regular Contributor
    Join Date
    May 2001
    Posts
    255

    Re: Nvidia Cg toolkit

    http://www.cgshaders.org/shaders/VertexNoise/

    I see that a new dedicated site, cgshaders.org , is up already. The .org extension I suppose indicates a non-proprietary leaning.

    By strange co-incidence the 'feature shader' is a vertex noise shader!

    I wonder if Cg is flexible enough to allow me to port my "128 instruction Two Octaves 3D Noise with Surface Normals" vertex prog!

    Remember folks, If anyone offers you a sub-standard 1 Octave 3D noise shader tell them you can get better elsewhere

    Rob J.

  8. #8
    Member Regular Contributor
    Join Date
    May 2000
    Posts
    454

    Re: Nvidia Cg toolkit

    Nutty, you beat me to it

    Anyway, I think Cg looks halfway interesting. From reading about it, my take on it is that it will theoretically allow you to write a single instructions set and compile it to DirectX 8, DirectX 9, register combiners/vertex programs, and OpenGL 2. That would be a tremendous improvement over the current state of things. But in order for this to become something more than a sort of NV-GLIDE, we need other IHVs to support it. Until that happens, nvidia calling this "the new industry-standard Cg language" is nothing but a joke. Unfortunately, a glance at their list of "Companies Supporting Cg" does not yet include any of the IHVs.

    I havent had time to look at it in detail yet. I did look at a few source files and it looks pretty nice. What Im not yet sure about is how this all goes into your app. Does it stay as source code and get compiled by the runtime? Does it get compiled to a platform-neutral bytecode? Will the code be able to dynamically upgrade to new platforms (such as if you ship it in an app today, then when OpenGL 2 or DirectX9 ships it will automatically use whatever is available). How do you deal with things like instruction set/number differences between hardware (say I ship a program using it today, and another IHV suddenly supports it a few months from now, but has a fixed set/number of instructions).

    It looks like we still end up writing for multiple targets. The main advantage (assuming other IHVs support it) is just that we can use the same language for nvidia/ATI/matrox/etc opengl and for various versions of directX too. For the time being (until DX9/OGL2 support in hardware is mainstream) we wont have to write less code paths, just learn fewer languages/instruction sets.

    [This message has been edited by LordKronos (edited 06-13-2002).]
    Ron Frazier

  9. #9
    Member Regular Contributor
    Join Date
    May 2000
    Posts
    454

    Re: Nvidia Cg toolkit

    In thinking more about it, I am actually starting to realize that perhaps the largest benefit of Cg is that you can write shaders in a high level language. I know that's pretty obvious, and its something that nvidia is pointing out, but I guess it didnt sink in for me because I personally am pretty comfortable with things like assembly language. Writing shaders in assembly or using register combiners is not a hold up for me. However, for a lot of programmers, it is. I always thought register combiners were perfectly fine, but in speaking to some nvidia guys a few years ago they said their biggest complaint was that a lot of developers were having trouble learning or getting comfortable with combiners. Same thing happens in assembly, a lot of programmers dont get the concept of a limited number of registers. They have X number of registers, but need 5x number of temporary variables. Sharing the registers among their "variables" just doesnt click with them. Being able to program in a high level language will let a lot more poeple do it.

    Wait a minute. I dont want that to happen...it makes my skills LESS valuable
    Ron Frazier

  10. #10
    Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Inside an xbox
    Posts
    290

    Re: Nvidia Cg toolkit

    Hey, NVIDIA, what about the OGL 2.0 shading language? Deal to impose your standards in an .ORG WITHOUT the consent of other companies like ATI, SGI or Matrox???

    I think the Shader-language war is started...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •