Author Topic: Cube, Wave Effect, and Rotation  (Read 522 times)

Offline PaulB

  • Newbie
  • *
  • Posts: 29
    • View Profile
Cube, Wave Effect, and Rotation
« on: September 07, 2020, 08:21:21 PM »
If I want to have my cube (10 high, 30 wide, 20 deep) wave like a flag, I just take an image, and then use the wave effect as an unmask.  We have all seen the flapping flag demo.

To get a left-right wave, I use the "overlaid z" render style.   Front-back wave is created by using the "overlaid X" render style.

What is I want my waves to come from the center of the matrix and ripple outward like water drops?   What if I want my waves to move at a 45-degree angle or rotating angle?

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: Cube, Wave Effect, and Rotation
« Reply #1 on: September 08, 2020, 03:09:01 AM »
Like this?


Offline PaulB

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Cube, Wave Effect, and Rotation
« Reply #2 on: September 08, 2020, 10:12:18 AM »
Almost.   I am viewing from the top.  Take your example and change the wave to "Overlaid Z" and the Flag to "Overlaid Y".   Looks fine from the top.

Z-Rotation seems to work on the wave to change the tilt of the flag.  I want to change the direction of travel of the waves.   

In this example, the flag is waving right-left with respect to the flag.    What if I want it to go from the lower right corner of the flag to the upper right corner, as an example?  Similarly, what if I want the waves to come out in a circular pattern like water drops?

Maybe we should ask for an effect/rendering method that changes color to 3d depth, so we could mix effects in that fashion?  Then I could use shockwave to make circular ripples.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Cube, Wave Effect, and Rotation
« Reply #3 on: September 08, 2020, 11:11:54 AM »
If you want to view from the top then you need to render with a top view camera buffer.  xLights does not render anything in 3D space yet unless I've missed seeing an update. For instance Shockwave will never look like an expanding ball it will be a flat donut that expands in a plane and if using camera views for the rendering buffer it projects the pixels at the camera to figure out where to map that 2D plane.

Offline PaulB

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Cube, Wave Effect, and Rotation
« Reply #4 on: September 08, 2020, 02:00:49 PM »
Understood.  The question here is if there is a way to get the wave effect to run at an angle, rather than left-right or top-bottom.   The example project has one end higher than the other, but does not generate waves that go at an angle (for example, top left to bottom right).   Roto-zoom doesn't seem to work.

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: Cube, Wave Effect, and Rotation
« Reply #5 on: September 08, 2020, 04:14:14 PM »
The one I did was at an angle but maybe you are after a compound angle in which case camera is likely requires with per preview. If you want the wave to be 3D things are much much harder as all effects are 2d so you are generally looking for interference patterns.