Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想在我悬停的盒子上画一个轮廓。我记得以前看过一个关于这个的教程,但现在我似乎找不到任何东西。任何帮助将不胜感激!
据我所知,x3d 中的 3d 形状没有轮廓属性。你可以通过有两个盒子来做一个技巧,第二个(更大的,可能不同的颜色)是第一个的“轮廓”。我会将两者放在一个 Switch 节点中。鼠标悬停显示较大的。
或者另一种解决方案(更简单)是更改盒子的尺寸参数。您可以通过将 SFVec3f 值路由到您的盒子的比例或编写一些 javascript 代码来做到这一点。