| viridiumx@gmail.com 2006-11-05, 11:33 pm |
| Hi guys,
Been tinkering around VRML .. Cant seem to get this working.
I want to have the texture updated whenever its openned. But the
texture is not even displaying. and no error messages .
I'm missing somehting ...
Thanx,
v
PS I'm using Blaxxun Contact 5
----------------------------------------------------------------------------------
#VRML V2.0 utf8
Shape {
appearance Appearance {
material Material {
specularColor 1 1 1
shininess 0.2
}
texture DEF MyTexture ImageTexture { }
}
geometry Sphere { radius 1.3 }
}
Script {
field SFNode ImageTexture USE MyTexture
directOutput TRUE
url "Javascript:
function changeTheImage() {
theme= Browser.getCurrentTime() ;
// MyTexture.set_url = new MFString('http://....
..php?theme='+theme);
MyTexture.set_url = new MFString('file1.jpg');
}
"
}
|