Author Topic: General transform device with rotation and non-uniform scaling  (Read 2394 times)

0 Members and 1 Guest are viewing this topic.

sfriedberg

  • World Machine Guru
  • ****
  • Posts: 65
    • View Profile
General transform device with rotation and non-uniform scaling
« on: September 16, 2014, 01:46:18 AM »
Tonight I was trying to stretch out an Advanced Perlin generator, and could not find a way to scale one axis differently from the other.  The two closest approaches were to hook a Gradient generator to the AP phase distortion input, and alternatively to hook both the AP and the Grad into a Simple Displacement.  However, both approaches are seriously limited by the maximum useful width of the gradient.  I'm looking for something that will apply to (infinite) textures as seen in the explorer view.

Also, the next objective after stretching a generator is to rotate the result to align the "long" axis with some specified input angle.  Setting an arbitrary axis of stretch would also be acceptable for random generators, although stretch-along-arbitrary-axis and rotate-after-fixed-axis-stretching do not give the same results for general input.

Unless I've overlooked something (quite possible!), the old Rotator.dev never got recompiled and redistributed after the VS2010 changeover.

So, what I'm looking for is a general (horizontal) coordinate transform device that 1) accomodates effectively unbounded textures from generators in world or relative worldspace, 2) allows non-uniform scaling, and 3) allows arbitrary rotation (of either the principal scaling axis or of the result post-scaling), and 4) some reasonable attempt at proper interpolation/resampling.  It would be fine if the scaling factors were limited to <= 1, as that could be compensated in the source generator scaling.

If there's already a way to some or all of what I want, an education would be greatly appreciated.  WM 2.9 and 3.0(dev) on-hand.

maxkastle

  • WM Pro Beta Tester
  • Community Member
  • **
  • Posts: 10
    • View Profile
Re: General transform device with rotation and non-uniform scaling
« Reply #1 on: March 02, 2015, 01:26:09 PM »
I'm also think it would be useful to non-uniform scale and also to rotate.  Any plans for this?

sfriedberg

  • World Machine Guru
  • ****
  • Posts: 65
    • View Profile
Re: General transform device with rotation and non-uniform scaling
« Reply #2 on: March 02, 2015, 04:52:48 PM »
maxkastle, I got a reply on another thread which points out some of the current limitations of WM in this area.

Tangled-Universe

  • World Machine Guru
  • ****
  • Posts: 66
    • View Profile
Re: General transform device with rotation and non-uniform scaling
« Reply #3 on: March 03, 2015, 03:24:39 AM »
I really really would love to have this functionality as well.

Stretching, flatten, resizing etc.

The Voronoise macro is still one of my favorites, but it only 'fits' on ~8km sized terrains.
Having a transform node would allow me to use it on smaller terrains as well.
At the moment I'm manually adjusting the whole macro, but that simply isn't desired.
I tried to use some arithmetic nodes to add a scale multiplier within the Voronoise macro, but it didn't seem to work.

Remnant

  • Author
  • World Machine Guru
  • *****
  • Posts: 2311
    • View Profile
    • http://www.world-machine.com/
Re: General transform device with rotation and non-uniform scaling
« Reply #4 on: March 04, 2015, 02:04:01 PM »
This is definitely hugely needed!

Support for essentially all coordinate-system transforms (non-uniform scaling, rotation, etc) on the domain-input side is coming, along the lines of the reply in the other thread, sfriedberg. It went on the backburner while river stuff was in the forefront, but it's one of the current items of work.

As mentioned in the other thread however, this will be domain side only -- once a generator has created output, it is problematic on many levels to go about changing coordinate-system-related things.
-- Stephen Schmitt
- Creator of World Machine

posfan12

  • World Machine Veteran
  • ***
  • Posts: 42
    • View Profile
Re: General transform device with rotation and non-uniform scaling
« Reply #5 on: October 29, 2016, 07:41:43 PM »
I would like to rotate my terrain by 45 degrees if possible.