mred icon indicating copy to clipboard operation
mred copied to clipboard

image and geo anchors only work at the root of a scene

Open blairmacintyre opened this issue 6 years ago • 3 comments

The transforms associated with the "anchor" are relative to the local coordinates.

If an anchor is below the root, we need to do the following:

  • assume the parent you want to attach it to is P. mp = P.matrixWorldInverse
  • attach an extra group node G to P. set G.matrix to mp. This should result in G.matrixWorld being the identity
  • now attach the node that the anchor transform will be applied to as a child of G. Things will work

blairmacintyre avatar May 16 '19 01:05 blairmacintyre

is there ever a reason to have an anchor not as an immediate child of the scene?

joshmarinacci avatar May 16 '19 03:05 joshmarinacci

For "scene organization" type things: I have a group of content that I'd like to turn on/off together. Multiple geo nodes, for example. Putting them under a group would be obvious. But now the group is under the "scene origin anchor".

blairmacintyre avatar May 16 '19 09:05 blairmacintyre

(@joshmarinacci I will still do this, I'm just marking it as Next to remind myself)

blairmacintyre avatar May 20 '19 10:05 blairmacintyre