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"

Stretching only part of a texture

Hi all, So I have this texture I made, which is a rotated cross, that has a pink background. I would like this cross to always be the same size no matter what mesh it's on, but to stretch out the part that isn't the cross (in this specific case it's the pink around the cross) to fit the rest of the mesh it's on.

Here is an image:alt text

There also may be another way to do this, where I just put the image on the mesh, and then give the rest of the mesh a color that corresponds to the background color of the image I'm applying to the mesh.

Many thanks!

Product Version: Not Selected
Tags:
example.png (41.5 kB)
more ▼

asked Jan 28 '15 at 12:30 AM in Rendering

avatar image

ShrewGlue
444 99 84 108

avatar image Luos Jan 28 '15 at 12:45 AM

The easiest way might be (if its an actual cross) to do it with decals. I dont have time to give a detailed answer, but perhaps the local alignment node in the material editor could work.. follows post for answers

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

1 answer: sort voted first

I would do exactly that.

Make a decal that has your cross and the same pink background.

In your blueprint, spawn decal at location (Centre of you mesh)

If you resize you mesh during you game, remove the decal, resize mesh, add decal again. You may not even need to remove the decal before resizing, but you would need to move it to find the centre of your mesh again.

Regards

Narg

more ▼

answered Jan 28 '15 at 03:40 AM

avatar image

Narghile
1.7k 74 38 110

avatar image Luos Jan 28 '15 at 12:49 PM

with some blueprinting you could even always have the cross exactly in the middle :)

(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