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. 

Material: Is it possible to clamp a texture to a sphere mask?

I'm trying to create a dynamic moon for my sky. The sphere mask approach used in the BP_DayCycle_Skydome work's well for the sun, but not as well for the moon. If possible, I'd like to keep the same approach for the moon, but add my moon texture on top of it.

The closest I've gotten is using the sphere mask as the alpha that lerps the sky and moon texture together. However, the UVs on the moon don't scroll so I end up with this effect:

alt text

How would the math work for the moon uv's to keep these clamped together? Is there a better way entirely to go about this for a dynamic moon? Any help is appreciated!

Product Version: Not Selected
moonuvproblem.jpg (148.0 kB)
more ▼

asked Jan 18 '15 at 02:35 AM in Rendering

avatar image

65 11 19 20

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

2 answers: sort voted first

Hey Breakobs -

The short answer to the question is no you cannot clamp a texture to a sphere mask. You will need to use a separate mesh, billboard or particle system to get the effect. A colleague has answered a similar question before and here is how you would go about setting that up for a billboard, https://answers.unrealengine.com/questions/152465/how-to-rotate-a-billboard-around-origin.html.

You could use this logic and tie it into your light vector location from the material above and still have them both work on the same logic.

Thank You

Eric Ketchum

more ▼

answered Jan 20 '15 at 09:17 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

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

Hi there,

i know this question is a bit old but maybe someone will find it helpfull: If you want to clamp an image to a spheremask you would use a skyboximage-node in material editor. You can place an image at your sky-material using a 3 dimensional vector (similar to spheremask + cameravector and dotproduct) for positioning. Furthermore you can adjust the scale and rotation of your image. The node gives you the rgb (tiled and repeated across the whole geometry) and apropriate masks to remove the tilings.

You may checkout this answer: https://answers.unrealengine.com/questions/238198/updating-custom-sun-texture-using-skyboximage.html

regards! Daniel

more ▼

answered Mar 14 '17 at 12:57 AM

avatar image

Daniel Mø
1 2 4

(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