Jump to content
  • Advertisement
Sign in to follow this  
jagguy2

repeating background

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

In 3D how do you do repeating backgrounds?
The issues of displaying a road for example in a car race (just straight head track with a few curves. NOt a loop.

Share this post


Link to post
Share on other sites
Advertisement
A simple approach would be a series of quads, each with texture coordinates ranging from 0 to 1 along the direction of the track. Use a texture that "wraps" from top to bottom. I.e., where the top of one quad abuts the bottom of the next, the texture should appear continuous.

Share this post


Link to post
Share on other sites

A simple approach would be a series of quads, each with texture coordinates ranging from 0 to 1 along the direction of the track. Use a texture that "wraps" from top to bottom. I.e., where the top of one quad abuts the bottom of the next, the texture should appear continuous.


I am not seeing how this works exactly. the texture could go over all the shapes and only a few parts of the trach should be displayed at once and then keep swapping? each part of the track has its own texture in place.
This is what I rrad.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!