AWD2 status?

Software: Away3D 4.x

Avatar
Choons, Sr. Member
Posted: 10 August 2011 06:54 PM   Total Posts: 281   [ # 16 ]

Hey Richard- I just tried to set up a Tortoise SVN checkout but am getting not allowed errors. Can you set that up to be a read only check out so I can keep up with the changes?

   

Avatar
Choons, Sr. Member
Posted: 10 August 2011 07:15 PM   Total Posts: 281   [ # 17 ]

UPDATE- I made a server side clone (that’s a pretty neat feature) and realized I needed Mercurial so got that and have it working now. I’ll post back soon with how it’s going

   

Avatar
Choons, Sr. Member
Posted: 11 August 2011 09:01 PM   Total Posts: 281   [ # 18 ]

VC++ 2010 seems to be a huge mess even trying just to build pcbuild.sln. Falling back to VC++ 2008. Way to go Microsoft

   

Avatar
Choons, Sr. Member
Posted: 11 August 2011 11:28 PM   Total Posts: 281   [ # 19 ]

I managed to get Python to build by removing bz2, _tkinter, _ssl, and _sqlite3
and also had to remove the _hashlib module. I used Python 3.2.1 and in PCBuild there is a lib file now called python32_d.lib which I am hoping is the one that should have been generated.

I moved on to compiling the AWD SDK with sdk.sln. It built the libawd with 20 warnings about things like warning C4267: ‘=’ : conversion from ‘size_t’ to ‘int’, possible loss of data but no errors.

The pyawd compile failed with these errors

python-pyawd\src\cio.cc(70) : error C3861: ‘Py_InitModule’: identifier not found

python-pyawd\src\prepattr.cc(31) : error C3861: ‘PyString_Check’: identifier not found

python-pyawd\src\prepmaterial.cc(40) : error C3861: ‘PyInt_Check’: identifier not found

python-pyawd\src\prepmaterial.cc(41) : error C3861: ‘PyInt_AsLong’: identifier not found

python-pyawd\src\util.cc(18) : error C3861: ‘PyNumber_Int’: identifier not found

python-pyawd\src\util.cc(37) : error C3861: ‘PyString_AsString’: identifier not found

python-pyawd\src\util.cc(38) : error C3861: ‘PyString_Size’: identifier not found

   

Avatar
Ringo Blanken, Administrator
Posted: 12 August 2011 07:20 AM   Total Posts: 120   [ # 20 ]

Just gave it a try in VC++2010 and getting errors like:
Error 9 error C3861: ‘Py_InitModule’: identifier not found
Error 2 error C3861: ‘PyInt_AsLong’: identifier not found
Error 7 error C3861: ‘PyString_Check’: identifier not found

What Python version are you using Richard ?

 Signature 

Freelancer: http://www.ringo.nl/en/
http://www.jiglibflash.com
http://www.awayphysics.com
http://www.away3d.com

   

Avatar
Choons, Sr. Member
Posted: 13 August 2011 12:59 AM   Total Posts: 281   [ # 21 ]

I think it’s just the paths on the import calls? I’m working on getting everything into a single monolithic .py script for a Blender exporter the same way that the FBX and 3DS exporter scripts are designed. Crash course in Python underway since it’s not my strong suit in scripting languages.

   

Avatar
Choons, Sr. Member
Posted: 13 August 2011 03:53 AM   Total Posts: 281   [ # 22 ]

well I think I’m almost there. I took all the classes and combined them into a single file here

http://code.google.com/r/chadkimrey-awdblender/source/browse/exporters/blender1.py

I loaded in the script to Blender 2.58 and it almost ran, but the file output threw a Permission Denied exception.

I had to comment out the mc.warning on line 892 since mc wasn’t defined and changing it just warning didn’t help either. No biggie there as for feedback only.

The script fails though right at the end when it tries to write to the file. Here’s the error

Traceback
line 913, in <module>
line 531, in export

IOError: [Errno 13] Permission denied: ‘blendout.awd’

So it just looks like there’s a basic file io setting that needs adjusting for Python 3.2.1 and Blender 2.58 to use the script. Really close to working in pure Python form using Blender’s bundled Python build

   

Avatar
Choons, Sr. Member
Posted: 13 August 2011 06:29 PM   Total Posts: 281   [ # 23 ]

checking out the format spec document - p. 6 file header area it says size 11 but I get 12 bytes from table

   

Avatar
Choons, Sr. Member
Posted: 14 August 2011 07:41 PM   Total Posts: 281   [ # 24 ]

also, looking at spec- for block fields that have variable length, how do you want to handle parsing that? Do you want to devise some kind of standard escape sequence to delimit those fields?

   

Avatar
Choons, Sr. Member
Posted: 16 August 2011 01:32 AM   Total Posts: 281   [ # 25 ]

where’d you go, Richard? I’m willing to get this format across the line with Blender UI integration if we can lock it down with things like how submeshes get referenced. I have the Blender UI spot ready, let’s finish it

   

John Brookes, Moderator
Posted: 02 September 2011 07:34 PM   Total Posts: 732   [ # 26 ]

Just got a new pc, so now on 64 bit win 7.
Trying to build python and awd, using vs 2008 express
So do I build 64 or 32 bit? Tried both.

Also how do you know what failed when you get something like
========== Build: 18 succeeded, 2 failed, 0 up-to-date, 6 skipped ==========

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X