Skip to content

Commit

Permalink
Imported 3d models
Browse files Browse the repository at this point in the history
  • Loading branch information
manforowicz committed Apr 25, 2023
1 parent c33fd44 commit 3e75320
Show file tree
Hide file tree
Showing 20 changed files with 337 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Godot 4+ specific ignores
.godot/
40 changes: 40 additions & 0 deletions cube_sat.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[gd_scene load_steps=7 format=3 uid="uid://b7cygqcjty0y4"]

[ext_resource type="PackedScene" uid="uid://dxic8waqchc3t" path="res://models/base.glb" id="1_jxnbk"]
[ext_resource type="PackedScene" uid="uid://dkc3ycisdan1s" path="res://models/wheel1.glb" id="2_7bbpg"]
[ext_resource type="PackedScene" uid="uid://wyem8uhw5svt" path="res://models/wheel2.glb" id="3_i4bun"]
[ext_resource type="Script" path="res://wheel.gd" id="3_k8xaf"]
[ext_resource type="PackedScene" uid="uid://bt08pw46fj85o" path="res://models/wheel3.glb" id="4_fogof"]
[ext_resource type="PackedScene" uid="uid://4d82d6kch12" path="res://models/wheel4.glb" id="5_s3a6f"]

[node name="CubeSat" type="Node3D"]

[node name="base" parent="." instance=ExtResource("1_jxnbk")]

[node name="wheel1_s" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.848048, -0.529919, 0, 0.529919, 0.848048, -1.2615, 1.4606, 0.319901)
script = ExtResource("3_k8xaf")

[node name="wheel1" parent="wheel1_s" instance=ExtResource("2_7bbpg")]
transform = Transform3D(1, 0, 0, 0, 0.848048, 0.529919, 0, -0.529919, 0.848048, 1.2615, -1.40818, 0.502707)

[node name="wheel2_s" type="Node3D" parent="."]
transform = Transform3D(-4.37114e-08, 0.529919, 0.848048, 0, 0.848048, -0.529919, -1, -2.31635e-08, -3.70694e-08, 0.31072, 1.46108, 1.26162)
script = ExtResource("3_k8xaf")

[node name="wheel2" parent="wheel2_s" instance=ExtResource("3_i4bun")]
transform = Transform3D(-4.37114e-08, 0, -1, 0.529919, 0.848048, -2.31635e-08, 0.848048, -0.529919, -3.70694e-08, 1.26162, -1.40373, 0.51075)

[node name="wheel3_s" type="Node3D" parent="."]
transform = Transform3D(-1, 4.6327e-08, 7.41387e-08, 0, 0.848048, -0.529919, -8.74228e-08, -0.529919, -0.848048, 1.2626, 1.45715, -0.320415)
script = ExtResource("3_k8xaf")

[node name="wheel3" parent="wheel3_s" instance=ExtResource("4_fogof")]
transform = Transform3D(-1, 0, -8.74228e-08, 4.6327e-08, 0.848048, -0.529919, 7.41387e-08, -0.529919, -0.848048, 1.2626, -1.40553, 0.500446)

[node name="wheel4_s" type="Node3D" parent="."]
transform = Transform3D(-4.37114e-08, -0.529919, -0.848048, 0, 0.848048, -0.529919, 1, -2.31635e-08, -3.70694e-08, -0.324512, 1.4571, -1.25987)
script = ExtResource("3_k8xaf")

[node name="wheel4" parent="wheel4_s" instance=ExtResource("5_s3a6f")]
transform = Transform3D(-4.37114e-08, 0, 1, -0.529919, 0.848048, -2.31635e-08, -0.848048, -0.529919, -3.70694e-08, 1.25987, -1.40766, 0.496943)
1 change: 1 addition & 0 deletions icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c5s0xncdklg4s"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
Binary file added models/base.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions models/base.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dxic8waqchc3t"
path="res://.godot/imported/base.glb-1fa5498bc17a1dec9a5ecd7870ae903f.scn"

