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

Thread: good normals but no lighting when i display the meshes

  1. #1
    Member Regular Contributor
    Join Date
    Mar 2002
    Location
    France
    Posts
    363

    good normals but no lighting when i display the meshes

    Hi,
    I compute my normals and i multiply it by the tranformation matrix of my .3ds file. When i compare the results with the normals' values of the .ase file of the same meshes, i have same results but the meshes aren't lighted, and they are when the normals are a little different with a negative value for example(ex: -0.24 in the .ase and 0.24 with my own values)
    I compute vector ab and ac.
    Do you see what can be the error ? is it an error of checking the .ase file's values ?

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    5

    Re: good normals but no lighting when i display the meshes

    Hello,

    Be aware that in the ase/3ds files, the z and y axis are swapped, and you must corect this first. Then be sure that we've enable the OpenGL lighting and the specific light that afects the object.

    Wolf.

Posting Permissions

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