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-07, 12:18 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
| |
| Joerg Scheurich aka MUFTI 2005-01-08, 4:17 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
| |
| bensmyth 2005-01-11, 7:19 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.
Sorry for the delay, been working on a different project.
Thanks, thats what I was after.
Which version of Contact are you using?? I don't seem to have the option
available.
(I have another ~10 viewpoint to optimise).
Regards,
Ben
| |
| bensmyth 2005-01-14, 11:16 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.
Sorry for the delay, been working on a different project.
Thanks, thats what I was after.
Which version of Contact are you using?? I don't seem to have the option
available.
(I have another ~10 viewpoint to optimise).
Regards,
Ben
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|