Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by Will · Jan 02, 2010 at 09:19 AM · terrain

Possible Infinite Terrain Plane?

Hello everyone, i have a quick question for everyone! As i have been working a a huge game world i thought wouldn't it just be easier to have an infinite terrain plane i could just work on, so the question i ask is, is it possible to make an infinite terrain plane through scripting? Answers are greatly appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
11
Best Answer

Answer by AngryAnt · Jan 05, 2010 at 12:12 PM

Yes. With a treadmill. This is what you need:

  • A set of Terrains of equal dimensions. One you're standing on and a few more around that - arranged in a grid.
  • Make sure that your far clip plain limits the camera vision so that its not possible to see more than one terrain length.
  • When you move from one grid cell to another (you should implement some slack here - rather than a strict boundary which would result in flickering back and forth between grid configurations), you rearrange the position of the grid cells to make sure that you're now again position on the centred cell.
  • Whenever you (re)configure your grid, you should update Terrain.SetNeighbors to match. This ensures that the terrains seamlessly match up.
Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Will · Jan 05, 2010 at 01:44 PM 0
Share

$$anonymous$$y friend, you have truly saved me, i thank you :D

avatar image BigBulle · Jan 15, 2011 at 02:25 AM 0
Share

Hello! Is there some examples of such treadmill script? How does it work in the editor? Do you display all the tiles without the treadmill algorithm?

avatar image user-9770 (google) · Mar 19, 2011 at 05:14 AM 0
Share

Will such a 'treadmill' concept work in a $$anonymous$$ultiplayer space-game with movement possible in all directions on any axis?

In your scenario, it sounds as though you're describing forward/back/left/right movement .... can treadmills go one more step into true 3D movement (i.e: outer space)? And if so, can this concept work within a multiplayer conetext ?

avatar image AngryAnt ♦♦ · Mar 30, 2011 at 01:42 PM 0
Share

3D is perfectly feasible. The concept operates on a grid - that could just a well be a 3D grid. $$anonymous$$ultiplayer has no impact on the idea as it is a client side visualization setup.

avatar image psychiclocust · Oct 24, 2019 at 01:21 PM 0
Share

Hello there. Would you have more details on this concept of "slack" ? How could it work ? Based on distance to tile center ? I'm actually having trouble with the harsh transition from tile to tile given the fact I'm downloading terrain tile ... 10x

Show more comments
avatar image
5

Answer by Looney Lizard · Jul 18, 2012 at 02:22 PM

Based on the recommendations above I have implemented a very simple script to do the "treadmill" infinite terrain. Attach this script to a terrain and it will repeat that terrain in a 3x3 grid, with the original terrain in the middle. Drag and drop the player game object onto the PlayerObject property of the script. As the PlayerObject moves onto a new grid cell (terrain), this new terrain will become the middle cell and the terrain copies will be cycled around so that the new middle cell is again completely surrounded by terrain copies. For my purposes I simply needed a completely flat terrain (never-ending floor), but if that is not what you need, the terrain needs to be tilable, ie the left must match up with the right and the top must match up with the bottom.

Hope this helps someone. :)

link text


infiniteterrain.zip (1.0 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TimoFran_2014 · Nov 23, 2015 at 09:09 PM 0
Share

Thanks a lot for the script

avatar image
0

Answer by m50 · Jan 02, 2010 at 04:05 PM

no, but you can make a really large one. Go to Terrain->Resolution, and set the resolution to like 12000 (i dunno max resolution) in both width and length. You will, however, need to take into consideration, that your PC WILL lag when doing so. and you should NEVER build a game with a terrain that large. If you going to be making an MMO, like WoW, with multiple zones, you should to Application.LoadLevelAdditive or something like that, look it up in the script reference, and make all your zones with different levels. I do not know how this works, since i have never tried it, but yah.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Loading terrainData from Resources into existing Terrain object using UnityScript 1 Answer

Making an object stay parallel to the terrain it is on? 2 Answers

Terrain Generation Problem 1 Answer

Terrain generation problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges