Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4272932
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:38:41+00:00 2026-05-21T07:38:41+00:00

Guys, how can this be. But in my previous projects, it wasn’t. And I

  • 0

Guys, how can this be. But in my previous projects, it wasn’t. And I don’t know how I attempt this effect. Tell me the truth, please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:38:41+00:00Added an answer on May 21, 2026 at 7:38 am

    Section 18.050, How can I make my light move or not move and control the light position?:

    First, you must understand how the
    light position is transformed by
    OpenGL.

    The light position is transformed by
    the contents of the current top of the
    ModelView matrix stack when you
    specify the light position with a call
    to glLightfv( GL_LIGHTn, GL_POSITION, ... ).
    If you later change the ModelView
    matrix, such as when the view changes
    for the next frame, the light position
    isn’t automatically retransformed by
    the new contents of the ModelView
    matrix. If you want to update the
    light’s position, you must again
    specify the light position with a call
    to glLightfv( GL_LIGHTn, GL_POSITION, ... ).

    …

    • How can I make my light position stay fixed relative to my eye
      position? How do I make a headlight?

    You need to specify your light in eye
    coordinate space. To do so, set the
    ModelView matrix to the identity, then
    specify your light position. To make a
    headlight (a light that appears to be
    positioned at or near the eye and
    shining along the line of sight), set
    the ModelView to the identity, set the
    light position at (or near) the
    origin, and set the direction to the
    negative Z axis.

    When a light’s position is fixed
    relative to the eye, you don’t need to
    respecify the light position for every
    frame. Typically, you specify it once
    when your program initializes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok guys I imagine this is easy but I can't seem to find how
Hey guys, this is simple but I can't make it workn... blah! I have
Can you guys please check this code, it is MVC3 Razor <p><strong><u>Skills:</u></strong> @foreach (var
Ok guys I know this question has been asked before but I am very
Hye guys. Okay. I have done this coding. But it seems have error. Can
I'm hoping you guys can help me figure out why this is happening. I've
I hope some of you guys can help me with this problem.... I have
Can you guys help me figure this out? I have the following JavaScript snippet:
Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I
Hey guys i had an idea yesterday. Can you help me with this. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.