Orillusion / orillusion

Orillusion is a pure Web3D rendering engine which is fully developed based on the WebGPU standard.
https://www.orillusion.com
MIT License
4.7k stars 614 forks source link

[BUG]: GUI的WorldPanel绑定Object3D后,显示不正确,有错误的偏移量。 #285

Closed Temurayl closed 10 months ago

Temurayl commented 1 year ago

Bug描述

玛雅建立的模型放大100倍展示,标签坐标在玛雅采集,未进行缩放。视图为俯视图,从正面和背面观察,标签的位置有很大的偏差,感觉是在围绕一个圆在旋转,离坐标系原点越远,围绕的这个圆越大。 a9cca1d239971c7066821e2bef5f90c

6fe66c2dcca72a6d17db302fb07d447

Bug复现流程

通过以下步骤产生bug:

  1. 创建 '...'
  2. 点击 '...'
  3. 删除 '...'
  4. 出现错误 '...'

期待的结果

期待标签始终在那个坐标点的位置,随着模型移动。或者以标签块的中心点对应坐标的位置.

报错截图

如果可以,提供发生错误的截图

测试引擎版本:

本地运行出错的Orillusion引擎版本, 0.6.9-beta.1

本机系统 (请填写完整):

本机配置

代码示例

如果有sandbox/codepen的代码示例链接,请提供
您可以修改 https://codepen.io/pen?template=QWQrRmr 来创建一个简单的演示

其他信息

添加关于bug的其他描述信息

JingwenBai commented 1 year ago

能否提供下在codepen中完整的实例代码,方便我们更加快速的定位问题~

JingwenBai commented 1 year ago

今天开会讨论了下,已经在跟进了哈!

hellmor commented 1 year ago

移除掉GUIPanelBinder.ts中,constructor里对update调用, 有可能内部有隐藏问题。

Temurayl commented 1 year ago

好的,有结果了望回复

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年08月16日 22:38 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [Orillusion/orillusion] [BUG]: (Issue #285) |

今天开会讨论了下,已经在跟进了哈!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hellmor commented 1 year ago

image

  1. 注释掉 GUIPanelBinder constructor 中的 this.update()
  2. 在引擎主函数中注册 update 函数:await Engine3D.init({ renderLoop: () => { this.renderUpdate(); } });
  3. 添加 renderUpdate
    renderUpdate() {
    if (this.bindTarget3DRoot) {
        for (let binder of this.nodeList) {
            binder.update(Time.delta);
        }
    }
    }

    Full code: https://codepen.io/orillusion/pen/poqzQjo

官网里的 Sample_UIMultiPanel,如果在 constructor 里调用过 update,也会重现这一样的问题。感谢你的反馈!

Temurayl commented 1 year ago

想问个问题,目前这个wengpu的引擎能真正用到商业真实的项目中去吗?如果可以使用vue框架开发时如何进行接口调试呢?,本地运行项目的地址无非就是这两个 http://localhost:80 http://192.168.0.1 所以本地开发一直报错 浏览器不支持wengpu

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年08月17日 09:44 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [Orillusion/orillusion] [BUG]: GUI的WorldPanel绑定Object3D后,显示不正确,有错误的偏移量。 (Issue #285) |

1,注释掉constructor中的update; 2,引擎启动,注册update函数:await Engine3D.init({ renderLoop: () => { this.renderUpdate(); } }); 3, renderUpdate() { if (this.bindTarget3DRoot) { for (let binder of this.nodeList) { binder.update(Time.delta); } } }

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

JingwenBai commented 1 year ago

引擎基本的功能模块都已经具备了,而且也可以方便咱们自己进行扩展。如果有具体的商业项目需求,可以在社区里联系负责人~