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"

Destructible mesh not assign internal material.

alt text

In 4.17 destructible mesh works fine, in 4.20 there are huge problems.

Assign the Materials 1 material doesn't work.

Assign the Materials 1 material and press Fracture Mesh reset the material slot.

Import chunks don't import Materials 1 proprerly.

Is planned a fix soon or some workaround exists?

Product Version: UE 4.20
Tags:
bug.png (265.3 kB)
more ▼

asked Nov 03 '18 at 06:06 AM in Using UE4

avatar image

donzen
3 1 3

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

It was broken by some changes since 4.18 . My quick fix for this is adding this line to DestructibleFractureSettings.cpp ( if you use C++ version of the Engine, the file should be inside UnrealEngine\Engine\Plugins\Runtime\ApexDestruction\Source\ApexDestruction\Private :

         FCStringAnsi::Strncpy(SubmeshData.mMaterialName, "InteriorMaterial", nvidia::apex::ExplicitSubmeshData::MaterialNameBufferSize);

to this block of code : ..

     // For now just copy the submesh data from the 0 submesh.
         apex::ExplicitSubmeshData SubmeshData;
         apex::ExplicitSubmeshData* SourceSubmeshData = HMesh.submeshData(0);
         if (SourceSubmeshData != NULL)
         {
             SubmeshData = *SourceSubmeshData;
         }

         FCStringAnsi::Strncpy(SubmeshData.mMaterialName, "InteriorMaterial", nvidia::apex::ExplicitSubmeshData::MaterialNameBufferSize);

         // BRG - this is being done until I add the ability to reset the submesh data without resetting the mesh data in the fracture tools
         if (HMesh.submeshCount() > (uint32)OriginalSubmeshCount)

...

more ▼

answered Jan 12 '19 at 03:17 PM

avatar image

PhungDinhThang
15 1 1

avatar image donzen Jan 13 '19 at 08:54 AM

Fixed, thanks dude! :D

(comments are locked)
10|2000 characters needed characters left
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