|
|
Le 2020-02-04 à 03:55, Francescodario Cuzzocrea a écrit :
>
> Hi Alain, and thanks for your reply !
> Thank for the union tip ! I was using union with split_union off before
> (otherwhise the object was splitted up in unpredictable way when
> rotated/translated), then I discovered merge and decided to go for it as it
> seemed more appropriate, but effectively using union rendering times are a bit
> faster :)
>
>
>
If you have something like :
#declare Ship = union{
object{...}
object{...}
object{...}
object{...}
object{...}
object{...}
}
Then use :
object{Ship rotate SomeRotation translate Somewhere}
The whole object will be rotated and translated as a single unit.
If not, then, something is wrong in that object's definition.
If you have this :
#declare Ship = union{
object{...}
object{...}
object{...}
object{...}
object{...}
object{...}
rotate SomeRotation
}
The object will also get rotated as a single unit.
BUT, this will cause only part of it to be rotated :
#declare Ship = union{
object{...}
object{...}
object{...}
rotate SomeRotation
object{...}
object{...}
object{...}
}
The part before the rotate will be rotated, but the part after won't.
Maybe there was some stray rotation or translate lost in the object's
definition.
Post a reply to this message
|
|