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"

[Question] How to get the UV location in the UV space for a corresponding point on the 3D landscape

Hi all,

I am trying to find the UV coordinates for a point on the landscape. The user will click on the landscape in 3D and I want to change the texture in the vicinity of this click and hence I need the UV coordinates of the same. I am trying to do this using blueprints and material functions. Can anyone help me out with how to get started with this ?

Many thanks !

Cheers, Shailen

Product Version: Not Selected
more ▼

asked Mar 11 '14 at 02:56 AM in Blueprint Scripting

avatar image

ue4-archive ♦♦ STAFF
49.9k 3658 1983 9111

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:56 AM

Sorry for the bump, but is there any other way I can achive dynamic texture update on a the landscape at specified location. Or something like this video which has obviously been done with blueprints. You can see a shockwave on the terrain at 0:23, how can I create something like that but just using textures ?


(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The UVs for layer textures are simply the local-space coordinates, simply transform your position into local space of the landscape.

The UVs for the heightmap and weightmap textures are non-trivial, due to component subsections sharing a texture and potentially multiple components sharing the same heightmap texture also. I don't think you can alter these textures from blueprint, and I don't think the data you need to calculate the UVs is available in blueprint either, so I won't go into detail here.

more ▼

answered Mar 11 '14 at 02:56 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3658 1983 9111

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:56 AM

I am right now doing a manual transformation to local coordinates of the landscape. If there's an in built function I should probably look into it. Thanks !

(comments are locked)
10|2000 characters needed characters left
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