Sign in to follow this  

Parallax Mapping

This topic is 1514 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

Hello, 

 

I'm relatively new to game programming and I tried searching for a topic but found none.

 

I wanted to ask for a concept guide in 2D game on how to create an image that loops back given the direction it moves. An example would be a fog/cloud or a background image that  I wanted to implement in my game. I tried wrapping the image when it reaches the end of the screen but it isn't working out for me and it looks bad and clunky when I move the entire image to the opposite direction after.

Edited by dualdual

Share this post


Link to post
Share on other sites

Hi, I'm not entirely sure what you mean by an image that loops back. Do you want a background that scrolls seamlessly in a single direction? If so, a very important step will be to make sure that the background doesn't have a visible seam (you can check this in photoshop by tiling the texture with filter > other > offset - if you can clearly see where one tile ends and another begins you're going to have to edit the image).

 

I don't know what language and libraries you're working with, but this XNA tutorial might provide some educational value: http://www.xnadevelopment.com/tutorials/scrollinga2dbackground/ScrollingA2DBackground.shtml

Share this post


Link to post
Share on other sites

This topic is 1514 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