|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
How can I reference an object in POVRay? I mean I want to rotate another object
on axis X by another object's rotation value of its Z axis.
I am thinking about something like this (this of course does not work, just to
show you what I mean):
// lets say before I #declared two objects named ObjA & ObjB
Object {
ObjA
rotate <ObjB.rotation.z, 0, 0>
}
Any suggestions, please?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le 16/03/2015 15:45, bublible a écrit :
> How can I reference an object in POVRay? I mean I want to rotate another object
> on axis X by another object's rotation value of its Z axis.
>
> I am thinking about something like this (this of course does not work, just to
> show you what I mean):
>
> // lets say before I #declared two objects named ObjA & ObjB
> Object {
> ObjA
> rotate <ObjB.rotation.z, 0, 0>
> }
>
> Any suggestions, please?
>
>
You can't, as you intended at least. Access to object's property is not
possible in read mode so far.
When declaring ObjB, you could also declare a variable to hold the
rotation around Z used on B, and use that variable later on A.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 16/03/2015 15:45, bublible a écrit :
> > How can I reference an object in POVRay? I mean I want to rotate another object
> > on axis X by another object's rotation value of its Z axis.
> >
> > I am thinking about something like this (this of course does not work, just to
> > show you what I mean):
> >
> > // lets say before I #declared two objects named ObjA & ObjB
> > Object {
> > ObjA
> > rotate <ObjB.rotation.z, 0, 0>
> > }
> >
> > Any suggestions, please?
> >
> >
> You can't, as you intended at least. Access to object's property is not
> possible in read mode so far.
>
> When declaring ObjB, you could also declare a variable to hold the
> rotation around Z used on B, and use that variable later on A.
Unfortunately I can not because ObjB's and its rotation values are set somewhere
else (or not in "classic" rotation values for x,y,z), not by me (although just
for this example I said "I declared both
objects"), that is the primary reason why I am in big need for that value: I
created Polygon that should always automatically rotate to proper angle to
always face camera from the front according to rotating of the ObjB that was
deffined by another script and software (LDD-to-Povray) and I do not know where.
It is I know ObjB's name but that's it... :(
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 16.03.2015 um 17:46 schrieb bublible:
>> When declaring ObjB, you could also declare a variable to hold the
>> rotation around Z used on B, and use that variable later on A.
>
> Unfortunately I can not because ObjB's and its rotation values are set somewhere
> else (or not in "classic" rotation values for x,y,z), not by me (although just
> for this example I said "I declared both
> objects"), that is the primary reason why I am in big need for that value: I
> created Polygon that should always automatically rotate to proper angle to
> always face camera from the front according to rotating of the ObjB that was
> deffined by another script and software (LDD-to-Povray) and I do not know where.
> It is I know ObjB's name but that's it... :(
Then unfortunately you are out of luck.
BTW, LDD-to-Povray sucks big time in terms of playing nice with other tools.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|