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"

Looking for a way to crop a texture to the visible part with a node

Hi Guys (and Girls),

I'm currently working on a Vertex Paining Material for my project. I'm using 5 diffrent PBR Materials. 1 of these Materials is 1 of the Textures with Water applied to it. Since I'm using PBR I have 4 Textures for each Material, which means in total I have more than 16 Texture Samples, which means I get an error when trying to safe the Material (to many texture samples). To work around this Problem I merged 4 of these Materials into 1 Material, by doubling the texture size from 1k to 2k. I then use a graph that zooms in the Texture and frames the part I need, to split the texture back into the 4 diffrent Materials. Below you can see the part of my graph that zooms into the texture and frames the needed part. The Texture object on the Right/Top is the whole Texture, the selected 3 Nodes are my outcome Textures From 1 Material. Framing/Zooming Graph

This works fine so far, except for 1 problem. If I have a model that uses UV's outside the 1:1 UV space, I can see the other Materials, which leads to some annoying parts on my model. As you can see below. Problem 2

This is because the texture is only zoomed and framed by my graph and not cropped. Of course I could split my Poly at that Line so I can map them perfectly 1:1 UV Space, however I would rather be able to crop the texture after Framing it. I have already found the TextureCropping Node, but I can't get it to work. It would be great if somebody could help me by either showing me to crop my Texture without the TextureCropping Node, or explain to me how it works.

Thanks for your help.


Product Version: UE 4.8
frame.jpg (113.7 kB)
problem2.jpg (168.1 kB)
more ▼

asked Jun 27 '15 at 09:34 PM in Using UE4

avatar image

1 1 2 2

avatar image ChaosPanda Jun 28 '15 at 02:58 PM

anybody got an idea?

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

1 answer: sort voted first

You can actually use up to 128 texture samples! This is made possible by picking shared samplers per TextureSample node instead of always using the UTexture asset settings.

alt text

more ▼

answered Jul 12 '15 at 06:39 PM

avatar image

9.3k 286 64 330

avatar image ChaosPanda Jul 13 '15 at 10:22 AM

Is there any information on what that actually does (except for allowing you to use up to 128 texture samples)?

avatar image Luos Jul 13 '15 at 11:36 AM

well, since even if you do crop the 2048*2048 textures you will always notice a weird seam where the new texture begins. (especially when the texture MipMaps)

So instead of merging multiple textures into one, if you use the shared option you can have all the texture samples you need without using convoluted techniques that wont have any decent results.

I think the clamp version only repeats the texture once, while wrap makes it seamless/endless.

avatar image ChaosPanda Jul 13 '15 at 12:05 PM

so there are no real downsites to using the shared setting? Like performance etc.?

(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