-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Instancing models 3d tiles #3059
Instancing models 3d tiles #3059
Conversation
} | ||
|
||
function loadInstanced3DTile() { | ||
// TODO : create real tileset later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll be able to delete this entire example since the user's code will just load a 3D tileset regardless of the tile format(s) it contains.
@@ -6,7 +6,8 @@ define([ | |||
'../Core/destroyObject', | |||
'../Core/DeveloperError', | |||
'../Core/IndexDatatype', | |||
'./BufferUsage' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to get more 3D Tiles code into master sooner, can you open a separate pull request into master for these changes and the changes to ShaderProgram.js?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And maybe even the changes to ShaderSource.js (and code that uses it).
@@ -2943,9 +2946,6 @@ define([ | |||
BoundingSphere.clone(command.boundingVolume, pickCommand.boundingVolume); | |||
} | |||
} | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we delete this? We're actually going to want this for KHR_materials_common and when we support glTF cameras.
CC @tfili
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I deleted it because I ended up moving that code to line 2927, which all node types will call.
@lilleyse just those comments, then this is ready to merge into the 3D Tiles branch. |
3b9d78e
to
bc10897
Compare
5b4bbec
to
948ad72
Compare
This should be ready for another look now. I made a few modifications to I think I discovered the main memory leak you brought up before, but I would like you to verify this. The rest of the changes are renaming and organizational. |
994a391
to
a49b6fd
Compare
d47184e
to
e19f70a
Compare
When individual models are used, the GC is still at 10.92% so the bulk (or all) of the allocations could be in |
@lilleyse we can merge this once we determine the allocations. As I mentioned before, I also think we can combine |
Moved the GC issues to #3125. |
What is the status of Instanced glTF models? When checking the source code of Cesium master I could not find any reference to instanceCount or ModelInstanceCollection. We would like to draw alot of trees, but the performance is pretty bad. |
@laurensdijkstra model instancing is in the 3d-tiles branch. |
Thanks @pjcozzi ! |
For #3001
First pass of integrating instanced models into 3d-tiles. I'll do a more thorough review later, including cleaning up any TODOs.