Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by adde210 · Aug 28, 2014 at 03:12 AM · glitchfloatingorigin

Glitches issues (huge world) 20k x 20k

hey i am using the Floating Origin script solution that would fix this glitches,

you know when you go to far from the space origin and stuffs that u have start glitch between each other. I am building a very big map and i use this in my test scene:
U-FPS the character and simple terrain from unity and i magnifying the terrain to 20000 X 20000.

then i place may say 30 buildings in a line from the one corner to the other corner and the start running. so the first building ofc i don't see any glitches, but when i come to the we say to the twentieth building the i see glitches. and i use the FO script.

the script is placed in my character camera there it should be. and i see in my scene that the script is working , i move and when i go 100 units from the origin then i flips back to the origin and the world (terrain and the buildings) flips towards me.

I'm a bit bad at explaining, if you don't understand me (Click Here) so can you see the video

so how to solve this glitches issue??? i thought this FO should solve this!!

.

2H later

I kind of find the problem.
it is the terrain that is too large. for I minimize the terrain to 2000 x 2000 and placed it in the same place where the building where I saw it glitched and no glitches were found. the problem now is that in my real scene I already have a terrain that I want to avail myself of that I have built up. I understand that I may need to be split up my terrain into several pieces. but how do I do that? and is this the solution?

Have a video of this to (Click Here)


FO = Floating Origin



solution


i find the solution I bought this and this is good sh't

Terrain Slicing & Dynamic Loading Kit

Comment
Add comment · Show 5
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 Kiwasi · Aug 28, 2014 at 04:55 AM 0
Share

Wow, that's bad. But I don't think your problem is floating point precision. Floating point precision errors shouldn't even be visible until you get out around 20,000 units out. A typical FO threshold is 6000 units, not 100.

Unfortunately I'm not familiar enough with the graphics side of Unity to tell you what the problem is. But its not floating point precision.

avatar image adde210 · Aug 28, 2014 at 09:42 AM 1
Share

I kind of find the problem. it is the terrain that is too large. for I $$anonymous$$imize the terrain to 2000 x 2000 and placed it in the same place where the building where I saw it glitched and no glitches were found. the problem now is that in my real scene I already have a terrain that I want to avail myself of. I understand that I may need to be split up my terrain into several pieces. but how do I do that? and is this the solution?

avatar image Scribe · Aug 29, 2014 at 09:24 PM 0
Share

Personally I think it is floating point precision, and I believe the problem is because when you are at the far corner of the terrain, even though the camera is near the origin, the terrain object which is so large, has its origin at the opposite corner which is therefore ~28000 units away from the origin.

Therefore your solution of splitting the terrain up should work well as then no object that is being rendered will be further than ~2800 units which should be fine.

If you have a heightmap that you are building your terrain from it should be quite easy to split the terrain up and set the heights of each segment to a part of your heighmap, else you could write an editor script (or runtime though editor would be better) to break up your terrain. Check out the TerrainData class!

avatar image flaviusxvii · Aug 29, 2014 at 09:32 PM 0
Share

http://answers.unity3d.com/users/358112/the-watzr.html <--SA$$anonymous$$E PERSON

Dude.. you are going to need to learn how to program to solve this. There are lots of examples of people using terrain chunking. http://lmgtfy.com/?q=unity3d+terrain+chunks

avatar image flaviusxvii · Aug 30, 2014 at 07:36 PM 0
Share

@adde210 aka theWATZR.. chew on this you liar.

3 Replies

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

Answer by adde210 · Aug 30, 2014 at 06:34 PM

I answer myself, I found this solution that works fine for me.

terrain-slicing-dynamic-loading-kit

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
avatar image
0

Answer by alok-kr-029 · Aug 28, 2014 at 10:19 AM

try this may be this can help http://docs.unity3d.com/Manual/script-AntialiasingAsPostEffect.html

Comment
Add comment · Show 2 · 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 adde210 · Aug 28, 2014 at 01:14 PM 1
Share

this answer does not belong to my question

but thank you for the tips of graphic blur on edges

the Q is about how to stop the glitching between object and the terrien and i found out that i cant have a big terrain and i need to cut my terrain that i have (that is 20kx20k) in to chunks or something.

I do not even know if this is the solution to cut or whether it is through the script or how to solve the problem with the glitches

look at the Q again, and read it probably also check the videos to see what I mean

avatar image AngryBurritoCoder · Aug 29, 2014 at 09:26 PM 0
Share

It CAN be the floating point precision, because at 20,000 x 20,000 you lose a lot of precision , if the terrain size was at maximum of 9999 x 9999 you would be able to move objects at millimetre precision but now you are at over that of 20000x20000 so you only have a centimetre precision, and that can maybe cause the jittering of your object ?

This explains way better read it pls :) http://www.davenewson.com/dev/unity-notes-on-rendering-the-big-and-the-small

avatar image
0

Answer by AngryBurritoCoder · Aug 29, 2014 at 09:27 PM

It CAN be the floating point precision, because at 20,000 x 20,000 you lose a lot of precision , if the terrain size was at maximum of 9999 x 9999 you would be able to move objects at millimetre precision but now you are at over that of 20000x20000 so you only have a centimetre precision, and that can maybe cause the jittering of your object ?

This explains way better read it pls :) http://www.davenewson.com/dev/unity-notes-on-rendering-the-big-and-the-small

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 adde210 · Aug 29, 2014 at 11:38 PM 1
Share

Hey Fal it's a bit pathetic that you come in to my question and tell me I'm somebody else. I went in to the_W .... and saw that he / she had a similar issue as me. but do not see that you had something sensible answer to his / her question. I want to slice my map like on this (video) but i am using the free vertion of unity3d

avatar image adde210 · Aug 30, 2014 at 03:17 AM 1
Share

how far can we go in unity before its start to jittering?

or how big platform area can i have before enay jittering providing Effects ?

avatar image adde210 · Aug 30, 2014 at 02:53 PM 1
Share

thanks that page helped me (Y)

avatar image adde210 · Aug 30, 2014 at 04:03 PM 1
Share

so the maximum of the terrain should be max 2000 X 2000 big ? or 200 x 200?

beosound that it's gonna start jittering?

avatar image AngryBurritoCoder · Aug 30, 2014 at 04:28 PM 1
Share

9999 x 9999 or below should be good enough

Show more comments

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

7 People are following this question.

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

Related Questions

Multiple Cars not working 1 Answer

Glitchy Turret Script 2 Answers

Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers

How To Make An Invisible Wall That's Impossible To Get Out Of? 1 Answer

Lerping using Time.deltaTime results in object going to origin. 1 Answer


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