• Advertisement
Sign in to follow this  

Limiting skysphere's y movement

This topic is 3272 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
Advertisement
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
Sign in to follow this  

  • Advertisement