Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 10

Thread: NV_RC or ARB_FP?

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    NV_RC or ARB_FP?

    I am working on a specific OpenGL project and have to make a decision: stick with NV_register_combiners, NV_texture_shaders and so on, and support gf4 hardware, or simply skip to ARB_vp/ARB_fp and gf fx/radeon?

    I am quite new to vp and fp, but the same is the case for register combiners and texture shaders, and the project will have to be done in rather short time. What would you (advanced) guys recommend? I guess, once understood, vp and fp are easier and of course more powerful than dx 8 type NV extensions!?

    Thanks
    Jan

    [This message has been edited by JanHH (edited 01-15-2004).]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: NV_RC or ARB_FP?

    If the number of potential users isn't that important, then go for ARB_fp. It'll work on NVIDIA and ATI cards of the latest generation.

    If the size of your market does matter, you'll have to support anything at least back to a GeForce2, ATI Rage 128, and Intel i845, and forward to DX9 hardware, although how many stops you make on the way is up to you.

    The NVIDIA extensions are NVIDIA specific, and a dying breed -- the future clearly belongs to ARB_fp, and future more powerful ARB extensions such as the GLSlang.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: NV_RC or ARB_FP?

    I nearly made the decision to only use ARB_fp/ARB_vp, as it seems to be far more powerful and also a lot of easier to learn (compared to bothering with register combiners and texture shaders), and it's unlikely that someone will buy a gf 4 card anyway . The market is rather small, it's a client-specific application.

    Jan

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: NV_RC or ARB_FP?

    And what about glslang? I guess that's about the same functionality as ARB_vp/ARB_fp, but not assembler but c style code? Is that what one should use?

    And another question.. I read that when using ARB_fragment_program on gf fx, you have 16 texture units to work with.. does that really mean that I can bind 16 different textures at the same time and use all of them as input in my fragment program? for example, two normalization cube maps, one normap map, one gloss map and four color maps?

    Thanks,
    Jan

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Jan 2001
    Location
    NVIDIA, Austin, TX
    Posts
    591

    Re: NV_RC or ARB_FP?

    Yes, you can access up to 16 textures in a fragment program and up to 8 sets of texture coordinates on a GeForce FX video card.

  6. #6
    Member Regular Contributor
    Join Date
    Apr 2002
    Location
    Austria
    Posts
    328

    Re: NV_RC or ARB_FP?

    Yes, GLslang is just like ARB_fp/ARB_vp but not assembler. Additionally GLslang hase some more advantages than ARB_fp/ARB_vp. I'd recommend you to learn GLslang although it is in an early stage.
    There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

    There is another theory which states that this has already happened...

  7. #7
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: NV_RC or ARB_FP?

    thanks for answering.. I tink I'll start with ARB_fp, I am not afraid of assembler, and it seems to be VERY straightforward.

    What I do not understand is LIT. I do not understand what it does in a vertex program (ok, it computes the light coefficients, but what is that ), and in a fragment program I do not understand it even more. can anyone help?

    Thanks
    Jan

  8. #8
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    USA
    Posts
    223

    Re: NV_RC or ARB_FP?

    Used in vertex shader it will give you vertex lighting and used in fragment shader it will give you per-pixel lighting.

  9. #9
    Member Regular Contributor
    Join Date
    Jan 2003
    Location
    Edmonton, Alberta, Canada
    Posts
    322

    Re: NV_RC or ARB_FP?

    It's all in the ARB_vp spec. . .
    http://oss.sgi.com/projects/ogl-samp...ex_program.txt

    . . . but from what I understand. . .

    The LIT operation should accept the dot product of the normal vector and the light vector for x, the dot product of the normal vector and the half-angle vector for y, and the specular exponent for z. In the result, the x component holds the value to multiply by the ambient light colour, the y component holds the value to multiply by the diffuse colour, and the z component holds the value to multiply by the specular colour.

  10. #10
    Advanced Member Frequent Contributor
    Join Date
    Apr 2003
    Posts
    680

    Re: NV_RC or ARB_FP?

    thanks for your help.. looks like there's still a lot to learn left.

    Jan

Posting Permissions

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