[deps]

source_file="res://models/base.glb"
dest_files=["res://.godot/imported/base.glb-1fa5498bc17a1dec9a5ecd7870ae903f.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Binary file added models/starmap_8k.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions models/starmap_8k.jpg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bticauqhtnqoi"
path.s3tc="res://.godot/imported/starmap_8k.jpg-2bdbfe63fb2ef2d954460a04c5952c95.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}

[deps]

source_file="res://models/starmap_8k.jpg"
dest_files=["res://.godot/imported/starmap_8k.jpg-2bdbfe63fb2ef2d954460a04c5952c95.s3tc.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0
Binary file added models/wheel1.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions models/wheel1.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dkc3ycisdan1s"
path="res://.godot/imported/wheel1.glb-fb9a1523592bc6ff425a9bddbec6264c.scn"

[deps]

source_file="res://models/wheel1.glb"
dest_files=["res://.godot/imported/wheel1.glb-fb9a1523592bc6ff425a9bddbec6264c.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Binary file added models/wheel2.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions models/wheel2.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://wyem8uhw5svt"
path="res://.godot/imported/wheel2.glb-1e594c9f3a30babc3a170f06c56908f7.scn"

[deps]

source_file="res://models/wheel2.glb"
dest_files=["res://.godot/imported/wheel2.glb-1e594c9f3a30babc3a170f06c56908f7.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Binary file added models/wheel3.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions models/wheel3.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://bt08pw46fj85o"
path="res://.godot/imported/wheel3.glb-15714a2df3ea54eb49c8b09cb357819f.scn"

[deps]

source_file="res://models/wheel3.glb"
dest_files=["res://.godot/imported/wheel3.glb-15714a2df3ea54eb49c8b09cb357819f.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
Binary file added models/wheel4.glb
Binary file not shown.
32 changes: 32 additions & 0 deletions models/wheel4.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://4d82d6kch12"
path="res://.godot/imported/wheel4.glb-ca60f893f6bb6e66fb05708541d94425.scn"

[deps]

source_file="res://models/wheel4.glb"
dest_files=["res://.godot/imported/wheel4.glb-ca60f893f6bb6e66fb05708541d94425.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/embedded_image_handling=1
16 changes: 16 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters

config_version=5

[application]

config/name="Reaction Wheels"
run/main_scene="res://world.tscn"
config/features=PackedStringArray("4.0", "Forward Plus")
config/icon="res://icon.svg"
17 changes: 17 additions & 0 deletions wheel.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends Node3D

@export var axis: Vector3
const angle: float = deg_to_rad(32)

# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
animate()


func animate():
rotate_object_local(Vector3(0, 0, 1), 0.05)
27 changes: 27 additions & 0 deletions world.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[gd_scene load_steps=6 format=3 uid="uid://dfyqnvtu6mank"]

[ext_resource type="Texture2D" uid="uid://bticauqhtnqoi" path="res://models/starmap_8k.jpg" id="1_wj1c1"]
[ext_resource type="PackedScene" uid="uid://b7cygqcjty0y4" path="res://cube_sat.tscn" id="2_w2af2"]

[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_tvcqa"]
panorama = ExtResource("1_wj1c1")

[sub_resource type="Sky" id="Sky_cwi6a"]
sky_material = SubResource("PanoramaSkyMaterial_tvcqa")

[sub_resource type="Environment" id="Environment_crkvp"]
background_mode = 2
sky = SubResource("Sky_cwi6a")

[node name="World" type="WorldEnvironment"]
environment = SubResource("Environment_crkvp")

[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.861594, 0.507599, 0, -0.507599, 0.861594, 0, 2.73016, 4.33441)
current = true

[node name="CubeSat" parent="." instance=ExtResource("2_w2af2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.0125639)

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.83022, 0)

0 comments on commit 3e75320

Please sign in to comment.