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

Thread: help me

  1. #1
    Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Portugal
    Posts
    267

    help me

    I need help on my coding.
    I'm making a off file loader(kind of asc) , i have managed to read all the vertices from the file, all the coords are on the structure of pointers , but when i draw the contents of the structure into the screen everything is dark..
    I have checked and rechecked everything..
    Can someone look at my code, and try to figure the error on my coding?
    If someone is willing to check my code, could write me at brunomtc@hotmail.com or post the e-mail here, and i will send the code...
    Thanks
    Bruno

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Portugal
    Posts
    267

    Re: help me

    Ok, i figure it out...
    One thing, is there any function that scales objects in opengl?
    thanks

  3. #3
    Member Regular Contributor
    Join Date
    Feb 2000
    Location
    milano, italy
    Posts
    288

    Re: help me

    glScale()
    don't forget to enagle normalization with glEnable(GL_NORMALIZE)

    Dolo/\/\ightY
    Dolo/\/\ightY

  4. #4
    Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Redlands, CA, USA
    Posts
    292

    Re: help me

    glEnable(GL_NORMALIZE) usually bad for performance (unless you have 3D card with hardware geometry processor - GeForce,Quadro, Wildcat,...)

    You can use GL_EXT_rescale_normal extension (if available):

    #define GL_RESCALE_NORMAL_EXT 0x803A
    glEnable( GL_RESCALE_NORMAL_EXT );

    GL_EXT_rescale_normal

    Of course, if your application uses not too much polygons - it doesn't matter.

Posting Permissions

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