SketchUp::Image transforms
-
Anyone had any success extracting the local transform for a SketchUp::Image?
-
-
Whoa. Great catch Alex - its the
Vector3d#axes
method I was missing.Be great to have the code behind the method (pretty please?) - the problem is that while you can generate orthogonal vectors from a normal easily enough, there is some ambiguity regarding orientation; this method obviously captures how Google chose to resolve it - but be good to know what rule they chose.
LightUp too can now handle Images - they're great for adding surface details to models. Water stains, scratches, rubbish etc.
[And thankyou Thomthom for the link.]
Adam
-
I wonder why Image elements don't have a regular transformation property but instead expose a separate set of methods.
-
BTW Using decals in SketchUp is pretty cool:
-
How do you deal with images glued to faces like that?
Is the actual Image transformation slightly offset the faces, or is that something SU only does internally to avoid Z-Fighting?
How are you avoiding Z-Fighting? -
LightUp processes the SketchUp::Image objects and marks their material with some internal flags which changes how they're handled to ensure you don't get z-fighting. Basically uses the machinery in LightUp that is there anyway to handle transparency etc.
-
I do like that approach though. Using Images for advanced material compositing.
Advertisement