| marcin 2004-08-02, 7:15 am |
| Hello I'v got a trouble with flux.
I made a simple animation with
IndexedFaceSet and CoordinateInterpolator.
As a wrml working good (in Cortona and BSContact)
and as a x3dv in flux make system crush.
This is file :
#X3D V3.0 utf8
#PROFILE "Immersive"
Viewpoint {position 0 0 4}
NavigationInfo {headlight FALSE }
PointLight {location -4 4 2}
PointLight {location 4 4 2 intensity .3}
Transform {
rotation 1 0 0 4
children [
Transform {
rotation 0 1 0 0.57
children [
Shape {appearance Appearance {material Material {diffuseColor 0 .7 0 }}
geometry IndexedFaceSet {
coord DEF wspolrzedne Coordinate {
point [
-0.5 0.5 0.5 , #gorna podstawa
-0.5 0.5 -0.5 ,
0.5 0.5 -0.5 ,
0.5 0.5 0.5 ,
-0.5 -0.5 0.5 , #dolna podstawa
-0.5 -0.5 -0.5 ,
0.5 -0.5 -0.5 ,
0.5 -0.5 0.5 ,
]}
coordIndex [
0,1,5,0,-1 0,5,4,0,-1 1,2,6,1,-1 1,5,6,1,-1
6,2,3,6,-1 6,3,7,6,-1 3,4,7,3,-1 0,4,3,0,-1
0,1,2,0,-1 0,2,3,0,-1 4,5,6,4,-1 4,6,7,4,-1
]
solid FALSE
}}
]}
DEF generator CoordinateInterpolator {
key [ 0 , .4 , .6, 1]
keyValue [ #pierwsza klatka - szescian
-0.5 0.5 0.5 , -0.5 0.5 -0.5 ,
0.5 0.5 -0.5 , 0.5 0.5 0.5 ,
-0.5 -0.5 0.5 , -0.5 -0.5 -0.5 ,
0.5 -0.5 -0.5 , 0.5 -0.5 0.5 ,
#druga klatka - piramida
-0.5 0.5 0.5 , -0.5 0.5 -0.5 ,
0.5 0.5 -0.5 , 0.5 0.5 0.5 ,
-0 -0.5 0. , -0 -0.5 -0 ,
0 -0.5 -0 , 0 -0.5 0 ,
#trzecia klatka - piramida
-0.5 0.5 0.5 , -0.5 0.5 -0.5 ,
0.5 0.5 -0.5 , 0.5 0.5 0.5 ,
-0 -0.5 0. , -0 -0.5 -0 ,
0 -0.5 -0 , 0 -0.5 0 ,
#czwarta klatka - szescian
-0.5 0.5 0.5 , -0.5 0.5 -0.5 ,
0.5 0.5 -0.5 , 0.5 0.5 0.5 ,
-0.5 -0.5 0.5 , -0.5 -0.5 -0.5 ,
0.5 -0.5 -0.5 , 0.5 -0.5 0.5 ,
] }
]}
DEF zegar TimeSensor {cycleInterval 4 loop TRUE }
ROUTE zegar.fraction_changed TO generator.set_fraction
ROUTE generator.value_changed TO wspolrzedne.point
--
Pozdrawiam
Marcin Starzykowski
_____________________________________________
www.vrml.enter.net.pl - inny wymiar internetu
Ostatnia aktualizacja 31.07.2004
_____________________________________________
|