-
Notifications
You must be signed in to change notification settings - Fork 634
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
DYN-3896 Add support for geometry instancing in render pipeline #11914
Merged
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
987381f
Add instancing support to DynamoMesh sharder
saintentropy 0824814
Add instancing interfaces to GraphicsDataInterfaces for instance support
saintentropy 37ceb00
Add IRenderInstances implementation to HelixRenderPackage
saintentropy 3aecdc4
Add support to HelixWatch3DViewModel to add instance data when pressent
saintentropy 3276e67
Handle adding instance data when object is IInstanceableItem
saintentropy ca899f7
Update interface to add tessellation params
saintentropy 0de95b0
add line instancing to render package
saintentropy f901cb6
Support rendering of line instances
saintentropy 774d66e
add todo for labels
saintentropy c69a6cc
Merge branch 'master' into Instancing
saintentropy c379ed4
Add bool to control instance availablity
saintentropy c2f34d2
Merge branch 'master' into Instancing
saintentropy 6a08c8a
Add parameter to support labeling within instance set
saintentropy a95a881
Merge branch 'master' into Instancing
saintentropy 628392b
Merge branch 'master' into Instancing
saintentropy 0a5b8f3
add simple renderpackage tests
mjkkirschner a0302cd
add instancing image comparison test 1
mjkkirschner e7170fe
add image comparison test for instance class with no data
mjkkirschner f60c9b6
Merge branch 'master' of https://github.com/DynamoDS/Dynamo into inst…
mjkkirschner f407a71
review comments to HelixWatch3dViewModel and GraphicsDataInterface files
mjkkirschner 60aabb8
builds and moved to value tuple
mjkkirschner a8caa7b
it builds
mjkkirschner c05c323
fix some comments
mjkkirschner 0da5120
Merge branch 'instancetests' of https://github.com/mjkkirschner/Dynam…
mjkkirschner cfb521c
initialize internal collection properties
mjkkirschner fec13a9
new test for transformable and instancing
mjkkirschner e38a40b
control instancing with feature flag
mjkkirschner af38da1
update
mjkkirschner 1850bc0
test mode should enable instancing flag
mjkkirschner df92121
update shaders
mjkkirschner 2c9551f
fix test, add 1 more
mjkkirschner 52331e1
handle show edges
mjkkirschner b4b2fe7
TODO
mjkkirschner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
316 changes: 316 additions & 0 deletions
316
test/core/visualization/instancing_cubes_cones_edges.dyn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,316 @@ | ||
{ | ||
"Uuid": "9efa7484-d303-4c24-81f2-0cf775d59c0a", | ||
"IsCustomNode": false, | ||
"Description": "", | ||
"Name": "instancing_cubes_cones_edges", | ||
"ElementResolver": { | ||
"ResolutionMap": { | ||
"Autodesk.Point": { | ||
"Key": "Autodesk.DesignScript.Geometry.Point", | ||
"Value": "ProtoGeometry.dll" | ||
}, | ||
"Autodesk.DesignScript.Geometry.Point": { | ||
"Key": "Autodesk.DesignScript.Geometry.Point", | ||
"Value": "ProtoGeometry.dll" | ||
} | ||
} | ||
}, | ||
"Inputs": [], | ||
"Outputs": [], | ||
"Nodes": [ | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", | ||
"NodeType": "FunctionNode", | ||
"FunctionSignature": "Autodesk.DesignScript.Geometry.Cuboid.ByLengths@Autodesk.DesignScript.Geometry.Point,double,double,double", | ||
"Id": "6478787711bc4df5acac49307229215b", | ||
"Inputs": [ | ||
{ | ||
"Id": "4d8d33b6f377435aaa6a59ab43140e3a", | ||
"Name": "origin", | ||
"Description": "Origin point\n\nPoint\nDefault value : Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0)", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "8590e9444a98497f92e3e860e6666fe1", | ||
"Name": "width", | ||
"Description": "Width of cuboid\n\ndouble\nDefault value : 1", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "025fe5b287e54fd7a030ef5c98b2bbf4", | ||
"Name": "length", | ||
"Description": "Length of cuboid\n\ndouble\nDefault value : 1", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "41841f0187734c64ac79bf2475d71a22", | ||
"Name": "height", | ||
"Description": "Height of cuboid\n\ndouble\nDefault value : 1", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Outputs": [ | ||
{ | ||
"Id": "f37069fd4d5e4c43a65a10ea5c1ba271", | ||
"Name": "Cuboid", | ||
"Description": "Cuboid created by lengths", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Auto", | ||
"Description": "Create a Cuboid centered at input Point, with specified width, length, and height.\n\nCuboid.ByLengths (origin: Point = Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0), width: double = 1, length: double = 1, height: double = 1): Cuboid" | ||
}, | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", | ||
"NodeType": "FunctionNode", | ||
"FunctionSignature": "Autodesk.DesignScript.Geometry.Point.ByCoordinates@double,double,double", | ||
"Id": "33227cb51adb42ecb3b11c345aa9d1f8", | ||
"Inputs": [ | ||
{ | ||
"Id": "eb7147a99785420a9ddbc852e57b1577", | ||
"Name": "x", | ||
"Description": "X coordinate\n\ndouble\nDefault value : 0", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "568f2bb845f74077aa2cbdbb3497a296", | ||
"Name": "y", | ||
"Description": "Y coordinate\n\ndouble\nDefault value : 0", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "bd15cfa7c44542aea1ca7dd4a63fe557", | ||
"Name": "z", | ||
"Description": "Z coordinate\n\ndouble\nDefault value : 0", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Outputs": [ | ||
{ | ||
"Id": "aa622829bf7940a1a179a64476018290", | ||
"Name": "Point", | ||
"Description": "Point created by coordinates", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "CrossProduct", | ||
"Description": "Form a Point given 3 cartesian coordinates\n\nPoint.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Point" | ||
}, | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", | ||
"NodeType": "CodeBlockNode", | ||
"Code": "0..20..5;", | ||
"Id": "35cb91301e564b85ac49db9cf0176c36", | ||
"Inputs": [], | ||
"Outputs": [ | ||
{ | ||
"Id": "f1789f03056c43ffb8180f0fdebdca3a", | ||
"Name": "", | ||
"Description": "Value of expression at line 1", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Disabled", | ||
"Description": "Allows for DesignScript code to be authored directly" | ||
}, | ||
{ | ||
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", | ||
"NodeType": "FunctionNode", | ||
"FunctionSignature": "Autodesk.DesignScript.Geometry.Cone.ByPointsRadius@Autodesk.DesignScript.Geometry.Point,Autodesk.DesignScript.Geometry.Point,double", | ||
"Id": "be5d20261c8e444382a931d1826e4fdb", | ||
"Inputs": [ | ||
{ | ||
"Id": "022805cbd26f4461853477fece87ce48", | ||
"Name": "startPoint", | ||
"Description": "Point\nDefault value : Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0)", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "2655a098deba4cc985a0700cf547fea7", | ||
"Name": "endPoint", | ||
"Description": "Point\nDefault value : Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 1)", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
}, | ||
{ | ||
"Id": "a0e6e7a871fc4476b1ee643fd6ceb60f", | ||
"Name": "startRadius", | ||
"Description": "double\nDefault value : 1", | ||
"UsingDefaultValue": true, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Outputs": [ | ||
{ | ||
"Id": "d5ac84be718e4df095554957be1a2dae", | ||
"Name": "Cone", | ||
"Description": "Cone", | ||
"UsingDefaultValue": false, | ||
"Level": 2, | ||
"UseLevels": false, | ||
"KeepListStructure": false | ||
} | ||
], | ||
"Replication": "Auto", | ||
"Description": "Create a Cone with given base radius at start Point, extending to a apex at end Point.\n\nCone.ByPointsRadius (startPoint: Point = Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 0), endPoint: Point = Autodesk.DesignScript.Geometry.Point.ByCoordinates(0, 0, 1), startRadius: double = 1): Cone" | ||
} | ||
], | ||
"Connectors": [ | ||
{ | ||
"Start": "aa622829bf7940a1a179a64476018290", | ||
"End": "4d8d33b6f377435aaa6a59ab43140e3a", | ||
"Id": "92c742ed87cb44bca046526c52368580", | ||
"IsHidden": "False" | ||
}, | ||
{ | ||
"Start": "aa622829bf7940a1a179a64476018290", | ||
"End": "022805cbd26f4461853477fece87ce48", | ||
"Id": "60ba5bb035614a87be42af7f14fd3d36", | ||
"IsHidden": "False" | ||
}, | ||
{ | ||
"Start": "f1789f03056c43ffb8180f0fdebdca3a", | ||
"End": "eb7147a99785420a9ddbc852e57b1577", | ||
"Id": "ca0a3ea9186d479caa6a95129275285c", | ||
"IsHidden": "False" | ||
}, | ||
{ | ||
"Start": "f1789f03056c43ffb8180f0fdebdca3a", | ||
"End": "568f2bb845f74077aa2cbdbb3497a296", | ||
"Id": "6c79e89a4d6a4e4794ec9509da9a87b1", | ||
"IsHidden": "False" | ||
}, | ||
{ | ||
"Start": "f1789f03056c43ffb8180f0fdebdca3a", | ||
"End": "bd15cfa7c44542aea1ca7dd4a63fe557", | ||
"Id": "20639e0049914290bc21f8140c151adf", | ||
"IsHidden": "False" | ||
} | ||
], | ||
"Dependencies": [], | ||
"NodeLibraryDependencies": [], | ||
"Thumbnail": "", | ||
"GraphDocumentationURL": null, | ||
"ExtensionWorkspaceData": [ | ||
{ | ||
"ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670", | ||
"Name": "Properties", | ||
"Version": "2.15", | ||
"Data": {} | ||
} | ||
], | ||
"Author": "", | ||
"Linting": { | ||
"activeLinter": "None", | ||
"activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a", | ||
"warningCount": 0, | ||
"errorCount": 0 | ||
}, | ||
"Bindings": [], | ||
"View": { | ||
"Dynamo": { | ||
"ScaleFactor": 1.0, | ||
"HasRunWithoutCrash": true, | ||
"IsVisibleInDynamoLibrary": true, | ||
"Version": "2.15.0.5027", | ||
"RunType": "Automatic", | ||
"RunPeriod": "1000" | ||
}, | ||
"Camera": { | ||
"Name": "Background Preview", | ||
"EyeX": 23.716814041137695, | ||
"EyeY": 22.23890495300293, | ||
"EyeZ": 19.300704956054688, | ||
"LookX": -13.812013626098633, | ||
"LookY": -12.32354736328125, | ||
"LookZ": -29.205509185791016, | ||
"UpX": -0.063192009925842285, | ||
"UpY": 0.98901593685150146, | ||
"UpZ": -0.13362027704715729 | ||
}, | ||
"ConnectorPins": [], | ||
"NodeViews": [ | ||
{ | ||
"Name": "Cuboid.ByLengths", | ||
"ShowGeometry": true, | ||
"Id": "6478787711bc4df5acac49307229215b", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 642.8764713677615, | ||
"Y": 74.964391691394638 | ||
}, | ||
{ | ||
"Name": "Point.ByCoordinates", | ||
"ShowGeometry": false, | ||
"Id": "33227cb51adb42ecb3b11c345aa9d1f8", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 319.0, | ||
"Y": 99.0 | ||
}, | ||
{ | ||
"Name": "Code Block", | ||
"ShowGeometry": true, | ||
"Id": "35cb91301e564b85ac49db9cf0176c36", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 82.0, | ||
"Y": 293.0 | ||
}, | ||
{ | ||
"Name": "Cone.ByPointsRadius", | ||
"ShowGeometry": true, | ||
"Id": "be5d20261c8e444382a931d1826e4fdb", | ||
"IsSetAsInput": false, | ||
"IsSetAsOutput": false, | ||
"Excluded": false, | ||
"X": 332.82195845697333, | ||
"Y": 384.97032640949556 | ||
} | ||
], | ||
"Annotations": [], | ||
"X": 113.3851958186786, | ||
"Y": -63.856724123373084, | ||
"Zoom": 1.2520174179462746 | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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 can enable this after the LibG changes are merged, it will fail until then because the number of instances will be incorrect.