Author Topic: Displaced object weirdness  (Read 196 times)

Offline archonforest

  • Member
  • *
  • Posts: 3132
  • !AMIGA RULEZ!
Displaced object weirdness
« on: June 15, 2017, 07:50:41 AM »
I have a displaced sphere to create a rock. Now if I copy and paste the object I get a different looking rock. Why? Technically the PF data is the same no? So why the displacement is different?
...many rooms to explore but the doors look the same...

Offline Dune

  • Member
  • *
  • Posts: 12266
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Displaced object weirdness
« Reply #1 on: June 15, 2017, 11:27:19 AM »
Different location means different values for pf in world space. Could that be it?
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline archonforest

  • Member
  • *
  • Posts: 3132
  • !AMIGA RULEZ!
Re: Displaced object weirdness
« Reply #2 on: June 15, 2017, 01:06:44 PM »
Different location means different values for pf in world space. Could that be it?

Well could be. Not sure how TG sees this PF in its pipeline. I thought it is a separated PF from the planet and it is not effected by anything else. But looks like it is not true.
...many rooms to explore but the doors look the same...

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 11454
  • Holy snagging ducks!
Re: Displaced object weirdness
« Reply #3 on: June 15, 2017, 10:41:39 PM »
Power Fractal noise functions are in World Space by default. This means the noise function is anchored to the absolute coordinate positions of the overall scene, rather than to coordinates/position relative to the object's position. So if you move the object, the area of the noise function that influences it changes too. This is what the "Translate textures with planet" option in the Planet object is for. So you could replace the sphere with a Planet and use that option.

The other approach would be to add  a Transform Input shader in-between your Power Fractal and the displaced object, then copy the new position of the object to it (Translate and Rotate functions). This will give you the noise function as it appeared if the object was at 0,0,0. If you need to replicate a look for an object that was elsewhere you'll have to work out the difference in coordinates between the old and new position of the object to put that into the Transform shader.

- Oshyan

Offline Dune

  • Member
  • *
  • Posts: 12266
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Displaced object weirdness
« Reply #4 on: June 16, 2017, 05:58:52 AM »
Or put a cam in the center of the rock, render a spherical image and use that as image map shader's input for other stones elsewhere; they would be all the same.
In case you still haven't seen enough of my work: www.ulco-art.nl

 

anything