ParallelGraphics Forums
Cortona Renderer
You are here: [Forums]::[Browsers]::[Cortona VRML Client]::[Cortona Renderer]

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:
   Browsers - Cortona VRML Client - Cortona Renderer

Subject: Re: changing textures on the same object (javascript)
Sender: owen@atmos.umd.edu 31.03.02 18:49
My limited understanding is that you
must use an EAI interface of some sort
to do what you want. HTML doesn't talk
very easily to your wrl file by itself.
Depending on what kind of functionality
you want with your overall page, the
script nodes within a wrl file (e.g.
vrmlscript or javascript) can change the
image textures in your HTML page. You
can use a hyperlinked object (a
spherical button, for example) in the
wrl file to point to a javascript
function in your overall web page. That
function then does whatever you want,
like swapping the images in your table.
You could also put all the image
textures onto, say, planes somewhere in
your wrl file, and use touchSensors for
each image plane to swap the images
warped on your wrl surface. This would
be more or less equivalent to your HTML
table (if I imagine it correctly) except
that the wrl file is twice as wide, and
the table itself contains no <IMG
SRC= ...> tags.

Owen Thompson
University of Maryland
>I have a plane with a mapped texture
>that reprasents an A4 page in 3d. This
>WRL is embedded in one cell of a table
>in HTML, and in another cell I have
>clickable images. What I have to do is
>to maintain the same WRL file but to
>change textures on the 3d page by
>clicking on the images inserted in HTML
>code. I'm trying to do this with
>Javascript (the only way I think...)
but
>I'm not quite getting there.
>
>Anyone has ideas?
>
>Thank you.


 


changing textures on the same object (javascript) / marko@diagramma.it / 24.01.02 08:50
     Re: changing textures on the same object (javascript) / owen@atmos.umd.edu / 31.03.02 18:49

Messages in thread: 2


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