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"

Timeline mesh/model/material transparency in Blueprint?

So I am making a horror game in which it will be necessary to smoothly swap the models of an enemy character the closer you get to it. How would I go about achieving this through blueprints? Is there even a value that would allow me to change the alpha, as it were, of the model/mesh?

Product Version: Not Selected
Tags:
more ▼

asked Jan 16 '15 at 06:39 AM in Rendering

avatar image

Bennick
159 26 24 33

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

1 answer: sort voted first

Hey Bennick -

I am assuming that you are looking for more of an effect and not the LOD system built into the engine, so ultimately something much more smooth in operation. If your model is already translucent in nature, simply plug in a Scalar Parameter Material Parameter Collection which controls the Alpha of the LERP between 0 = A and 1 = B which is plugged into your Opacity.

If you are wanting to do this effect to an opaque material mesh take a look at this setup but you would need to change the material to masked to get this to work, but it would not change your lighting information.

Thank You

Eric Ketchum

more ▼

answered Jan 16 '15 at 09:02 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image Bennick Jan 16 '15 at 10:58 PM

That second setup looks like what I would need, but I have some questions:

How do I find that Opacity Control node that is wired into the multiply at the bottom?

Can I set the opacity of this material to be controlled by my distance to the model it's attached to?

avatar image Lovecraft_K ♦♦ STAFF Jan 19 '15 at 06:41 PM

Hey -

The Opacity Control node is just a Scalar Parameter Node that I named Opacity Control. You could hook up a near camera fade system (see following image) and the model will fade based on camera location. You will probably will want to do a little bit more math to make the transition work exactly like you want to.

alt text

You can also leave just the Scalar Parameter and use a Blueprint to get camera distance to object and between two sets of distance values adjust the Scalar Parameter. The Material probably be more efficient if you want to do this on multiple objects.

Thank You

Eric Ketchum

avatar image Bennick Jan 19 '15 at 09:37 PM

Thank you so much! you've been incredibly helpful Eric! It looks fantastic!

(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