Results 1 to 2 of 2

Thread: 3d light rotation

  1. #1
    Guest

    3d light rotation

    I'm just getting started with OpenGl and already I have a problem. I need my light source to rotate in 3d with the mouse. I already have it rotating on the x and y axes, but I need the light source to go behind the object and then appear again. Any help?
    Thanks.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: 3d light rotation

    Have you thought about moving it on the Z axis?
    You can make the Y a fixed value, and move just the Z and X with the mouse

    Just a thought...



    Originally posted by Uther:
    I'm just getting started with OpenGl and already I have a problem. I need my light source to rotate in 3d with the mouse. I already have it rotating on the x and y axes, but I need the light source to go behind the object and then appear again. Any help?
    Thanks.

Similar Threads

  1. Positioned spot light - white light appearing from nowhere behind
    By windchine in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-03-2012, 02:30 AM
  2. Fixed light and moving spot light with the mouse
    By Jorcelangelo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-18-2012, 09:56 PM
  3. Light Rotation using C++
    By Madonna in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-08-2009, 01:46 AM
  4. Strange behavoir with Light + rotation
    By PureSpider in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 10-10-2008, 05:46 AM
  5. changing axis of rotation and center of rotation in openGL performer
    By ravishashi in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 07-08-2003, 04:42 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