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"

Rotating a cubemap


I'm trying to rotate a spheremap using RotateAboutAxis but all it does is spiraling the sky rather than rotating it. It basically pins pixels around rotation axis. I know it would be much easier to use world position offset pin but I rather avoid rotating actual geometry. I want to rotate it dynamically in two different axises for stars simulation.

Some screenshots: alt text

alt text

Product Version: UE 4.14
snip1.png (428.2 kB)
snip2.png (1.8 MB)
more ▼

asked Feb 16 '17 at 05:52 AM in Rendering

avatar image

1 1 4 5

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

1 answer: sort voted first

Hey Talkativeone,

This is how I would go about rotating the cubemap. alt text

Let me know if that helps!


rotcubemap.jpg (79.9 kB)
more ▼

answered Feb 16 '17 at 06:58 PM

avatar image talkativeone Feb 17 '17 at 05:28 AM

Hi Ed,

Thank you so much, this works perfectly! However, there is one more thing I can't figure out. I'm trying to add two rotations to each other now (I want to expose pitch and yaw of the sky to BP). I did a few tests but I can't quite get it to work (it skews the skybox rather than rotate as soon as I try to add input from second rotation axis. I think DEFNIQUE had a problem similar in nature but I can't quite follow Ryan's instructions here: https://forums.unrealengine.com/showthread.php?106445-Combining-Rotations-(RotateAboutAxis)-for-World-Position-ffset

Any help on that would be much appreciated! T.

avatar image Ed Burgess ♦♦ STAFF Mar 06 '17 at 10:22 PM

Hi sorry for the late reply, for some reason my queue didn't update with your response. Anyway, what exactly are you trying to do? Could you describe the effect you are going for.

Depending on what you are doing I may suggest masking off part of the sphere OR using a lerp node.

avatar image talkativeone Mar 08 '17 at 02:16 AM

Hi Ed,

No worries, I'm still struggling with it. My cubemap is a full star sky. I want to rotate it in two axis to accurately simulate Earth's night sky rotation based on geographical latitude via blueprint. Therefore, I need pitch and yaw of the rotation. I think rotating the pixels is the only solution as rotating the sky in world position (actual vertices) would not suit my setup (my clouds use uv coordinates)

Thanks, T.

(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