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
1
Question by valerik · Dec 06, 2012 at 09:01 AM · bugobjectsissue

Internal Error: Too many pairs created, new pairs will be ignored. This is perhaps due to an excessive number of objects created at one location.:

Hi all! I'm creating a cube world. While it works with 50x50x3, with 100x100x3 (30000) elements i get the error:

Internal Error: Too many pairs created, new pairs will be ignored. This is perhaps due to an excessive number of objects created at one location.:

I see this discussion: http://answers.unity3d.com/questions/43599/what-are-pairs.html

but some resolved ( i splitted 100*100*3 in 4 sub-matrices of 50*50*3 but doesn't work), one says it's phisX limit. any suggestion?

Comment
Add comment · Show 1
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 valerik · Dec 07, 2012 at 11:27 AM 0
Share

none suggestion? it's this just a unity limit?

2 Replies

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

Answer by Graham-Dunnett · Dec 07, 2012 at 12:14 PM

Well, it's a PhysX limit. When you do collision detection in a physics engine, typically you locate objects that can collide with each other. Since collision happens between two objects the physics system calls them pairs. All the objects in the scene and processed and pairs are created - these will be references to two objects that either are colliding or might be soon colliding.

In your case, I guess you have many many many objects all located at the same point in space, so they are all colliding with each other. PhysX has tried to create pairs and has simply run out of space to store the pairs.

The solution is to design your game so that PhysX does not have so much work to do. Do you actually need collision detection between 3000 cubes? If the cubes are all aligned in a grid you could detect the collisions with some simple maths and not use PhysX.

The link you posted in your question pretty much says what I just said.

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 valerik · Dec 08, 2012 at 10:41 AM 0
Share

Yeah, all my cubes have got a collider. I need the collider because i have a no-rendered cube in front my camera and when it passes over the grid-cubes, renderizes only the cubes inside it. In this way i save fps and performace. Thanks you. I will try to scale the cubes-grid' collider from 1 to 0,5 so they can't collide, or try to use math =)

EDIT: If i set collider size to 0,5, it works and no more error =) it's a little bit slowly to create 30000 cubes, but maybe i can make some optimization in the creation process, paralleling first of all, but this is another problem ;)

THAN$$anonymous$$s a lot!

avatar image
1

Answer by lunascii · Apr 24, 2013 at 04:04 AM

I was able to make the error go away by changing the center point and size of the collider. My small cube prefab objects are 1x1x1 and I set the origin to .5,.5,.5 and the scale to .45 in each direction. No longer get the error but I still can't seem to create cubes larger than 25 in scale. That's 25 squared of smaller cubes so I know it's a lot but I am trying to figure out how to make large terrains, just like you.

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

12 People are following this question.

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

Related Questions

Unity 2018.1 Stuck In Loop 1 Answer

Known issue with Unity Editor on Surface Pro? 3 Answers

Gfx.waitForPresent kills performances 1 Answer

Line cast doesn't work once game is built. 0 Answers

Gizmos stopped showing up for Gameobject unless it is rotated 180 degrees on Y axis 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