Surface vs workspace #96
Comments
Sounds like you could use That said, I think eventually we will have this: https://github.com/ProjectSeptemberInc/gl-react/issues/57 so you could basically have this: <Surface width={displayWidth} height={displayHeight}>
<GL.Node width={glWidth} height={glHeight} ... />
</Surface> with a way to screenshot the internal GL.Node (probably with ref, need to think more about this) so you could have a constant gl size with a variable display size that way. |
@gre thanks for the answer. ImageEditor can not be used in this case as it would have to upscale the image. |
ok cool. we'll focus on ProjectSeptemberInc/gl-react#57 in next features to come |
@kesha-antonov as for now i dont think so. @gre is working on gl-react v3 that is made for Exponent and not pure react-native... as it uses the GLView of Exponent. The issue https://github.com/ProjectSeptemberInc/gl-react/issues/57 as you no longer can see was a list of fixes to get the function you want. @gre Why not open up tickets on the gl-react again, and let community help develop it futher as not everyone will and want to use Exponent 😉 |
@Stoffern the repo and its issues have moved to https://github.com/gre/gl-react so the issue you mentioned is still in gre/gl-react#57 and has been addressed in the v3. The repos https://github.com/ProjectSeptemberInc/gl-react and https://github.com/ProjectSeptemberInc/gl-react-native only exists to track the v2. the v3 is on https://github.com/gre/gl-react – it's a single repo for all the libs.
actually the current gl-react-native@next (v3) is available, still in alpha but works and have textures working too. so it's not true anymore you need Exponent to run it. There are both |
@kesha-antonov you can use |
Thank you, guys! |
Hi,
Would it be possible to set a surface size and a workspace size?
So in a
captureFrame
the size will be according to the workspace and not the surface space?Some mobiles have smaller screens and if you capture depending on some device-widths the capture result will be different on the devices. (tested on Android not iOS)
Example:
@gre would this be possible? :)
The text was updated successfully, but these errors were encountered: