X3DOM

x3dom-developers mailing list

Mail: x3dom-developers@lists.sourceforge.net

Sat 14-Jan-23

In my X3D files, I am using node <Anchor> with the attribute description. See the attached X3D file. This enables me in some X3D viewers to identify a node by pointing to it. In the viewer view3dscene (see the attached PNG) I pointed to the red node and obtained in the report window the corresponding description info “1: Fire”.

How can I achieve this in X3DOM ? The documentation https://doc.x3dom.org/author/Networking/Anchor.html says

The description field in the Anchor node specifies a textual description of the Anchor node. This may be used by browser-specific user interfaces that wish to present users with more detailed information about the Anchor.

I found an example, see https://doc.x3dom.org/tutorials/animationInteraction/picking/example.html, which is very close to the solution of my problem. I tried to adapt it without success.

Can somebody help me to adapt this example or suggest some other approach?

best,

Vladimir Batagelj

Anchor

Anchor descriptions

This is a html page with some 3d objects.

Inline version

Anchor

Anchor descriptions

This is a html page with some 3d objects.

vlado/work/2m/mwn/genova/x3dom.txt · Last modified: 2023/01/16 02:19 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki