Skip to content

spacehare/spyro-blender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purpose

python scripts to

  • import OBJ files, that were exported from SpyroWorldViewer, into Blender
  • set-up vertex colors and organize the Objects/Meshes
  • use collections and view layers to help render the skies properly
  • batch render the skies as 6-sided cubemap skyboxes

here's a Google Sheet with all the data

other related links

example in-blender scripts

setup

run this from a new and empty blender file

from spyroboxes.do_everything import do_everything

path_obj_string = r"I:\Spyro\obj_files"

do_everything(
    should_setup=True, # initialize view layers, camera, compositor, renderer, etc
    mesh_folder_path=path_obj_string # where the OBJ files are located
)

render

run this after all the skies have been imported

from spyroboxes import batch
from spyroboxes import setup
from pathlib import Path

path_render = Path(r"I:\Spyro\skybox_renders")

setup.set_render_file_format('TARGA')
batch.render_all_skyboxes(path_render / 'tga', 1024)

setup.set_render_file_format('PNG')
batch.render_all_skyboxes(path_render / 'png', 1024)

yapping about dates

  • this project was initially attempted in 2023
    • and now, as of writing this, it is 2025-08
  • i have python scripts dated 2023-02-03 meant for playing around with BPY (Blender Python) and FBX stuff. and then i tried again in 2024.
  • my memory is a bit fuzzy... but i recall trying to use the FBX files by IAmKnotMax, but then wanting to just do all the importing myself instead.
  • in 2014-05-24, i took a bunch of screenshots inside of Spyro World Viewer.
  • i found a ZIP file with WAD files that i extracted myself from the game discs (labelled: "1 eng", "2 plat", "3 gh") dated 2016-09-30
    • the files inside of the ZIP file are dated 2015-01-06
  • the OBJ files that i am working with are also dated 2014-05-24. SpyroWorldViewer extracted these from the WAD files.

About

scripts for rendering spyro sky meshes into cubemaps

Resources

License

Stars

Watchers

Forks

Contributors

Languages