Browse Source

Merge pull request #10 from AtomicGameEngine/LME-ATOMIC-EXAMPLEUPDATES

Added crates and pallets to Roboman3D example. Updated Roboman's text…
JoshEngebretson 10 years ago
parent
commit
2dbd8ef4e2

+ 1 - 1
RoboMan3D/Resources/Models/Materials/Robot_01_mat.material

@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <material>
 	<technique name="Techniques/Diff.xml" quality="0" loddistance="0" />
-	<texture unit="diffuse" name="Textures/Robot_01_Diffuse.png" />
+	<texture unit="diffuse" name="Textures/AtomicRobot.png" />
 	<parameter name="UOffset" value="1 0 0 0" />
 	<parameter name="VOffset" value="0 1 0 0" />
 	<parameter name="MatDiffColor" value="0.8 0.8 0.8 1" />

+ 5 - 6
RoboMan3D/Resources/Prefabs/Crate.prefab

@@ -1,21 +1,20 @@
 <?xml version="1.0"?>
-<node id="425">
+<node id="448">
 	<attribute name="Is Enabled" value="true" />
 	<attribute name="Name" value="Crate" />
 	<attribute name="Position" value="0 0 0" />
 	<attribute name="Rotation" value="1 0 0 0" />
 	<attribute name="Scale" value="1 1 1" />
 	<attribute name="Variables" />
-	<component type="StaticModel" id="2024">
+	<component type="StaticModel" id="2402">
 		<attribute name="Model" value="Model;Cache/36ba46e851eaa3896f434f50d34cbda6.mdl" />
 		<attribute name="Material" value="Material;Models/Materials/Crate.Basic.material" />
 		<attribute name="Cast Shadows" value="true" />
 	</component>
-	<component type="CollisionShape" id="2025">
+	<component type="CollisionShape" id="2403">
 		<attribute name="Size" value="2 2 2" />
 	</component>
-	<component type="RigidBody" id="2026">
-		<attribute name="Physics Position" value="0 -2.65787 3.13939" />
-		<attribute name="Mass" value="5" />
+	<component type="RigidBody" id="2404">
+		<attribute name="Mass" value="1" />
 	</component>
 </node>

+ 5 - 6
RoboMan3D/Resources/Prefabs/Pallet.prefab

@@ -1,21 +1,20 @@
 <?xml version="1.0"?>
-<node id="3331">
+<node id="451">
 	<attribute name="Is Enabled" value="true" />
 	<attribute name="Name" value="Pallet" />
 	<attribute name="Position" value="0 0 0" />
 	<attribute name="Rotation" value="1 0 0 0" />
 	<attribute name="Scale" value="1 1 1" />
 	<attribute name="Variables" />
-	<component type="StaticModel" id="2168">
+	<component type="StaticModel" id="2405">
 		<attribute name="Model" value="Model;Cache/57fddae4d4352ac0b9c3036f28f9e62b.mdl" />
 		<attribute name="Material" value="Material;Models/Materials/Pallet.material" />
 		<attribute name="Cast Shadows" value="true" />
 	</component>
-	<component type="CollisionShape" id="2171">
-		<attribute name="Size" value="4 0.5 4" />
+	<component type="CollisionShape" id="2406">
+		<attribute name="Size" value="4.064 0.609602 4.8768" />
 	</component>
-	<component type="RigidBody" id="2172">
-		<attribute name="Physics Position" value="-6.54802 1.10328 6.034" />
+	<component type="RigidBody" id="2407">
 		<attribute name="Mass" value="1" />
 	</component>
 </node>

+ 0 - 49
RoboMan3D/Resources/Scenes/EmptyScene.scene

