ParallelGraphics Forums
Authoring Tools
You are here:
[Forums]
::
[Authoring Tools]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
Authoring Tools
[reply]
[back to forum]
[new message]
[all forums]
Subject:
random images
Sender:
hoykl55@brandonu.ca
17.09.03 15:16
How would I go about loading images
randomly in VRML through JavaScript or
Java? I want to load an image based on
a random number generator. My problem
is that the image does not load when
ROUTEd through JavaScript into it's URL
field.
The following code is a part of my
file, but illustrates what I am trying
to accomplish.
appearance Appearance {
texture DEF IT ImageTexture {
}
}
DEF SCRIPT Script {
eventOut MFString url
url "javascript:
function initialize() {
url[0] = 'pics/picture.jpg';
}
"
}
ROUTE SCRIPT.url TO IT.url
Can anyone understand my problem and
give me a solution?
Thank you,
Kelly
[reply]
[back to forum]
[new message]
[all forums]
random images
/
hoykl55@brandonu.ca
/ 17.09.03 15:16
Messages in thread:
1
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.