Results 1 to 3 of 3

Thread: Vertex normal calulations for smooth shading

  1. #1
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Perth
    Posts
    2

    Vertex normal calulations for smooth shading

    I can calculate normals for the polygons I have in my object, but i need to specify
    vertex normals to implement smooth shading. I know that i need to average the polygon normals around the vertex, but is too complicated. Is there an easier way?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    183

    Re: Vertex normal calulations for smooth shading

    Hi Byron!

    No offense, but what do you mean by "it is to complicated"?

    It's just a question of structuring your datatypes, than it is a piece of cake.

    If your object does not change its shape, you only need to calculate them once and transform them the same way you do with your vertex data.

    If you have any further questions, don't hesitate to contact me.

    Regards,

    LG

  3. #3
    Junior Member Newbie
    Join Date
    May 2000
    Location
    Perth
    Posts
    2

    Re: Vertex normal calulations for smooth shading

    Well, I can't structure the datatypes how I want to because I am modifying some source code that already exists, and the datatypes used in the code don't make it very easy to do this (bit messy). ah well...looks like i'll just have to suffer
    thanx anyway

Similar Threads

  1. Help with smooth shading and calculating vertex normals
    By astrelke in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-11-2014, 01:48 AM
  2. Flat shading with smooth vertex color.
    By Narann in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 11-25-2011, 07:36 AM
  3. calculating normal for smooth shading
    By badass in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-28-2010, 10:52 AM
  4. weird smooth shading, vertex normals?
    By Riskz in forum OpenGL: Basic Coding
    Replies: 40
    Last Post: 03-19-2009, 12:52 PM
  5. SMOOTH-SHADING and Normal Vectors
    By BigRed in forum OpenGL: GLSL
    Replies: 1
    Last Post: 08-02-2004, 11:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean