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 5 of 5

Thread: CG & OPENGL

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Pesaro,Italy,Italy
    Posts
    14

    CG & OPENGL

    Anyone can teach me how CG works in OPENGL ?
    When i use more textures in a fragment program CG resolves Texture Unit pass?
    Another question when in opengl i use more texture coords in a vertex progam i have to call glClientActiveTextureARB and how to pass to it more texture coordinates?
    Any documentation avaiable in the WEB about it?
    How can i concatenate more vertex and frament program when i render a mesh?

  2. #2
    Intern Contributor
    Join Date
    Mar 2003
    Posts
    95

    Re: CG & OPENGL

    You must call a fragment program ..there´s a lot of tutorials over the web
    As shadows into darkness, the Ninja fades away

  3. #3
    Junior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    211

    Re: CG & OPENGL

    None are much good. A lot of them detail ASM fragment programs, and not cg programs. I suggest you ask on cgshaders.org, they'll prolly help you out, or send you back here :P

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2003
    Posts
    8

    Re: CG & OPENGL

    There is a lack of good tutorials, and the examples on cgshaders.org don't like to compile.

    The best solution I found was to open the CgFX sample project that comes with the Cg Toolkit. It should be located here by default:
    C:\Program Files\NVIDIA Corporation\Cg\examples\runtime_CgFX

    CgFX is great because it offers a nice way of handling the materials as .fx files. AND this program compiles nicely

    Other than that, check out: http://www.codesampler.com/

    They have some simple and easy to follow examples of Cg and CgFX.

  5. #5
    Member Regular Contributor
    Join Date
    Jun 2002
    Posts
    371

    Re: CG & OPENGL

    Originally posted by Powerino:
    call glClientActiveTextureARB and how to pass to it more texture coordinates?
    Any documentation avaiable in the WEB about it?
    The glClientActiveTextureARB function is part of the multi texture ARB extension which is no longer available in the registry because it's in the OpenGL 1.2 core specs. Download the specs from opengl.org to find out how it is used, or search for sample code using google.

Posting Permissions

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