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"

Object texture size as a function of camera distance

Hey mates!

Hope yall doin great. I am a complete noob with UE (game engines in general) but I have been doing 3d work for few years (Maya,Zbrush and so on). So I would like a bit detailed help if possible instead of a few code words :| :) Any help would be appreciated!

Question 1:

Alright, I have a plain terrain that has a camera and a plane wall (with numbers and words as texture) perpendicularity facing the camera. I have gone upto a level of adding a texture to the wall. I need the texture to increase in size as camera gets away and decrease as camera moves closer to it. How would I do it? Do I use event graph and blueprint(have still to learn what they are).

Question 2:

How do I set up a float number counter (where you enter a number) in the start of the game that you give the size of the texture of an object. Say if I write the in the box as 10, the texture size is 10. And after that, when game starts, it is relative to camera position?

Thanks and cheers mates! Have a great weekend. Im getting drunk myself,


Reference Pic: alt text

Product Version: UE 4.8
reference pic.png (538.9 kB)
more ▼

asked Jul 03 '15 at 01:24 PM in Using UE4

avatar image

56 7 8 10

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

1 answer: sort voted first


1) In level blueprint use get distance to node to find the distance between camera and object and add it to event tick.

2)Create a new material instance parameter from add new and add a scalar parameter to it. In the level blueprint assign the camera object distance to the scalar parameter.

2) In material blueprint create a 2dtextureparameter and create a texcoord node. Multiply the texcoord node and the created scalar parameter and input to 2dtexture.

Voila! Now if you run it the texture size changes as the function of camera distance.


more ▼

answered Jul 27 '15 at 09:05 AM

avatar image

56 7 8 10

(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