jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

Setting PIXI.settings.RESOLUTION greater than 1 breaks the model #85

Closed goldenratio closed 2 years ago

goldenratio commented 2 years ago

Hi,

I stumbled upon an issue (not sure If it's actually an issue)

Here is the reproducible repo, https://github.com/goldenratio/pixi3d-poc-72

Setting, PIXI.settings.RESOLUTION = 2; breaks the model, but when setting it to 1, it works fine. https://github.com/goldenratio/pixi3d-poc-72/blob/main/src/index.ts#L12

jnsmalm commented 2 years ago

Thanks, I'll take a look

jnsmalm commented 2 years ago

Could you share some screenshots of the issue? I can't reproduce this...

jnsmalm commented 2 years ago

What device do you run this on?

goldenratio commented 2 years ago

@jnsmalm updated the repo with model and animation, https://github.com/goldenratio/pixi3d-poc-72 OS: Windows 10 and Mac OS Catalina (Chrome latest)

PIXI.settings.RESOLUTION = 2

Screenshot 2022-03-18 at 20 43 36

PIXI.settings.RESOLUTION = 1

Screenshot 2022-03-18 at 20 43 25
goldenratio commented 2 years ago

please note, model is in .glb. I haven't tested with .gtlf format

jnsmalm commented 2 years ago

I have created a patch v1.3.1, please let me know if this fixes the issue.

goldenratio commented 2 years ago

@jnsmalm works well now. Thanks