How can I load .obj files in the Soya3D engine?
- by John Riselvato
I recently just found soya3d. I want to import .obj files, but it seems to only accept .data files. How can I import .obj files?
Importing a .obj file named "house" produces this error:
Traceback (most recent call last):
File "introduction.py", line 7, in <module>
model = soya.Model.get("house")
File "/usr/lib/pymodules/python2.6/soya/__init__.py", line 259, in get
return klass._alls.get(filename) or klass._alls.setdefault(filename, klass.load(filename))
File "/usr/lib/pymodules/python2.6/soya/__init__.py", line 268, in load
dirname = klass._get_directory_for_loading_and_check_export(filename)
File "/usr/lib/pymodules/python2.6/soya/__init__.py", line 194, in _get_directory_for_loading_and_check_export
dirname = klass._get_directory_for_loading(filename, ext)
File "/usr/lib/pymodules/python2.6/soya/__init__.py", line 171, in _get_directory_for_loading
raise ValueError("Cannot find a %s named %s!" % (klass, filename))
ValueError: Cannot find a <class 'soya.Model'> named house!
* Soya3D * Quit...