Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

captured png is lower resolution than scene #4

Open
kfarr opened this issue Oct 20, 2021 · 1 comment
Open

captured png is lower resolution than scene #4

kfarr opened this issue Oct 20, 2021 · 1 comment

Comments

@kfarr
Copy link
Collaborator

kfarr commented Oct 20, 2021

Images captured with PNG screenshot button are lower resolution with noticeable aliasing in comparison to the actual 3d scene. Compare the 2 attached examples below (notice the fire escape jagged edges)

From PNG button
PNG-button

From screen capture
screencap

@kfarr
Copy link
Collaborator Author

kfarr commented Oct 20, 2021

Possible solution:

On these lines
https://github.com/3DStreet/3dstreet-editor/blob/414cf0ad8db93e97bf2853c5bfee03276fe2ba61/src/components/viewport/CameraToolbar.js#L85

change to

    AFRAME.scenes[0].setAttribute('screenshot', 'width', AFRAME.scenes[0].canvas.width * 2);
    AFRAME.scenes[0].setAttribute('screenshot', 'height', AFRAME.scenes[0].canvas.height * 2);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant