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

Thread: Hardware transform and lighting

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    21

    Hardware transform and lighting

    Is there any connection between Hardware transform and lighting functionality present on NVidia GPUs (like GeForce Mx seris) and OpenGL?
    If there is can someone write a small piece of code to show me how to do this?

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Hardware transform and lighting

    With OpenGL it is automatic, particularly if you use the opengl transformations or glScale/glTranslate/etc. The driver takes care of that. (But I am not sure of the hhardware T&L of mx series...)

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    628

    Re: Hardware transform and lighting

    Originally posted by ZbuffeR:
    The driver takes care of that.
    In the sense that if you're rendering on GPU, GL will automatically use HW T&L.
    This does not apply if something bad happens and everything rolls back to a software path for some reason.

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    21

    Re: Hardware transform and lighting

    1. "In the sense that if you're rendering on GPU" - how can I render on GPU? Simply call glTranslate(..) and the required vertex transformation will be calculated by GPU?
    How can I be sure that T&L on Nvidia card is REALLY used on OGL?
    2. "This does not apply if something bad happens"
    Like what?

  5. #5
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Hardware transform and lighting

    1) glTranslate/etc transformations relies on OpenGL implementation. So it is done by the driver. If the driver knows that the card has T&L capabilities, the T&L work is sent directly to the card. Else, it is computed by the driver in software.
    So you can not be SURE. But I would trust nvidia dirvers in this case. If you really want to be sure, maybe try to implement the transformations yourself to compare ? Not sure it is worth the pain though.

    2) Old cards (do not remember which ones) only accelerated 1 GL light, so you can test that with a quite higly tesselated sphere, then add GL lights one by one, and see if the frame rate suddendly drops (software fallback). But on my GF3ti200, all 8 lights seem accelerated.

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    21

    Re: Hardware transform and lighting

    All is much clear now. Thanks.
    I have only one more question: do you know any site where it says that T&L engine on NVidia cards is used with OpenGL?(maybe T&L is used only with DirectX).

  7. #7
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Hardware transform and lighting

    Will you read what I said ?
    I you don't trust me, read this :
    http://www.delphi3d.net/faq.php?question=8

    You can read this thread too, it is not too wrong :
    http://www.gamedev.net/community/for...topic_id=58141

    From the horse's mouth :
    http://www.nvidia.com/page/search.ht...m+and+lighting

    To sum up, all nvidia cards having 'GeForce' in the name, so since 2000 or so.

Posting Permissions

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