Test commit

This commit is contained in:
Paul Black 2022-03-24 17:02:53 -06:00
parent 4d720f4172
commit 8071d1cf93
38 changed files with 2796 additions and 1 deletions

0
2D Art/Cursor/Cursor.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 602 B

After

Width:  |  Height:  |  Size: 602 B

0
2D Art/Cursor/Cursor.png.import Normal file → Executable file
View file

0
2D Art/Software Splashes/Blender.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

0
2D Art/Software Splashes/Blender.png.import Normal file → Executable file
View file

0
2D Art/Software Splashes/Godot.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

0
2D Art/Software Splashes/Godot.png.import Normal file → Executable file
View file

0
2D Art/Software Splashes/Maya.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
2D Art/Software Splashes/Maya.png.import Normal file → Executable file
View file

0
2D Art/Software Splashes/skillsUSA.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

0
2D Art/Software Splashes/skillsUSA.png.import Normal file → Executable file
View file

0
2D Art/Splash Screen/Tank Blaster Splash.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

0
2D Art/Splash Screen/Tank Blaster Splash.png.import Normal file → Executable file
View file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 MiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/SC Texture .bmp-4c52b9110c3c73ec839bc76234cff4f6.s3tc.stex"
path.etc2="res://.import/SC Texture .bmp-4c52b9110c3c73ec839bc76234cff4f6.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://Objects/Super-Computer/SC Texture .bmp"
dest_files=[ "res://.import/SC Texture .bmp-4c52b9110c3c73ec839bc76234cff4f6.s3tc.stex", "res://.import/SC Texture .bmp-4c52b9110c3c73ec839bc76234cff4f6.etc2.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=1
process/fix_alpha_border=true
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

View file

@ -0,0 +1,20 @@
[remap]
importer="wavefront_obj"
type="Mesh"
path="res://.import/Super camputer (1).obj-7fec69c91ea9a4a201a6beba93a095f8.mesh"
[deps]
files=[ "res://.import/Super camputer (1).obj-7fec69c91ea9a4a201a6beba93a095f8.mesh" ]
source_file="res://Objects/Super-Computer/Super camputer (1).obj"
dest_files=[ "res://.import/Super camputer (1).obj-7fec69c91ea9a4a201a6beba93a095f8.mesh", "res://.import/Super camputer (1).obj-7fec69c91ea9a4a201a6beba93a095f8.mesh" ]
[params]
generate_tangents=true
scale_mesh=Vector3( 1, 1, 1 )
offset_mesh=Vector3( 0, 0, 0 )
octahedral_compression=true
optimize_mesh_flags=4286

View file

@ -0,0 +1,11 @@
# Max2Mtl Version 4.0 Mar 10th, 2001
#
newmtl 01_-_Default
Ka 0.6 0.6 0.6
Kd 0.6 0.6 0.6
Ks 0.9 0.9 0.9
d 1.0
Ns 0.0
illum 2
#
# EOF

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,352 @@
# Blender 3.1.0 MTL File: 'Tutorial_blender.blend'
# www.blender.org
newmtl Bunker_top1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Bunker_UV_texture1.tif
newmtl Concrete_Wall_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Concrete_wall_1.tif
newmtl Crate_camo_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Fabric_Camouflage2_1K_albedo.tif
newmtl Crates
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd crate_UV_1.tx
newmtl Fence_front_2:aiStandardSurface1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl Fence_front_3:aiStandardSurface1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl Floor1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Floor_1.tif
newmtl Floor_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Roofing_MetalHexagon_1K_albedo.tif
newmtl Garage_Door
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Roofing_MetalHexagon_1K_albedo.tif
newmtl Garage_Wall_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Floor_1.tif
newmtl Garage_caution
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
newmtl Garage_floor2
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Metal_Threadplate2_1K_albedo.tif
newmtl Garage_pillar1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Tank_project/assets/textures/TexturesCom_MetalSheet_Aged_1K_albedo.tif
newmtl Garage_ramp1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Floor_1.tif
newmtl Garage_round1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
newmtl Hut_gat1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Fabric_Camouflage2_1K_albedo.tif
newmtl Shooting_range1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Wall_practice_range_2.tif
newmtl Tower_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface17
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface19
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface20
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface22
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Metal_Threadplate2_1K_albedo.tif
newmtl aiStandardSurface23
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface26
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd concrete_game.jpg
newmtl aiStandardSurface27
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Arm_UV_texutre1.tif
newmtl aiStandardSurface28
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Metal_Galvanized_1K_albedo.tif
newmtl aiStandardSurface29
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Asphalt_Base17_2x2_1K_albedo.tif
newmtl crate_box_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd crate_UV_1.tx
newmtl flag_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Tank_project/assets/textures/Flag_UV_textures1.tif
newmtl floorrrr:aiStandardSurface9
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Concrete_Closeup_1K_albedo.tif
newmtl generator_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Generator_UV_textures.tif
newmtl teleporter_stand_1
Ns 200.000000
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd TexturesCom_Metal_Threadplate2_1K_albedo.tif

View file

@ -0,0 +1,20 @@
[remap]
importer="wavefront_obj"
type="Mesh"
path="res://.import/Tutorial_blender.obj-a2751f4dc816471460f14a24b48caa0a.mesh"
[deps]
files=[ "res://.import/Tutorial_blender.obj-a2751f4dc816471460f14a24b48caa0a.mesh" ]
source_file="res://Objects/Tutorial-map/Tutorial_blender.obj"
dest_files=[ "res://.import/Tutorial_blender.obj-a2751f4dc816471460f14a24b48caa0a.mesh", "res://.import/Tutorial_blender.obj-a2751f4dc816471460f14a24b48caa0a.mesh" ]
[params]
generate_tangents=true
scale_mesh=Vector3( 1, 1, 1 )
offset_mesh=Vector3( 0, 0, 0 )
octahedral_compression=true
optimize_mesh_flags=4286

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Objects/Tutorial-map/Tutorial_blender.glb" type="PackedScene" id=1]
[ext_resource path="res://Objects/Super-Computer/Super-Computer.dae" type="PackedScene" id=29]
[node name="tutorial_level" type="Spatial"]
[node name="Super-Computer" parent="." instance=ExtResource( 29 )]
transform = Transform( 0.00255281, 0, 0, 0, 0.00255281, 0, 0, 0, 0.00255281, -3.0066, 0, -6.26181 )
[node name="Tutorial_blender" parent="." instance=ExtResource( 1 )]

0
README.md Normal file → Executable file
View file

View file

@ -0,0 +1,11 @@
import bpy
import sys
i = 0
while sys.argv[i] != "--":
i += 1
# Doc can be found here: https://docs.blender.org/api/current/bpy.ops.export_scene.html
bpy.ops.export_scene.gltf(filepath=sys.argv[i + 1],
export_apply=(sys.argv[i + 2] == "True"),
export_format='GLB')

View file

@ -0,0 +1,69 @@
tool
extends EditorImportPlugin
enum Preset {
Default
}
func get_importer_name():
return "antonWetzel.blenderImporter"
func get_visible_name():
return "Blender Importer"
func get_recognized_extensions():
return ["blend"]
func get_save_extension():
return "scn"
func get_resource_type():
return "PackedScene"
func get_option_visibility(option, options):
return true
func get_preset_count():
return Preset.size()
func get_preset_name(preset):
match preset:
Preset.Default:
return "Default"
_:
return "Unknown"
func get_import_order():
return IMPORT_ORDER_SCENE
func get_import_options(preset):
match preset:
Preset.Default:
return [{
"name": "apply_modifiers",
"default_value": true,
}]
_:
return []
func import(source_file, save_path, options, platform_variants, gen_files):
var temp_path = source_file.replace(".blend", ".glb")
var global_path = ProjectSettings.globalize_path(source_file)
var global_path_base = global_path.replace(".blend", "");
var python_file = ProjectSettings.globalize_path("res://addons/blender_importer/export_gltf.py")
var ret = OS.execute("blender", [
global_path,
"--background",
"--python", python_file,
"--",
global_path_base,
options["apply_modifiers"],
])
if ret != OK:
push_warning("Is blender avaible in path?")
return ERR_BUG
var temp = PackedSceneGLTF.new().import_gltf_scene(temp_path)
var packed_scene = PackedScene.new()
packed_scene.pack(temp)
Directory.new().remove(temp_path)
return ResourceSaver.save(save_path + "." + get_save_extension(), packed_scene)

View file

@ -0,0 +1,7 @@
[plugin]
name="Blender Importer"
description="Convert *.blend files to native scenes"
author="Anton Wetzel"
version="1.0"
script="plugin.gd"

View file

@ -0,0 +1,12 @@
tool
extends EditorPlugin
var importer
func _enter_tree():
importer = preload("./importer.gd").new()
add_import_plugin(importer)
func _exit_tree():
remove_import_plugin(importer)
importer = null

0
clickable.json Normal file → Executable file
View file

0
default_env.tres Normal file → Executable file
View file

0
export_presets.cfg Normal file → Executable file
View file

0
icon.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

0
icon.png.import Normal file → Executable file
View file

2
project.godot Normal file → Executable file
View file

@ -38,7 +38,7 @@ mouse_cursor/custom_image="res://2D Art/Cursor/Cursor.png"
[editor_plugins] [editor_plugins]
enabled=PoolStringArray( "res://addons/mixing-desk/plugin.cfg" ) enabled=PoolStringArray( "res://addons/blender_importer/plugin.cfg", "res://addons/mixing-desk/plugin.cfg" )
[gdnative] [gdnative]