Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
# Load 3d models
iss_model.load
+ if iss_model.errors.not_empty then print_error iss_model.errors.join("\n")
# Setup cameras
world_camera.reset_height 60.0
world_camera.near = 0.1
world_camera.far = 100.0
- for model in models do model.load
- for texture in asset_textures_by_name.values do texture.load
+ for model in models do
+ model.load
+ if model.errors.not_empty then print_error model.errors.join("\n")
+ end
# Display the first model
model = models[model_index]
Ni 1.000000
d 1.000000
illum 2
-map_Kd textures/tread.jpg
+map_Kd textures/TTread.jpg
newmtl Treads
Ns 178.431373
show_splash_screen logo
# Load everything
- for model in models do model.load
- for texture in all_root_textures do texture.load
+ for texture in all_root_textures do
+ texture.load
+ var error = texture.error
+ if error != null then print_error error
+ end
+ for model in models do
+ model.load
+ if model.errors.not_empty then print_error model.errors.join("\n")
+ end
# Modify all textures so they have a higher ambient color
for model in models do