Has a consideration been made to position a camera via HTML attributes or CSS?
Assume that you're attempting to render a series of 3D models from different views in a page. With the current proposed API the code would look as follows:
It should also be noted that since setCamera returns a promise that the action would not be immediate and so the developer may want to hide the model until the setCamera Promise is resolved making the implementation more complex.
Or an alternative would be to define initial camera settings via inline CSS. We already have the perspective css property which is sort of driving in that direction.
Has a consideration been made to position a camera via HTML attributes or CSS?
Assume that you're attempting to render a series of 3D models from different views in a page. With the current proposed API the code would look as follows:
It should also be noted that since
setCamera
returns a promise that the action would not be immediate and so the developer may want to hide the model until thesetCamera
Promise is resolved making the implementation more complex.Where maybe ideally it would look as follows:
Or an alternative would be to define initial camera settings via inline CSS. We already have the
perspective
css property which is sort of driving in that direction.