Skip to content
Snippets Groups Projects
Commit 993d0354 authored by Paul Tvete's avatar Paul Tvete
Browse files

Fix transformations when instancing

parent 82ad4875
No related branches found
No related tags found
1 merge request!1Fix transformations when instancing
......@@ -226,6 +226,7 @@ Model {
scale: Qt.vector3d(0.2, 0.2, 0.2)
source: "meshes/city100.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
house_material,
propeller_material,
......@@ -254,6 +255,7 @@ Model {
eulerRotation.y: rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -268,6 +270,7 @@ Model {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -282,6 +285,7 @@ Model {
eulerRotation.y: rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -296,6 +300,7 @@ Model {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......
......@@ -53,6 +53,7 @@ Node {
scale: Qt.vector3d(0.5, 0.5, 0.5)
eulerRotation.x: 90
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
smallMachine_material
]
......@@ -73,6 +74,7 @@ Node {
eulerRotation.x: 90
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -88,6 +90,7 @@ Node {
eulerRotation.x: 90
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -103,6 +106,7 @@ Node {
eulerRotation.x: 90
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -118,6 +122,7 @@ Node {
eulerRotation.x: 90
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......
......@@ -32,6 +32,7 @@ Node {
eulerRotation.z: rootNode.gearRotation + 25
source: "meshes/gear.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
parts_material
]
......@@ -45,6 +46,7 @@ Node {
eulerRotation.y: rootNode.gearRotation
source: "meshes/gear.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
parts_material
]
......@@ -56,6 +58,7 @@ Node {
eulerRotation.y: -rootNode.gearRotation
source: "meshes/gear.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
parts_material
]
......
......@@ -226,6 +226,7 @@ Node {
scale: Qt.vector3d(0.2, 0.2, 0.2)
source: "meshes/city500.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
house_material,
propeller_material,
......@@ -254,6 +255,7 @@ Node {
eulerRotation.y: rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -268,6 +270,7 @@ Node {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -282,6 +285,7 @@ Node {
eulerRotation.y: rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -296,6 +300,7 @@ Node {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......
......@@ -226,6 +226,7 @@ Node {
scale: Qt.vector3d(0.2, 0.2, 0.2)
source: "meshes/city50.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
house_material,
power_material,
......@@ -253,6 +254,7 @@ Node {
eulerRotation.x: 90
eulerRotation.y: rootNode_1.propellerRotation
instancing: rootNode.instancing
instanceRoot: rootNode
source: "meshes/propeller.mesh"
materials: [
propeller_material
......@@ -268,6 +270,7 @@ Node {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -282,6 +285,7 @@ Node {
eulerRotation.y: rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......@@ -296,6 +300,7 @@ Node {
eulerRotation.y: -rootNode_1.propellerRotation
source: "meshes/propeller.mesh"
instancing: rootNode.instancing
instanceRoot: rootNode
materials: [
propeller_material
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment