Jump to content



Unity infinite plane

  • You cannot reply to this topic
4 replies to this topic

#1 chosenkill6   Members   -  Reputation: 102

Like
0Likes
Like

Posted 07 February 2012 - 05:12 PM

The game I am currently working on requires a sort of endless plane. It is actually a road that goes forever and the user can drive a car on it but the problem is that even though it should work theoretically it isnt working when I implement it. My idea was to have 3 planes moving towards the camera. They are laid end to end and move towards the cam at a constant speed. As soon as one hits a collider behind the camera it resets ahead of the camera but where the camera cant see it. This works for a few seconds but then gaps start to appear between the planes. I dont know if this is caused by the slight delay when the plane is being reset far ahead of the camera or something else... I am really confused because it works just like i intended it to for a moment. I can upload the project file or my scripts if that is required.

Thanks!

Ad:

#2 IceBreaker23   Members   -  Reputation: 110

Like
0Likes
Like

Posted 08 February 2012 - 10:26 AM

I think you should make a plane that covers the whole screen, and then just scroll the texture over it when your object moves.

#3 chosenkill6   Members   -  Reputation: 102

Like
0Likes
Like

Posted 08 February 2012 - 11:57 AM

I see where you are going with that but how would I do that? I don't know of any ways to make a dynamic texture in unity

#4 IceBreaker23   Members   -  Reputation: 110

Like
0Likes
Like

Posted 08 February 2012 - 02:21 PM

Hmm I dont know unity that well but in low level graphics(dx/gl) you just have to manipulate the texture coordinates

#5 meeshoo   Members   -  Reputation: 221

Like
0Likes
Like

Posted 18 February 2012 - 08:39 PM

I hope this will get you on the right track: http://answers.unity...e-textures.html






We are working on generating results for this topic
PARTNERS