x3dom-developers mailing list
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
This is a html page with some 3d objects.
This is a html page with some 3d objects.