How can I load .obj files in the Soya3D engine?
Posted
by
John Riselvato
on Game Development
See other posts from Game Development
or by John Riselvato
Published on 2011-02-03T22:59:09Z
Indexed on
2014/08/18
22:34 UTC
Read the original article
Hit count: 236
3d-engines
|python
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...
© Game Development or respective owner