Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Chisel Graph #311

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
997dea1
Update Unity version
mic-code Jan 18, 2021
3e82a59
Added node package
mic-code Jan 18, 2021
43ed055
Added ChiselGraph and ChiselGraphInstance
mic-code Jan 19, 2021
1ef1a6b
Added ChiselGraphNode editor
mic-code Jan 19, 2021
6dab7d5
WIP
mic-code Jan 19, 2021
697fefd
WIP
mic-code Jan 19, 2021
2cbf7c9
First working cube
mic-code Jan 19, 2021
0313600
Implemented BoxNode
mic-code Jan 19, 2021
5dc4fe7
Implemented CSG operation
mic-code Jan 19, 2021
5da06c9
Cleaned up
mic-code Jan 19, 2021
3ce6297
Implemented SubGraph
mic-code Jan 19, 2021
2f344ef
Implemented FloatPropertyNode
mic-code Jan 20, 2021
bde82cd
Hide property in GraphInstance
mic-code Jan 20, 2021
9424b35
Implemented overridable editor GUI
mic-code Jan 20, 2021
0363177
Implemented overridable properties
mic-code Jan 20, 2021
834dac9
Handle multiple instance
mic-code Jan 20, 2021
3f1155a
Property create and destroy update
mic-code Jan 20, 2021
e131813
Renamed to chisel graph
mic-code Jan 21, 2021
b940f9a
Added local position and rotation
mic-code Jan 21, 2021
9176bd1
Treat SubGraphNode like other node
mic-code Jan 21, 2021
3af4683
Added ChiselGraphHierarchyView
mic-code Jan 21, 2021
3e8d8d5
Show position and rotation in ChiselGraphHierarchyView
mic-code Jan 21, 2021
ab6d4dc
Clear only when dirty
mic-code Jan 21, 2021
fac4364
Allow selecting any obj in ChiselGraphHierarchyView
mic-code Jan 21, 2021
e5835b0
Implemented cylinder node and multiple input connections
mic-code Jan 21, 2021
2ff0cb6
GraphRuntime WIP
mic-code Mar 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ UserSettings/EditorUserSettings.asset
/Assets/Experiments.meta

/UserSettings
.vsconfig
99 changes: 99 additions & 0 deletions Assets/ChiselGraphInstance.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3144103473529927222
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3144103473529927224}
- component: {fileID: 3144103473529927223}
- component: {fileID: 3144103473529927226}
- component: {fileID: 3144103473529927225}
m_Layer: 0
m_Name: ChiselGraphInstance
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3144103473529927224
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3144103473529927222}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.055}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3144103473529927223
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3144103473529927222}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7112759bb6d84f45890aef9caadedbe, type: 3}
m_Name:
m_EditorClassIdentifier:
graph: {fileID: 11400000, guid: 7554a9f6d7403e34597bef241745c03e, type: 2}
meshFilter: {fileID: 3144103473529927226}
meshRenderer: {fileID: 3144103473529927225}
--- !u!33 &3144103473529927226
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3144103473529927222}
m_Mesh: {fileID: 0}
--- !u!23 &3144103473529927225
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3144103473529927222}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
7 changes: 7 additions & 0 deletions Assets/ChiselGraphInstance.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/ChiselNodes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

189 changes: 189 additions & 0 deletions Assets/ChiselNodes/MySubGraph.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-6468980190964667538
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d678cf2bf10f3bf4f8d68ae693a7a7a3, type: 3}
m_Name: Box
m_EditorClassIdentifier:
graph: {fileID: 11400000}
position: {x: 136, y: 168}
ports:
keys:
- center
- size
- output
- input
- localPosition
- localRotation
values:
- _fieldName: center
_node: {fileID: -6468980190964667538}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: size
_node: {fileID: -6468980190964667538}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: output
_node: {fileID: -6468980190964667538}
_typeQualifiedName: Chisel.Nodes.ChiselGraphNode+CSG, ChiselNode, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 1
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: input
_node: {fileID: -6468980190964667538}
_typeQualifiedName: Chisel.Nodes.ChiselGraphNode+CSG, ChiselNode, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections:
- fieldName: output
node: {fileID: 1688561918610544374}
reroutePoints: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: localPosition
_node: {fileID: -6468980190964667538}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: localRotation
_node: {fileID: -6468980190964667538}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
localPosition: {x: 0, y: 0, z: 0}
localRotation: {x: 0, y: 0, z: 0}
operation: 1
center: {x: 0, y: 0.93, z: 0}
size: {x: 2.16, y: 1, z: 1}
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1719bdb460489264dbc2eda6f3845f03, type: 3}
m_Name: MySubGraph
m_EditorClassIdentifier:
nodes:
- {fileID: 1688561918610544374}
- {fileID: -6468980190964667538}
active: {fileID: -6468980190964667538}
instance: {fileID: 0}
--- !u!114 &1688561918610544374
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d678cf2bf10f3bf4f8d68ae693a7a7a3, type: 3}
m_Name: Box
m_EditorClassIdentifier:
graph: {fileID: 11400000}
position: {x: -184, y: 168}
ports:
keys:
- center
- size
- output
- input
- localPosition
- localRotation
values:
- _fieldName: center
_node: {fileID: 1688561918610544374}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: size
_node: {fileID: 1688561918610544374}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: output
_node: {fileID: 1688561918610544374}
_typeQualifiedName: Chisel.Nodes.ChiselGraphNode+CSG, ChiselNode, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections:
- fieldName: input
node: {fileID: -6468980190964667538}
reroutePoints: []
_direction: 1
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: input
_node: {fileID: 1688561918610544374}
_typeQualifiedName: Chisel.Nodes.ChiselGraphNode+CSG, ChiselNode, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: localPosition
_node: {fileID: 1688561918610544374}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
- _fieldName: localRotation
_node: {fileID: 1688561918610544374}
_typeQualifiedName: UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
connections: []
_direction: 0
_connectionType: 0
_typeConstraint: 0
_dynamic: 0
localPosition: {x: 0, y: 0, z: 0}
localRotation: {x: 0, y: 0, z: 0}
operation: 0
center: {x: 0, y: 0, z: 0}
size: {x: 2, y: 2, z: 2}
8 changes: 8 additions & 0 deletions Assets/ChiselNodes/MySubGraph.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading