Ciao!
Sto cominciando a studiare VRML e sono arrivata al punto in cui dovrei far funzionare una MovieTexture ... ecco il codice che sto provando:
il file occhio.gif è, appunto, una gif animata .... ma non succede niente ... cioè la gif non si vede neanche!codice:DEF Occhio Shape{ appearance Appearance{ material Material {transparency 0} texture MovieTexture { url "occhio.gif" loop TRUE startTime 1 } } geometry Sphere { radius 0.4 } } Transform { translation 0.7 0.85 1.5 children[ SpotLight { direction 0 0 1 location -2 1 2 radius 0.3 cutOffAngle 1 } USE Occhio ] }
Ho provato con una ImageTexture e tutto funziona bene ... eccovi il codice funzionante:
Qualcuno sa dirmi dove sbaglio? Io non riesco a trovare niente ...codice:DEF Occhio Shape{ appearance Appearance{ material Material { emissiveColor 0 0 1 shininess 0.3 } texture ImageTexture {url "occhio.jpg"} } geometry Sphere { radius 0.4 } }![]()
Enza


Rispondi quotando
