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"

Randomized mesh data in particles

I was wondering if there's a way to make a particle systems mesh data select from an array of different static meshes, or a way to combine multiple static meshes into one and have the particle system select between which mesh it uses per-particle.

alt text Here's the five meshes I want to randomly select between.

alt text And here's the particle system itself using only Smoke_03.

Is this something I can do by somehow making a static mesh that contains all the shapes and letting the effect decide which ones are visible, like a bodygroups deal? Or can I control something like this through a blueprint? I appreciate any help with this!

Product Version: UE 4.11
Tags:
more ▼

asked May 05 '16 at 10:38 PM in Rendering

avatar image

Chaofanatic
43 10 11 17

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

2 answers: sort voted first

To add to that, each mesh in cascade is a drawcall, and you could achieve what you want with one or two of those meshes, and just add scale, rotation, and rotation rate to them.

Not the best example since I used a mesh I made years ago, and isnt up to snuff but: https://www.youtube.com/watch?v=9yB4O0uI6E8 now change that into a better shaped mesh like you have, and I highly doubt people can tell you only use one (or two) meshes.

that said, Id love the possibility of an array of meshes in cascade or niagara. I should @unrealalexander this :p

more ▼

answered May 06 '16 at 08:06 AM

avatar image

Luos
9.3k 286 65 330

avatar image Chaofanatic May 06 '16 at 08:47 PM

That's a shame that it's not possible by default, thanks anyway. Also thanks for posting here! I wish I had known about your work earlier! All the videos of you actually building your effects are so helpful!!

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

I would duplicate the emitter on your particle system for each mesh you want to use. You'll probably have too many so then scale back spawn rate.

more ▼

answered May 06 '16 at 01:02 AM

avatar image

RyanGadz
98 3 9 15

avatar image Chaofanatic May 06 '16 at 01:15 AM

Is that the only solution? When I was working in the source engine I was able to compile a model with submodels so each submodel was a different mesh, then I could remap the submodel number to anything else and make it randomly choose a different mesh per-particle. It was really useful for making varied looking effects

avatar image ZoltanE May 06 '16 at 05:51 AM

The best solution is what RyanGadz wrote, although I'd add that you should use module instancing to make the job easier. (See https://docs.unrealengine.com/latest/INT/Engine/Rendering/ParticleSystems/Cascade/ for details.)

If you don't want to do that then you could have a single, somewhat dense sphere as your mesh and use vector displacement textures to deform it to different shapes. The way to generate such textures depends on your 3D application, here is how it's done in Modo: https://www.youtube.com/watch?v=pn3_TOIKTYw

EDIT: I mean that you can have multiple displacement textures in a texture atlas and use a particle property (like particle color's Red component) to control which one is applied to the sphere.

avatar image Chaofanatic May 07 '16 at 06:01 PM

Aw, that's a shame. Thank you for the help though, I'll try out the displacement method sometime. I wish there was a way to use multiple meshes in the same way that the sprites are randomized when using a subuv method, but thank you anyway!

avatar image ZoltanE May 08 '16 at 07:15 AM

If you found an answer helpful then please mark it as accepted. :)

(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