Apex Clothing

Hello,

I’ve been trying to get a basic cloth asset working by following the steps outlined in this thread: [TUTORIALS] Photons Be Free: Mini-tutorials and other curiosities - Community & Industry Discussion - Epic Developer Community Forums

However, I encounter a couple errors on export/import and my cloth asset just falls through the map.

http://i.imgur.com/8BnaUZw.png

Exporting( plane and bone ) from max I get the following modifier stack warning.

http://i.imgur.com/l61IeLP.png


Exporting the APB file seems to come off without a hitch.

When I import the FBX file in to the content browser I don’t get the same options as in the step-by-step. Instead I get:


Then a warning.


I’m assuming the main problem is the export from max. It’s removing the cloth modifier. Could someone point me in the right direction please?

Thanks.

Hey Geof,

I wrote that guide, so I don’t mind helping you get it sorted. :slight_smile:

The Cloth modifier will be dropped as you show in the image above when exporting from Max, so that’s normal.

When you say you don’t get the same settings to choose from did you use the drop down under the tab for “Mesh”? Also did you skin a single bone or multiple bones to your cloth mesh?

Also, with the cloth mesh did you open the mesh in Persona and import the APB file for the cloth asset then apply the cloth asset to the material?

As far as collision goes, there is a way to set it up using collision capsules so that it reacts with the environment. I’m not familiar with how to fully set that up as I’ve tried looking for tutorials and documentation on that myself to learn but have never found anything specific.

Not sure what you mean.

A single bone.

Yes.

I’ll have to keep digging. I do vaguely remember reading something about that when I was searching the forum last night.

Edit:

I see what you mean with the mesh drop down. No, I didn’t. I’m new to UE and didn’t even notice that. Give me a second and I’ll re-import. :slight_smile:

Okay, the morph target was unchecked. I imported it with it checked and it still just falls through.

It falls through in persona also. Once I select the apb file. http://i.imgur.com/se5E5Zo.png

I assume that’s normal?

The morph target check box isn’t needed. I’ll update that. I think I had previously been testing something with Morphs. That should be left off in this example, unless their is some other mesh that is attached that needs morph options. Just not this instance.
sorry for the confusion with that one. :confused:

One way to check and see where it may be falling to would be to use the viewport there in Persona > Show > Scene Setup > Uncheck Floor and see where the mesh is going. If it’s just hanging or continuing to fall.

In my example as well since I did a little banner type setup I had painted a zero weight on the top most edge. Since this zero weight was there it would act as an anchor to hold the cloth in place. Without any weight I would image it to keep falling.

What is the main purpose for your cloth in this setup? Maybe knowing that I could help provide and example that would more accurately fit than my banner type example. Maybe I should re-title that post to indicate this is more used for a Flag/Banner type situation as well.

It hangs after it falls through the floor.

I had noticed that. I’ll give it a try.

I’m just playing around. The general idea was to get it to fall down over the unreal/orb prop from the starter content. I’ve only been using UE for a few days so I’ve just jumped in and am tinkering with things. Learning as I go.

You can see the setup here: http://i.imgur.com/W9WzJVQ.jpg

Also, is it correct to use cloth_Anim and not simply cloth. I assume it is.

Anyway, I’ll anchor one end and see what difference that makes. Thanks for taking the time to help me out with this.

Yep, that worked.


Now I just need to suss out how to get it to interact with the world.

I managed to get it to collide with the environment. I’m not sure if you’re thinking of something more complex?

There was a checkbox for the anim asset.

http://i.imgur.com/xv6xdtS.png

After that it just worked. :slight_smile: