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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Particle Ribbon Trail Random Offset

I'd like to figure out a way to randomly offset the horizontal uv space of a texture being used in a ribbon particle. What I have right now is going to be used in a way where the trails will often spawn at the same time, making the texture between them match up perfect and look awkward.

alt text

What I want to do is have it so the beam texture can be randomly offset per each instance of the effect so that when they're all spawned at once they don't end up looking identical. I've tried using a dynamic parameter in the material to offset it using a uniform float in the particle, but I just end up with this.

alt text

I'd appreciate any help figuring this out. I feel like I'm just missing something simple in all this. Here's my material graph I have currently.

alt text

Product Version: UE 4.10
more ▼

asked Apr 16 '16 at 10:31 PM in Rendering

avatar image

43 10 11 17

avatar image Luos Apr 17 '16 at 12:09 AM

images not working :/

avatar image Chaofanatic Apr 17 '16 at 01:21 AM

I think it should be fixed now

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

1 answer: sort voted first

Ok I figured this out!

First what you gotta do is hook up a dynamic parameter to the material that'll let you offset the uv however you want. I've called it Texture Offset for the sake of stuff. alt text

Then you set the dynamic parameter for the texture offset as a Particle Parameter in cascade, don't worry about setting any specific values here. alt text

Last, you hook it into your blueprint as you would, then use a Set Float Parameter and a Random Float in Range so that it'll randomly get a uv offset between 0 and 1 each time the effect spawns! alt text

I figured I'd put what I figured out here in case anyone else needs it, hope it helps someone! alt text

more ▼

answered Jun 30 '16 at 03:37 AM

avatar image

43 10 11 17

avatar image Luos Jun 30 '16 at 08:37 AM

Hey man, very cool! Glad you got a solution :)

(also, sorry that replying kills the "has been answered" thing.

(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