This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > November 2006 > Cant seem to get script working





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 Cant seem to get script working
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');
}
"
}

Sponsored Links


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