x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Ability to increase number of destructible meshes?

I was testing out a simple destructible mesh imported from the physX Lab and it works fine as you can see by the image below. I was using the guns from the FPS example game project to cause the damage.

I copied and pasted the box over and over and there was no issue until I got to around the 1000th instance. At that point, when I would test out the scene, rather than breaking into pieces like it should it would 'delete' the chunks that were supposed to break apart. Whatever chunk was taking damage would instantly disappear rather than fall/ simulate physics. I get the feeling I'm hitting some sort of 'cap'.

The game I'm working on will require a lot of destructible meshes in one map. I'm aware of the dangers of having too many objects simulating physics at once but that shouldn't be an issue in our game since not many will be able to be destroyed at once.

alt text

Product Version: Not Selected
Tags:
boxes.jpg (354.3 kB)
more ▼

asked Jan 05 '15 at 09:36 PM in Using UE4

avatar image

SlapFactory
11 2 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi,

tune these variables:

 p.APEXMaxDestructibleDynamicChunkIslandCount=2000
 p.APEXMaxDestructibleDynamicChunkCount=10000
 
 

In the Engine\Config\ConsoleVariables.ini.

Regards

Pierdek

more ▼

answered Jan 05 '15 at 10:11 PM

avatar image

Pierdek
2.6k 73 49 131

avatar image SlapFactory Jan 05 '15 at 10:34 PM

Thank you so much!

avatar image John Alcatraz May 05 '15 at 05:44 PM

Where is the ConsoleVariables.ini? I don't have any...

avatar image Pierdek May 05 '15 at 07:29 PM

If you have the engine installed version from the launcher the config files are placed somewhere around:

f:\Epic Games\4.7\Engine\Config\

f:\Epic Games\4.6\Engine\Config\

But it depends where you have installed the engine and which version of the engine you are using.

If you are using the github version you should ask yourself ;)

avatar image John Alcatraz May 05 '15 at 07:35 PM

So I can't change it on a per project basis but only globally for the whole engine version? Anyway, thanks!

avatar image Pierdek May 05 '15 at 07:42 PM

You can try change them per project by creating config file similiar to "Engine\Config\ConsoleVariables.ini" in your project "YourProject\Config\ConsoleVariables.ini", but for me it did not work.

avatar image John Alcatraz May 05 '15 at 07:45 PM

Yeah this is what I have tried, and it did not work. I now put the commands in the global file and it indeed works! Thanks! Do you know what exactly the 2 different commands do? Where is the difference between Chunk Count and Chunk Island Count?

avatar image Pierdek May 05 '15 at 07:49 PM

From apex headers:

     /**
         The maximum number of allowed NxActors which represent dynamic groups of chunks.  If a fracturing
         event would cause more NxActors to be created, then some NxActors are released and the chunks they
         represent destroyed.  The NxActors released to make room for others depends on the priority mode.
         If sorting by benefit (see setSortByBenefit), then chunks with the lowest LOD benefit are released
         first.  Otherwise, oldest chunks are released first.
     */
     virtual void                            setMaxDynamicChunkIslandCount(physx::PxU32 maxCount) = 0;
 
 
 
 /**
         The maximum number of allowed visible chunks in the scene.  If a fracturing
         event would cause more chunks to be created, then NxActors are released to make room for the
         created chunks.  The priority for released NxActors is the same as described in
         setMaxDynamicChunkIslandCount.
     */
     virtual void                            setMaxChunkCount(physx::PxU32 maxCount) = 0;

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question