-
Notifications
You must be signed in to change notification settings - Fork 50
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
Update how 3D objects are referenced #263
Comments
@borismarin discussed with @jrmartin here is what seems to be the best way to do this, do you see any problems with it? Once you are happy with it we can update the card. |
In the "tomorrow" case, when you say 3D objects (inside viztree) do you And what about the Collada case, when the client doesn't "need" to create On 21 January 2015 at 19:17, Matteo Cantarelli notifications@github.com
|
The 3D objects would still be added to the scene but the mapping inside VARS called meshes indexed by a string would go away. @jrmartin to confirm. |
@jrmartin will be merging this branch into widgetsimprovements and we'll test everything together there, thanks @borismarin! |
What was in the branch has been merged into development but I think there are still some things to do, e.g. the meshes have not moved inside the viz tree. |
I've left a bunch of TODO comments all over the code, which are still there after the merge. And I didn't have time to start any of the 3d ref stuff, mostly due to time invested in refactoring parts of the code which were hard to understand (removed some dead code blocks, confusing logic and even some bugs). I'm still under "paternity leave", so I won't be able to discuss the TODOs and finish this card in the near future. |
Obsolete, closing |
What we received from the server
entity.aspect.VisualizationTree.content.segment1
We don’t receive these objects when we load a Collada file
The scene graph is something like this
VARS.scene.obj1.obj2.obj3….mesh1
These objects are created in both cases, whether we have a Collada file or whether the server is sending to the client geometries which need to be created
Requirements
We should create methods like this
List : getAll3DObjectsForAspect(aspectInstancePath)
Object3D : get3DObjectFromAspect(aspectInstancePath, id)
Inside addDynamicVisualization if a specific Object3D is specified the transformation is applied only to that object, otherwise it is applied to every Object3D contained in the specified aspectInstancePath
Actions
The text was updated successfully, but these errors were encountered: