sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

Feature Request: Specify Field of View for SceneView

Open peronecode opened this issue 8 years ago • 8 comments

Hello everyone.

I'm trying to create a scene view for my model and my model got deformed when I'm approximate the camera, see above: bad_view

There is a correction on camera properties or something else to correct the view?

Thanks. Regards, Perone.

peronecode avatar Jun 27 '18 14:06 peronecode

It looks like it is being rendered close to the camera, and the perspective matrix transform is being applied to it. Otherwise it looks correct. If you load a different model, does it look incorrect?

gstanlo avatar Jun 27 '18 22:06 gstanlo

Hi @gstanlo

On the same subject, is there any easy way to change the camera fov in sceneForm? From the documentation the "closest" thing I can see is by passing the full projection matrix, which frankly is plain insane IMO. Also, there's zero info about how it expects this matrix to be. What is the projection matrix for a camera fov of 20º for instance?

Regards, Eugenio

EugenioMiolo avatar Jul 02 '18 19:07 EugenioMiolo

Tracking this as a feature request for setting a FOV in SceneView.

malik-at-work avatar Oct 10 '18 17:10 malik-at-work

Hi @malik-at-work there are some prevision to this feature?

Thank you.

gdamoreira avatar Oct 25 '18 18:10 gdamoreira

Hi @malik-at-work ,

Any update ?

Thanks

fharold avatar Jan 24 '19 14:01 fharold

@malik-at-work looking for an update on this too!

smushy129 avatar Sep 17 '19 13:09 smushy129

The code is in for this in an upcoming release. Note the new API will only allow this for 3D scenes however. The projection matrix in AR mode matches the camera.

malik-at-work avatar Sep 18 '19 22:09 malik-at-work

thank you! this fix worked

smushy129 avatar Dec 03 '19 19:12 smushy129