@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<scene id="1">
-	<attribute name="Name" value="" />
-	<attribute name="Time Scale" value="1" />
-	<attribute name="Smoothing Constant" value="50" />
-	<attribute name="Snap Threshold" value="5" />
-	<attribute name="Elapsed Time" value="0" />
-	<attribute name="Next Replicated Node ID" value="360" />
-	<attribute name="Next Replicated Component ID" value="1972" />
-	<attribute name="Next Local Node ID" value="16778496" />
-	<attribute name="Next Local Component ID" value="16777216" />
-	<attribute name="Variables" />
-	<attribute name="Variable Names" value="" />
-	<component type="PhysicsWorld" id="1" />
-	<component type="Octree" id="2" />
-	<component type="DebugRenderer" id="3" />
-	<node id="2">
-		<attribute name="Is Enabled" value="true" />
-		<attribute name="Name" value="Zone" />
-		<attribute name="Position" value="0 0 0" />
-		<attribute name="Rotation" value="1 0 0 0" />
-		<attribute name="Scale" value="1 1 1" />
-		<attribute name="Variables" />
-		<component type="Zone" id="4">
-			<attribute name="Bounding Box Min" value="-10000 -10000 -10000" />
-			<attribute name="Bounding Box Max" value="10000 10000 10000" />
-			<attribute name="Ambient Color" value="0.4 0.4 0.4 1" />
-		</component>
-	</node>
-	<node id="3">
-		<attribute name="Is Enabled" value="true" />
-		<attribute name="Name" value="GlobalLight" />
-		<attribute name="Position" value="0 0 0" />
-		<attribute name="Rotation" value="0.888074 0.325058 -0.325058 0" />
-		<attribute name="Scale" value="1 1 1" />
-		<attribute name="Variables" />
-		<component type="Light" id="5">
-			<attribute name="Light Type" value="Directional" />
-			<attribute name="Specular Intensity" value="1" />
-			<attribute name="Cast Shadows" value="true" />
-			<attribute name="CSM Splits" value="10 20 50 0" />
-			<attribute name="View Size Quantize" value="1" />
-			<attribute name="View Size Minimum" value="5" />
-			<attribute name="Depth Constant Bias" value="0.00025" />
-			<attribute name="Depth Slope Bias" value="0.001" />
-		</component>
-	</node>
-
-</scene>

+ 0 - 5
RoboMan3D/Resources/Scenes/EmptyScene.scene.asset

@@ -1,5 +0,0 @@
-{
-	"version": 1,
-	"guid": "937d43f30dd15e2581bac7095b19f77d",
-	"SceneImporter": {}
-}

+ 241 - 11
RoboMan3D/Resources/Scenes/Test.scene

@@ -5,8 +5,8 @@
 	<attribute name="Smoothing Constant" value="50" />
 	<attribute name="Snap Threshold" value="5" />
 	<attribute name="Elapsed Time" value="0" />
-	<attribute name="Next Replicated Node ID" value="432" />
-	<attribute name="Next Replicated Component ID" value="2040" />
+	<attribute name="Next Replicated Node ID" value="471" />
+	<attribute name="Next Replicated Component ID" value="2649" />
 	<attribute name="Next Local Node ID" value="16778496" />
 	<attribute name="Next Local Component ID" value="16777216" />
 	<attribute name="Variables" />
@@ -14,6 +14,7 @@
 	<component type="PhysicsWorld" id="1" />
 	<component type="Octree" id="2" />
 	<component type="DebugRenderer" id="3" />
+	<component type="Renderer2D" id="2045" />
 	<node id="2">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Zone" />
@@ -31,7 +32,7 @@
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="GlobalLight" />
 		<attribute name="Position" value="0 0 0" />
-		<attribute name="Rotation" value="0.888074 0.325058 -0.325058 0" />
+		<attribute name="Rotation" value="0.313506 0.889258 -0.110741 0.314117" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
 		<component type="Light" id="5">
@@ -55,9 +56,7 @@
 			<attribute name="Model" value="Model;Cache/15934bd919b214d7f7810775e5d852d3.mdl" />
 			<attribute name="Material" value="Material;Models/Materials/DefaultMaterial.material" />
 		</component>
-		<component type="CollisionShape" id="1974">
-			<attribute name="Size" value="50 1 50" />
-		</component>
+		<component type="CollisionShape" id="1974" />
 		<component type="RigidBody" id="1975">
 			<attribute name="Physics Position" value="0 -7.02201 0" />
 		</component>
@@ -65,7 +64,7 @@
 	<node id="386">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Robo_01" />
-		<attribute name="Position" value="0 -5.87418 0" />
+		<attribute name="Position" value="-1.18 -4.91 8.68" />
 		<attribute name="Rotation" value="1 0 0 0" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
@@ -76,8 +75,8 @@
 	<node id="407">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="MainCamera" />
-		<attribute name="Position" value="0 0 0" />
-		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Position" value="-0.92 -1.3 17.69" />
+		<attribute name="Rotation" value="-4.37114e-08 -0 -1 0" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
 		<component type="Camera" id="2004" />
@@ -85,7 +84,7 @@
 	<node id="422">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Crate" />
-		<attribute name="Position" value="0 -2.65787 3.13939" />
+		<attribute name="Position" value="-2.09 -5.11 -2.6" />
 		<attribute name="Rotation" value="1 0 0 0" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
@@ -96,7 +95,7 @@
 	<node id="429">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Crate" />
-		<attribute name="Position" value="7.6307 -2.65787 3.13939" />
+		<attribute name="Position" value="0.2 -5.11 -2.6" />
 		<attribute name="Rotation" value="1 0 0 0" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
@@ -104,4 +103,235 @@
 			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
 		</component>
 	</node>
+	<node id="435">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="2.47 -5.11 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2047">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="436">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="4.70119 -5.11 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2051">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="438">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-4.42 -5.11 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2065">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="439">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-4.42 -2.9 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2069">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="440">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-2.09 -2.9 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2073">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="441">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="0.2 -2.9 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2077">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="442">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="2.47 -2.9 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2081">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="444">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="0.2 -0.75 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2089">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="445">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-2.09 -0.75 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2093">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="446">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-4.42 -0.75 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2097">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="447">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-2.09 1.42 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2101">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="448">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-4.42 1.42 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2105">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="450">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Pallet" />
+		<attribute name="Position" value="8.54 -5.75 9.53" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2271">
+			<attribute name="PrefabGUID" value="9e1083378dc59da1d98981cf2acf9f7c" />
+		</component>
+	</node>
+	<node id="451">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Pallet" />
+		<attribute name="Position" value="-7.15 -4.32 -2.56" />
+		<attribute name="Rotation" value="0.632814 -0.315509 0.632814 0.315509" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2272">
+			<attribute name="PrefabGUID" value="9e1083378dc59da1d98981cf2acf9f7c" />
+		</component>
+	</node>
+	<node id="452">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Pallet" />
+		<attribute name="Position" value="7.66 -4.53 -2.36" />
+		<attribute name="Rotation" value="0.692911 0.140974 0.692911 -0.140974" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2276">
+			<attribute name="PrefabGUID" value="9e1083378dc59da1d98981cf2acf9f7c" />
+		</component>
+	</node>
+	<node id="464">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="8.56 -3.81 10.55" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2561">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="465">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="8.56 -3.81 8.52" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2565">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="466">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="8.56 -1.32 9.46" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2569">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="467">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-0.62 4.02 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2573">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="468">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-2.05 6.68 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2577">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
+	<node id="469">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Crate" />
+		<attribute name="Position" value="-5.68 4.02 -2.6" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="PrefabComponent" id="2581">
+			<attribute name="PrefabGUID" value="f28b0342cc83510cd46702d551c58f02" />
+		</component>
+	</node>
 </scene>

BIN
RoboMan3D/Resources/Textures/AtomicRobot.png


+ 5 - 0
RoboMan3D/Resources/Textures/AtomicRobot.png.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "118261830f9abdc818a05a9577822e58",
+	"TextureImporter": {}
+}