I'm using x3d scene in a web page. In this page, I have an indexedfaceset
which works fine. I'm adding a <Color color="..."></Color>
and it's working fine as well.
Now what I'm trying to do is to change the content of the Color
using javascript once the scene is already drawn. Unfortunately the modifications aren't taken into account.
Do I have to force a redraw of the scene or something like that? I saw nothing on the runtime api of x3d.
Thanks
through x3dom?
if so check out my answer here. shows how to set attributes through both tag and id on js mouse events
i know your trying to change index face set color attribute but i think the below should give ua starting point. let me know if you need a more concise example
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.