Sign in to follow this  

Limiting skysphere's y movement

This topic is 3199 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Iv got a skysphere that is centred around the camera using a shader (multiplying the verts positions by the view, then the proj matrix and outputting xyww). Anyway, in the scene there is also a sea plane. As the camera moves up and down the skysphere follows the camera, however because of this the clouds on the skysphere appear to move up and down whilst the sea plane remains in the same place (as it should). Can anyone come up with an idea for limiting the cameras movement in the Y direction so this is not so apparent? Cheers.

Share this post


Link to post
Share on other sites
Uh, I don't suppose you can set the sky sphere's scale *really* big and just have it follow the X and Z movements on the player, could you? i.e.
void CSkyObject::UpdatePosition()
{
skysphere.pos.x = player.pos.x;
skysphere.pos.z = player.pos.z;
}


Is there a reason why you haven't tried that already?

Share this post


Link to post
Share on other sites

This topic is 3199 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this