This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > April 2007 > Mouse over Script in X3d
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 |
Mouse over Script in X3d
|
|
|
| Hi,
I'm new in X3d and I want to get help in writing an script for mouse
over using X3d.
I need simple script in X3d which when mouse over on a for example
line, the box on a corner of page shows "text" which is related to
line(Line label).(there is set of lines which I want to show their
label and extra information from database in separate window).
Looking forward for your help and comment.
| |
|
| On Mar 28, 4:24 am, "MSA" <akh...@XXXXXXXXXX> wrote:
> Hi,
> I'm new in X3d and I want to get help in writing an script for mouse
> over using X3d.
> I need simple script in X3d which when mouse over on a for example
> line, the box on a corner of page shows "text" which is related to
> line(Line label).(there is set of lines which I want to show their
> label and extra information from database in separate window).
> Looking forward for your help and comment.
Hi, I'd also love to find out how to do this (I to am a total noob to
this). I've spent 3 days on the googleweb and have only found that I
need a touch sensor and somehow make a route. Can anyone provide a
simple example? I'd also love to be able to have the object change
colour when clicked on.
Could someone kindly provide an example in xml? Sorry for asking, but
I've had difficultly finding an example in xml.
Dave
| |
|
|
i'm sure there will be examples of both of these, somewhere, but in
vrml (.wrl), but since x3d is functionally a superset of vrml, with a
different encoding (xml), they will still work, either directly,
because browsers are required to except vrml, or by changing the
extension to .x3dv, which is telling the browser the file is x3d in
the vrml style text encoding.
The text encoding is much simpler if you are writing an x3d file by
hand, and there are many programs to convert it to the XML encoding if
you want.
| |
| Joerg Scheurich aka MUFTI 2007-04-12, 6:17 am |
| > because browsers are required to except vrml, or by changing the
> extension to .x3dv, which is telling the browser the file is x3d in
> the vrml style text encoding.
Unfortunatly, there are more changes needed to change a VRML97 file to X3DV,
some field names has changed (e.g. LOD.level in VRML97 has changed to
LOD.children in X3DV).
There are also vrml97 to x3dv converters, eg. white_dune
$cat lod.wrl
#VRML V2.0 utf8
LOD
{
level Shape
{
}
}
$dune -x3dv lod.wrl
#X3D V3.0 utf8
PROFILE Interchange
LOD
{
children Shape
{
}
}
so long
MUFTI
--
UNIX ist das Betriebssystem der Zukunft
(William Henry Gates III)
| |
| simon 2007-04-12, 10:17 pm |
|
> Unfortunatly, there are more changes needed to change a VRML97 file to X3DV,
> some field names has changed (e.g. LOD.level in VRML97 has changed to
> LOD.children in X3DV).
yes, it was unfortunate this was not done another way.
i realise that generally you need to change some field names, but for
the basic examples these guys might find they are unlikly to use any
of them, (or they can be used directly in vrml as examples.)
more importantly the header will HAVE to be changed
from: #VRML V2.0 utf8
to: #X3D V3.0 utf8
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|