Results 1 to 4 of 4

Thread: Flip normals?

  1. #1

    Flip normals?

    Hi everyone.
    I want to place a camera inside a big skydome. How can I draw this skydome? I suppose I have to draw it (using simple sphere function) and "flipping" normals.
    How can I do this flip?

    Thanx.

  2. #2
    Member Contributor
    Join Date
    Apr 2002
    Location
    Spain
    Posts
    63

    Re: Flip normals?

    Originally posted by vofka:

    How can I do this flip?
    It's easy: you just negate all the coordinates of your normal vector.

    (a,b,c)=>(-a,-b,-c)


    HTH

  3. #3

    Re: Flip normals?

    But what if I use function such as glutSolidSphere() to draw my skydome?

  4. #4
    Member Newbie
    Join Date
    Apr 2002
    Location
    Split, Croatia
    Posts
    43

    Re: Flip normals?

    Why dont you use gluSphere , gluQuadricNormals and gluQuadricOrientation functions.
    With gluQuadricOrientation you can change where your normals are pointing.
    Hope this helps.

Similar Threads

  1. flip object with glutReshapeFunc
    By pchopra in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-27-2012, 02:01 AM
  2. flip pixel buffer
    By John Qualis in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-17-2011, 12:24 PM
  3. flip pdf pages
    By humbert in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-17-2004, 01:34 PM
  4. glDrawPixels y-flip and speed
    By Jonte in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 06-13-2001, 10:50 AM
  5. Page Flip
    By Humus in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 04-04-2001, 09:30 PM

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