-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify the view on model contents #72
Comments
/agenda |
Can you explain what |
aha - no! I have been using a 3D model of a shelf / shelf configurator as a sample for doing this (and the IBL example), so I was naming the hypothetical model based on what it is doing. I've updated the name to be |
Are the units for rotation in radians or degrees? I suspect from the provided values that it is degrees, but JS deals with radians. There is the potential issue of using one unit for the API and a different one for the HTML because it is more convenient for the user and environment. It is also necessary to define the origin (up & forward) and location. Location is necessary because how far you look up (for example) depends on how far away from the object you are looking at. If that is included in |
After a lot of exploration I think it would be better to pursue a metaphor where the root element (possibly even denoted as This avoids the notion of a "camera" as an obligatory feature at all, which would help clarify its function in spatial/stereoscopic environments. And while I think we can and should pursue a V1 specification (and implementation) that doesn't reach into a scene graph, exposing the root node will give us a reasonable pattern to follow once we have the appetite to do so. /facetoface |
/tpac |
from discussions at TPAC I think the Another thing we get out of using DOMMatrix is that we could aim to specify the (entity|view|model)transform within CSS, which opens the door to styling and transitions, and leveraging CSS animation on the properties. I find that very exciting. @toji, is there anything that we'd be missing out on from |
I don't think so. Though to be a bit pedantic: The reason it was discussed at all is because there was some concern about supporting skew, which |
/agenda |
At TPAC we discussed the necessity to point the view into a
<model>
element at specific locations within it, e.g. to focus on specific features of a car.We also agreed that for both reasons of complexity for the author and compatibility across platforms, that supplying view information like a 4x4 projection matrix were not appropriate. Instead, to follow something closer to the style indicated with the existing proposed JS syntax, i.e
setCamera({pitch:10, yaw:10, scale:1})
.My suggestion is to specify an
{x,y,z}
object as an optionalorigin
orpivot
parameter on that setCamera call:and in fact for the other parameters to be made optional as well, with the presumption that no supplied value implies to retain the same one.
The text was updated successfully, but these errors were encountered: