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"

UMG Fill Radial Image by Percent

I have this set up, but the Percent Scalar Parameter is just setting brightness, not percent filled on a radial image... alt text

How would I be able to set the percent fill of the texture sample for an image as such below? (In the radial direction, from 12 noon to 12 midnight) alt text

Has anyone got this up and running?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 22 '16 at 12:11 AM in Rendering

avatar image

nmm131
170 47 49 60

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

1 answer: sort voted first

Change your material domain to UI.

And you can change your angle orientation like so... (Note: the values in the ConstantBiasScale node)

alt text

screenie.jpg (186.4 kB)
more ▼

answered Feb 22 '16 at 05:00 AM

avatar image

JohnnyJimJams
186 2 6 11

avatar image nmm131 Feb 22 '16 at 07:01 PM

My Material Domain is UI & Blend Space: Translucent I have a PNG (With Texture Sample Alpha hooked up to Opacity) but am unable to replicate the radial fill that you seem to have with the clock at 70%

How is Percent working with the radial fill and/or the TextureCoordinate & ConstantBiasScale?

avatar image JohnnyJimJams Feb 22 '16 at 08:54 PM

I don't think your 'Material -> Material Domain' is set to UI. It looks like it's still set to 'Surface'. I see you have ticked the usage tick box for UI, but that's not what I mean.

The ConstantBiasScale just converts UV coordinates from to 0 to 1 space into -1 to 1 space. The settings I show in the screenshot are important because I adjusted them to make the radial values start from noon (not 3 o'clock) and to rotate clockwise (not counter clockwise).

The clock face image is just r,g,b. No special alpha channel.

When 'Percent' is 0, no image is shown. When 'Percent' is 1, the whole image is shown.

avatar image nmm131 Feb 22 '16 at 09:53 PM

Sorry I should have posted a picture. Here is my current MAT as of right now... alt text W/ Translucent and the bottom module on the Texture Image node attached to the Opacity, the image comes out just right. But my percent 0 does not hide the image, even when constantBiasScale is set to 0.5 and 2 respectively

untitled.png (156.6 kB)
avatar image JohnnyJimJams Feb 22 '16 at 11:02 PM

So close broseph :)

Just multiply your image opacity, and the result of all the calcs together and plug them into Opacity.

You won't need to plug anything into Opacity Mask.

Edit: If you want to post your image (with alpha) I'll test it here, and post another screenshot.

avatar image nmm131 Feb 22 '16 at 11:33 PM

That worked perfect, thank you my friend! Might there be a simple way to have it move the other way?

avatar image JohnnyJimJams Feb 23 '16 at 12:04 AM

Remove the subtract node, to reverse direction (I think).

p.s. How about hooking me up with some of that sweet sweet answer karma?

(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