ParallelGraphics Forums
Authoring Tools
You are here: [Forums]::[Authoring Tools]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
  Authoring Tools

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

 


random images / hoykl55@brandonu.ca / 17.09.03 15:16

Messages in thread: 1


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.