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"

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. 

Not sure what this error means in materials editor.

Hi I am trying to make the stars in skysphere rotate. I have used my own texture so that it is higher quality but I get the error: [SM5] (Node TextureSample) Coercion failed: MaterialFloat2 Local3 = (MaterialFloat2(Local1,Local2) + Parameters.TexCoords[0].xy); : float2 -> float3 I have copied exactly what they used for the clouds (also the lerp since I am not sure what it does but just to test, for me to learn) alt text

Product Version: UE 4.14
Tags:
more ▼

asked Mar 06 '17 at 10:00 PM in Rendering

avatar image

RaZeXzZz
3 1 3 4

avatar image Black Phoenyx Mar 06 '17 at 10:06 PM

Do you have a texture set for the texture sample? Looks blank to me

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

2 answers: sort voted first

Is your texture a cubemap? If not the setup I used won't work for your setup. Instead of a panner use the node "Rotate About Axis" this is how I used it:

alt text

By the by not to plug a product or anything but I actually sell this BP on the marketplace, if you want a finished working version of what you saw in the video. Just FYI, if not I will help as best I can to get you situated with your setup anyway.

rotatestars.png (678.4 kB)
more ▼

answered Mar 06 '17 at 11:32 PM

avatar image

Black Phoenyx
4.1k 165 9 170

avatar image RaZeXzZz Mar 07 '17 at 12:07 AM

So I was using a cubemap but change it to the sample in hopes that it would solve the issue. So I got it to rotate but now the texture rotates fine and then goes fast, pinches together, and back to normal.

About your product, I probably would if I had some spare cash and if this wasn't just a passionate hobby of mine. I am also trying to do as much as I can "by myself". I will watch tutorials and copy what they do but it allows me to learn the hows and whys, then I can slowly take it apart for my own needs. Instead of getting something and not really knowing how it works. Then I will be able to answer questions and not be the one asking so often. haha :)

avatar image Black Phoenyx Mar 07 '17 at 12:14 AM

Makes perfect sense, that's why i said not to plug a product I didnt' want to seem like I was pushing for a sale but thought I would inform you incase you wanted something right away working.....at what point does it pinch with your setup? Can you post a screenshot of the full material?

avatar image Black Phoenyx Mar 07 '17 at 12:25 AM

Are you using the sample cloud/sky material that comes with the editor...the standard sky sphere material as your base?

avatar image RaZeXzZz Mar 07 '17 at 12:35 AM

I am using the standard sky material. I also uploaded where I setting the parameter and right as the pinching happens. alt text

second.jpg (444.6 kB)
third.jpg (436.3 kB)
fourth.jpg (274.5 kB)
avatar image Black Phoenyx Mar 07 '17 at 12:41 AM

Got it, Set all your values star rotation X, Y, and Z to 0 like in my screenshot and then only set a value of 1 in one of them (which ever direction you want it to rotate) and that will fix your pinching problem.

avatar image RaZeXzZz Mar 07 '17 at 12:54 AM

That was the first think I did but it still causes the pinching. I have even test reach rotation at 1 but they still rotate clockwise. There are no changing directions based on xyz. Only that screenshot of the pinch, which rotates clockwise.

avatar image RaZeXzZz Mar 07 '17 at 01:09 AM

I realized the xyz has a set value of .1 so I changed that to 0. Now the stars do not rotate and now they flip when they reach that same time as if they were rotating, just no pinching.

avatar image RaZeXzZz Mar 07 '17 at 01:12 AM

Well I got it to work! I had to manually set a value in the material to 1. while the others are zero, I think this is what you meant but I didn't realize it. Now I have to figure out how to slow it down and add in the drop box like you have!

avatar image Black Phoenyx Mar 07 '17 at 01:25 AM

Yep that's what I meant, the drop down is from an Enum and I use a switch on Enum node in the BP to set which of the 3 gets set to 1, since they are parameters they can be set from within the BP and switch via enum allows for the drop menu selection.

avatar image RaZeXzZz Mar 07 '17 at 01:32 AM

Awesome! thank you so much for your help! :)

avatar image Black Phoenyx Mar 07 '17 at 01:37 AM

You're welcome, don't forget to mark this as resolved/answered.

avatar image RaZeXzZz Mar 07 '17 at 01:40 AM

I think I did that. All I had to do was click on the down arrow and select convert this comment into answer right

avatar image Black Phoenyx Mar 07 '17 at 01:44 AM

Lol, I see you converted your comment to an answer, close enough....to mark it resolved/answered click on the check mark under the answer above where I posted the screenshot.

avatar image RaZeXzZz Mar 07 '17 at 01:59 AM

I tried to make your comment the answer but the arrow wasn't coming up.

avatar image Black Phoenyx Mar 07 '17 at 01:27 AM

to slow it down crank your value for speed way down like in my screen shot to something like 0.0001 - 0.001

avatar image RaZeXzZz Mar 07 '17 at 01:41 AM

just did that and it looks b-e-a-utiful.

avatar image Black Phoenyx Mar 07 '17 at 01:44 AM

Score! I love it when a plan comes together

avatar image RaZeXzZz Mar 07 '17 at 02:01 AM

Yeah! Now I just need to figure how to actually get the thing to change directions when I set it to xyz from an enum. Already have the list and the switch but being stubborn newborns in the blueprint don't want to change directions. lol

avatar image Black Phoenyx Mar 07 '17 at 02:14 AM

This should help with that:

alt text

switch on enum.png (449.6 kB)
avatar image RaZeXzZz Mar 07 '17 at 02:28 AM

Ah dang, I was so close. I set it to the actual material that it was in, not the sky material. I was also testing the change from with in the game after hitting play and that wasn't doing anything but I do not need that in the final game so I am just not going to worry about it. :) Thank you again

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

It does, it just doesn't show in the preview.

more ▼

answered Mar 06 '17 at 10:10 PM

avatar image

RaZeXzZz
3 1 3 4

avatar image Black Phoenyx Mar 06 '17 at 10:25 PM

Sorry about that I actually typed more but it didn't post....or it posted in another question...uh oh....anyway are the values set for speed and coordinates?

avatar image RaZeXzZz Mar 06 '17 at 10:32 PM

The star speed is set to .1. The panner is set to speed x = .0002, speed y = 0, const coord = 0

avatar image Black Phoenyx Mar 06 '17 at 10:48 PM

Is this the effect you are trying to achieve: https://youtu.be/vkc_i0jvdnE ?

I've tried 3 times to post this comment

avatar image RaZeXzZz Mar 06 '17 at 10:50 PM

That is exactly it!!

(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