使用 papervision 创建具有动态段的旋转锥体

发布于 2024-09-04 06:02:22 字数 112 浏览 1 评论 0原文

我正在尝试使用 papervision 创建一个旋转锥体,其中所有部分都可以单独填充颜色/图像。就像您可以使用 MaterialsList 分别渲染立方体的所有侧面一样。 我还希望能够检查是否单击了特定的片段。

I'm trying to create a rotating cone using papervision where all the segments can be filled with a color / image separately. So just like you can use a MaterialsList to render all the sides from a Cube separately.
Also I'd like to be able to check if a specific segment is clicked.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

櫻之舞 2024-09-11 06:02:22

(如果你还在听的话)
我能想到的最简单的方法是将纹理应用于圆锥体。使用一些带有彩色方块的测试纹理来了解它如何映射到对象;然后您可以将图案替换为彩色片段。
如果您想在分段之间获得完美清晰的边界,您应该自己构建圆锥体并为每个分段分配材料。

(if you're still listening)
Easiest way I can think of is to apply texture to cone. Use some test texture with colored squares to learn how it maps to object; then you can replace patterns to your colored segments.
If you want to get perfectly sharp boundaries between segments, you should construct your cone yourself and assign material to each segment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文