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"

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. 

3D Widget Scaling Problem

Hello! I have problem with 3D Widget (Widget attached to Actor Blueprint) scaling. As you can see at (Pic 1) Actor names have different sizes, depending how for they are. If i get closer Object names becomes huge and oversized (Pic 2). If i change space form World do Screen, widget move to screen and overlapp 3D objects and thats bad and not an option (Pic 3).

Is there any way to keep constant size of 3D widget relative to Player screen!? alt text alt text alt text

[1]: /storage/temp/250382-1.png

[2]: /storage/temp/250383-2.png

Product Version: UE 4.19
Tags:
1.png (760.6 kB)
2.png (942.6 kB)
3.png (700.4 kB)
more ▼

asked Aug 13 '18 at 02:43 PM in Blueprint Scripting

avatar image

Bormak
24 2 5 11

avatar image Bormak Aug 13 '18 at 03:33 PM

Or may be there some way to use Billboard Material with Widget? Some kind of transform widget to material?

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

1 answer: sort voted first

You could keep it 3d (to keep the Z depth) and check distance to the player and map range scale of the text renders accordingly (their scale needs to be set to world), clamping them in order to avoid excessive scales.

more ▼

answered Aug 13 '18 at 03:20 PM

avatar image

Everynone
14.6k 76 25 61

avatar image Everynone Aug 13 '18 at 03:44 PM

Or may be there some way to use Billboard Material with Widget? Some kind of transform widget to material?

You can even use 2d widgets for this, add them to a canvas and control their Z based on their distance from the player - Z sorting.

avatar image mightyenigma Aug 13 '18 at 03:53 PM

You got screen space widgets to be occluded by worldspace actors? How?

avatar image Everynone Aug 13 '18 at 04:20 PM

That's not what I meant, no. The labels will be rendered on top, of course. It's an alternative to the scale issue vs screen space order.

You got screen space widgets to be occluded by worldspace actors? How?

Can be done by sweeping to the object -> Hit (world object?) > hide label (or lower opacity). You'd have do it in tick. But I don't think that's what OP wants.

I believe Bormak is after scaling widget components (my first suggestion would work here) or normal widgets whose Z order is based on their distance from the player - so they overlap one another correctly.

In this very case, I think scaling the components is the way to go. It's relatively easy to set up, too.

avatar image mightyenigma Aug 13 '18 at 04:25 PM

Ah okay. Makes sense

avatar image Bormak Aug 13 '18 at 03:54 PM

Its not a text render, its a 2d widget attached to Actor

avatar image Bormak Aug 13 '18 at 03:49 PM

could you please share more info? BP screen may be? -_-

avatar image Everynone Aug 13 '18 at 04:57 PM

Something like this:

alt text

Image from Gyazo

edit: This will affect objects in 1024 radius only so you do not have tick too many at the same time. The size is controlled by the MapRange node - the closer you are to the item, the smaller the widget component, clamped at min 10% of the original size.

For this to work correctly, you'll need to set widget component scale to world:

alt text

Hope it makes sense.

capture.png (285.3 kB)
untitled.png (69.2 kB)
avatar image Bormak Aug 13 '18 at 05:23 PM

Ill try and reply!

avatar image Bormak Aug 13 '18 at 06:49 PM

Just what i need! Thank you.

By the way is there anyway to disable light\shadow casting on 3d widget?

avatar image Everynone Aug 13 '18 at 10:02 PM

Hm, I had to double check. This is a movable spotlight:

alt text

Seems unaffected by light. Are you getting a different result?

capture.png (152.5 kB)
avatar image Bormak Aug 14 '18 at 06:51 AM

alt text In game widged looks like washed out. If i press F2 it look like normal 2d screen widget. Seems 3d widget gets some post process effect, so is there a way to turn it off?

5.png (1.4 MB)
avatar image Everynone Aug 14 '18 at 07:18 AM

Gamma Correction can be enabled in the hidden User Interface panel extension of the widget component.

If that's not enough:

Widget Component uses Widget3DPassThrough (and some instance variants) material, which you can copy to your project, apply to your widget and make modifications to. Try combing through the AH to see if a better setup exists or tailor it to your needs if you feel confident about materials.

I recall posts about the widget browser (or something like that) being washed out.

avatar image Bormak Aug 14 '18 at 08:18 AM

Tried with material and it didnt work, or i pinned something wrong, hm. alt text

6.png (599.1 kB)
(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