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: Normals in ASE files

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2001
    Location
    UK
    Posts
    27

    Normals in ASE files

    I have loaded an ASE file sucessfully and viewed it as a wire frame however when I try and load the face and vertex normals for the mesh and light the scene only a handfull of the pannels are visable I made the assumption that the normals were in the same order and the xyz coordinates XZY I am not too good on lighting and would appreciate a simple add this to this function to put a light source in if there is such a thing avaliable

    Thanks Simon

  2. #2
    Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    340

    Re: Normals in ASE files

    I'm not an expert on the ASE format, but you can get face normals for flat shading by using the cross product of two edge vectors (you get the edge vectors by subtracting vertices). You can get vertex normals for smooth shading by averaging the normals of all faces sharing a vertex.

Posting Permissions

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