This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > January 2005 > Vector optimisation....





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Vector optimisation....
bensmyth

2005-01-01, 12:14 pm

Is it possible to reduce the following to a single vector?

X3D code:
<Transform translation="-2.5 0 0" rotation="0 1 0 -1.570796">
<Viewpoint description="View 2" position="0 3 0" orientation="1 0
0 -0.785398"/>
</Transform>

VRML code (I think this is correct...):
Transform {
translation -2.5 0 0
rotation 0 1 0 -1.570796

children [
Viewpoint {
description "View 2"
position 0 3 0
orientation 1 0 0 -0.785398
}
]
}


Cheers,

Ben


Wildpeaks

2005-01-01, 11:15 pm

> Is it possible to reduce the following to a single vector?
> [...]


Yes:
Viewpoint {
position -0.001 3.053 0.053
orientation -0.999 -0.030 -0.013 0.786
fieldOfView 0.785
description "View 3"
}

If you wonder how I did, I've been lazy: instead of calculing or using
a script, I simply ran the code in Contact and used the "copy viewpoint
to clipboard" function for having the resulting coordinates.

Joerg Scheurich aka MUFTI

2005-01-03, 7:14 am

>> Is it possible to reduce the following to a single vector?

> Yes:


No.

> Viewpoint {
> position -0.001 3.053 0.053
> orientation -0.999 -0.030 -0.013 0.786
> fieldOfView 0.785
> description "View 3"
> }


This is not a single vector, it is a vector, another vector and a angle 8-)

so long
MUFTI
--
(Press Retry to debug the application - JIT must be enabled)
Abbrechen Wiederholen Ignorieren
aus einer M$Windows "assert" Fehlermeldung
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews