From a7d2f50faa16a23fe6365d4f08e119e016b14f28 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 6 Sep 2022 22:45:53 +0200 Subject: [PATCH] Added a scene for a Boar. --- game/models/entities/boar/Boar.tscn | 61 ++++++++++++++++++ game/models/entities/boar/boar_fur.tres | 47 ++++++++++++++ game/models/entities/boar/boar_fur_albedo.png | Bin 0 -> 3575 bytes .../entities/boar/boar_fur_albedo.png.import | 35 ++++++++++ game/models/entities/boar/lower_leg.tres | 6 ++ 5 files changed, 149 insertions(+) create mode 100644 game/models/entities/boar/Boar.tscn create mode 100644 game/models/entities/boar/boar_fur.tres create mode 100644 game/models/entities/boar/boar_fur_albedo.png create mode 100644 game/models/entities/boar/boar_fur_albedo.png.import create mode 100644 game/models/entities/boar/lower_leg.tres diff --git a/game/models/entities/boar/Boar.tscn b/game/models/entities/boar/Boar.tscn new file mode 100644 index 00000000..a20fbbd3 --- /dev/null +++ b/game/models/entities/boar/Boar.tscn @@ -0,0 +1,61 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://models/entities/boar/lower_leg.tres" type="MeshDataResource" id=1] +[ext_resource path="res://models/entities/boar/boar_fur_albedo.png" type="Texture" id=2] +[ext_resource path="res://worlds/test_world/environments/default_env.tres" type="Environment3D" id=4] +[ext_resource path="res://textures/world/grass/grass_albedo.png" type="Texture" id=5] + +[sub_resource type="SpatialMaterial" id=5] +flags_vertex_lighting = true +albedo_color = Color( 0.145098, 0.145098, 0.145098, 1 ) +albedo_texture = ExtResource( 2 ) + +[sub_resource type="CubeMesh" id=2] +size = Vector3( 1, 1, 1 ) + +[sub_resource type="CubeMesh" id=3] +size = Vector3( 4, 1, 4 ) + +[sub_resource type="SpatialMaterial" id=4] +flags_vertex_lighting = true +albedo_color = Color( 0.145098, 0.145098, 0.145098, 1 ) +albedo_texture = ExtResource( 5 ) + +[node name="Boar" type="Spatial"] + +[node name="LowerLeg" type="MeshDataInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0645008, 0, -0.820011 ) +mesh_data = ExtResource( 1 ) +texture = ExtResource( 2 ) +material = SubResource( 5 ) + +[node name="DirectionalLight" type="DirectionalLight" parent="."] +transform = Transform( 0.727426, 0.542714, -0.419896, -0.662594, 0.71463, -0.224217, 0.178385, 0.441322, 0.87944, -7.56755, -7.92697, 7.18822 ) +light_energy = 6.714 + +[node name="DirectionalLight2" type="DirectionalLight" parent="."] +transform = Transform( 0.804894, 0.467212, 0.365867, 0, -0.616541, 0.787323, 0.593419, -0.633711, -0.49625, 7.6211, 4.52883, -8.65958 ) +light_energy = 6.714 + +[node name="FullPreview" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.87249, 0, 0 ) +__meta__ = { +"_editor_description_": "Z+ -> Front" +} + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.45079, 0.5, -5.56819 ) +mesh = SubResource( 2 ) + +[node name="MeshInstance2" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.69456, -0.5, 0.0802026 ) +mesh = SubResource( 3 ) +material/0 = SubResource( 4 ) + +[node name="MeshInstance3" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.31501, -0.5, -1.17679 ) +mesh = SubResource( 3 ) +material/0 = SubResource( 4 ) + +[node name="WorldEnvironment3D" type="WorldEnvironment3D" parent="."] +environment = ExtResource( 4 ) diff --git a/game/models/entities/boar/boar_fur.tres b/game/models/entities/boar/boar_fur.tres new file mode 100644 index 00000000..2b6d3ccc --- /dev/null +++ b/game/models/entities/boar/boar_fur.tres @@ -0,0 +1,47 @@ +[gd_resource type="MMMaterial" load_steps=8 format=2] + +[sub_resource type="MMNodeUniversalProperty" id=8] +default_type = 5 +output_slot_type = 0 + +[sub_resource type="MMFbmNoise" id=9] +graph_position = Vector2( 20, 60 ) +output_properties = [ SubResource( 8 ) ] +image = SubResource( 8 ) +type = 1 +scale = Vector2( 5, 5 ) + +[sub_resource type="MMNodeUniversalProperty" id=10] +default_type = 5 +output_slot_type = 0 + +[sub_resource type="MMNodeUniversalProperty" id=11] +default_type = 1 +default_float = 1.0 +input_slot_type = 6 +slot_name = ">>> Input1 " +input_property = SubResource( 8 ) + +[sub_resource type="MMColorize" id=12] +graph_position = Vector2( 280, 80 ) +input_properties = [ SubResource( 11 ) ] +output_properties = [ SubResource( 10 ) ] +points = PoolRealArray( 0, 0.0390625, 0.0239754, 0.00457764, 1, 0.135593, 0, 0, 0, 1, 0.338983, 0.0351562, 0.0236807, 0.00892639, 1, 1, 0.15625, 0.0926876, 0.0250244, 1 ) +image = SubResource( 10 ) +input = SubResource( 11 ) + +[sub_resource type="MMNodeUniversalProperty" id=13] +default_type = 5 +input_slot_type = 6 +slot_name = "image" +input_property = SubResource( 10 ) + +[sub_resource type="MMOutputImage" id=14] +graph_position = Vector2( 620, 140 ) +input_properties = [ SubResource( 13 ) ] +image = SubResource( 13 ) +postfix = "_albedo" + +[resource] +image_size = Vector2( 64, 64 ) +nodes = [ SubResource( 9 ), SubResource( 12 ), SubResource( 14 ) ] diff --git a/game/models/entities/boar/boar_fur_albedo.png b/game/models/entities/boar/boar_fur_albedo.png new file mode 100644 index 0000000000000000000000000000000000000000..2008d1eae2ffdc5da605aad94d60b7ae342742a3 GIT binary patch literal 3575 zcmVPx?u}MThRCt_qn{AftI;uni*|$gXhVkY_p&AF}*R>6_=N z*ps~@G~(#s`$tG0#+-Ss`T3VZTafy0CHq2|4QkL{TXc+WnZ#dQ=k2PwB^mHLpG&1? zED#(X_THBsb73wEyoaP=EQ76IAZUT$XDuHOd%`E_pC@YU*J#O>q9tHqBQ`H2CF#rD zt{4Tvh&a}|@1IAiVN2x!dTNJ4z>*b$Q3{W7ls9h>D1-VLIOsCxy7m_0I&MlgB7)_L z+xiA;j3wBx)grn#?ExK5w$6y9>@&8~Fo3RS1?B19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agAqL_(DZ>Z@%*k zSBo{j#{x(Ommd486ef%RT1P`^ek%9&Ij?C|X{i;f+ABeOMk{@F;_z1)i-`jk`*$zz zo-Ht!)l8cPh7A=sNBc4)y=FvKgf3?MX_xoTszES{cS^EHSkP}Cc4w+$xK!|1Yid_bX^pgP3o8vW*l56T1- z|7MmKRCYj^6`mI;T%|t4l^_G)?qa_KcmU^4wo`tQpkZMr_rj#R8UU*1C(7i1x9P@CEv*LdbZ{rWpWtki zH2{Fyy-CmclerYj-Gz$K+HmQ>|3$bXq?fG8*rn@o!@-IGv#RxTb|LGS+1PmraoSSs z5>-0h)_U~2>swqDotNg;AR?-Wea30B93fU+F;jX^A-@$6Tm~j1=i8mVRr6mX{{2sCD zgI~ps&idV+H6Fa+tP}TNp3gtZ5|J>tAbQY+vG?4|Vn0JJI`0QS89($h&+mIjIJEZO zYnizp9wRirUkJ3tk(ab35ax8@(^h;Ce9pryT)$*y?NQXm>K>HR*da~U?`#SAO#VTL z(0&~a$XV%HVdWvRdMi_#m=NCztlr`eMKMO}3+xGf>)pX}2(@mt4F(?b9QLm22wCxa zb>~p9@N`$YlK_^-VX6Xa$dDnPK=hePkY0!sP zrY)=ifv$e==36V z!sf|Tj5xfJC*!bQX^SqcFnH~bPxL0jZ50ddoJypPe1*)m%tu8q2A9WHs(3BW4#5Z!{!nZGK`UqQW(wks_YZFIdP{TH@YMXp1;tR(;d002ovPDHLkV1k?K2L}KE literal 0 HcmV?d00001 diff --git a/game/models/entities/boar/boar_fur_albedo.png.import b/game/models/entities/boar/boar_fur_albedo.png.import new file mode 100644 index 00000000..97bee2d6 --- /dev/null +++ b/game/models/entities/boar/boar_fur_albedo.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/boar_fur_albedo.png-9c4a6c63e5f9c7cf567b3651daba70e8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://models/entities/boar/boar_fur_albedo.png" +dest_files=[ "res://.import/boar_fur_albedo.png-9c4a6c63e5f9c7cf567b3651daba70e8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=1 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=false +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/game/models/entities/boar/lower_leg.tres b/game/models/entities/boar/lower_leg.tres new file mode 100644 index 00000000..05fbda7b --- /dev/null +++ b/game/models/entities/boar/lower_leg.tres @@ -0,0 +1,6 @@ +[gd_resource type="MeshDataResource" format=2] + +[resource] +array = [ PoolVector3Array( -0.0457141, 0.00714293, 0.05, -0.0457141, 0.507143, 0.05, 0.0542858, 0.507143, 0.05, 0.0542858, 0.00714293, 0.05, -0.0457141, 0.00714293, -0.05, -0.0457141, 0.507143, -0.05, 0.0542858, 0.507143, -0.05, 0.0542858, 0.00714293, -0.05, -0.0457141, 0.507143, 0.05, 0.0542858, 0.507143, 0.05, 0.0542858, 0.507143, 0.05, -0.0457141, 0.507143, -0.05, 0.0542858, 0.507143, -0.05, 0.0542858, 0.507143, -0.05 ), PoolVector3Array( 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, -1, 0, 0, -1 ), null, null, PoolVector2Array( 0.544258, 0.5, 0.986842, 0.5, 0.986842, 0.58114, 0.544258, 0.58114, 0.455742, 0.5, 0.0131579, 0.5, 0.0131579, 0.58114, 0.455742, 0.58114, 0.544259, 0.0942983, 0.544258, 0.986842, 0.544258, 0.013158, 0.455742, 0.0942983, 0.455742, 0.986842, 0.455742, 0.0131579 ), null, null, null, PoolIntArray( 0, 1, 2, 2, 3, 0, 4, 6, 5, 4, 7, 6, 3, 9, 12, 12, 7, 3, 0, 11, 8, 0, 4, 11, 8, 11, 13, 13, 10, 8, 0, 7, 4, 0, 3, 7 ) ] +aabb = AABB( -0.0457141, 0.00714293, 0, 0.0999999, 0.5, 0 ) +seams = PoolIntArray( 2, 6, 2, 3, 6, 7, 4, 5, 0, 1, 5, 6, 1, 2 )