View Single Post
  #2  
Old 05-18-2010, 01:07 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Nice work.

Quote:
Originally Posted by zeiksz View Post
my next move is to make actors work
I assume you already have a copy of Windcatcher's great .WLD reference:

http://ignum.dl.sourceforge.net/proj...1.1/wlddoc.pdf

I spent several weeks, a couple of years ago, looking at NPC models in .S3D files and wrote a python program to animate them.

http://www.rama.demon.co.uk/s3danim/s3d.py

And a required include file:

http://www.rama.demon.co.uk/s3danim/eqglib.py

The python script has many dependencies, OpenGL, pygame, and other assorted modules, plus my python code is horrible, as all I was really doing was trying to figure things out rather than write nice code.

That being said, assuming you have Python and all the dependent modules installed, that script will animate Nagafen.



You will need to edit the file to point to where your arena_chr.s3d file is located. Search for this line and edit as appropriate:
Code:
S3DFile = "M:\\Titanium\\arena_chr.s3d"
Once you execute it and the static model of Nagafen appears, just press the V or B keys to cycle through each of his animations (attacking, dying, walking etc).

As I said, the code is horrible, but at least it might help a little in your project. If you have any questions about the code, I probably won't be able to help much as I haven't looked at it in 2 years, and while I understood how it all worked at the time, I can't remember anything about it now
Reply With Quote