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: Automatic Light Placement

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    Bologna,Italy
    Posts
    16

    Automatic Light Placement

    Suppose you ave a model inside a bounding box. In wich place must be positioned a light in order to achieve a reasonable illumination effect in dependence of the type of projection selected by the user? Is possible to compute this position knowing only the bounding box, model and projection matrix? Thanks for the collaboration and my apologize for the poor english......

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: Automatic Light Placement

    It's un-clear what "reasonable" means. If you can define "reasonable" mathematically, then I suppose that your problem is solved in that definition -- just implement that!

    Lacking that, I would set illumination to be directional, and to come from behind/above/totheleftof the viewpoint (assuming you keep track of VIEW different from MODEL in MODELVIEW).
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

Posting Permissions

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