Archives for: April 2009


Permalink 05:12:47 pm, by Sueastside, 253 words, 204185 views   English (US)
Categories: general


Putting the ass into asset.

'Open Asset Import Library' is a library to import a wide range of 3D formats, which I'll use to expand CA's supported formats.

Assimp has some python bindings (using ctypes) but they were severly outdated. Since I hate manual labour, I decided to write a python script to convert the Assimp header files into python's ctypes compatible Structures. A few regexp tutorials later(I'm new to it) I had a 150 lines script generating a 1000 lines of bindings. All things considered updating the old bindings manually might have taken less time. However I gained a new skill (which is still satisfying for us RolePlayers: "Die you filthy troll and show me some loot and experience!!") and whenever someone non-python aware decides to change assimp all they have to do is run a script.

Now that the bindings were updated it was time to tackle some of the python boilerplate, as the material properties showed some signs of wrong/corrupted memory.
The full ctypes reference later, it turned to be as simple as "cast(p.mData, POINTER(c_float*(p.mDataLength/sizeof(c_float)) )).contents"
and a few more for each possible 'p.mType'. Oh well.

To more exciting stuff, getting all this data in CS:


Support for static meshes, materials (with shadervars) and textures. (after fiddling a bit with left and righ handedness) And now working on animation support...

Picked a mesh that's a tad more exciting than my test cube. Finally settled on 'dwarf.x'.


Permalink 04:40:32 pm, by Sueastside, 155 words, 293042 views   English (US)
Categories: general

Crystal Architect

The mother of all world editors.

DAMN's filebackend relied on the linux specific 'inotify' to watch files and report when they got modified, added or removed.

To support other OSs I set of writing a 'generic notify' mimicing the inotify interface, so it could be used as a drop-in replacement, not having to alter the current code.

It works quite nicely now, although perhaps not that efficient (it's doing simple directory compares), but it was meant to be generic, not using any OS specific libraries/functions.

Planned for the future is a 'win notify' utilizing the ReadDirectoryChanges API, exposed via the pywin32 win32file module.

I also added the concept of 'repositories' to DAMN, allowing to add several directories or other sources (like svn) for DAMN to 'watch'. Utilising the 'Models' repositories automatically register with the UI, allowing them to be edited and en/disable by the user, aswell as adding more or removing some.


Permalink 04:20:33 pm, by Sueastside, 109 words, 5646 views   English (US)
Categories: general

GSoC ....Sort of.

My apologies to my loyal fans, the next couple of months you won't find any insanity striken posts here, just some boring technical descriptions of my progress on CSSoC.

This year I applied to Google Summer of Code for Crystal Space to work on Crystal Architect.
(It's already getting complicated I know.)
Unfortunaly I didn't make the cut, CS specific features were chosen over my less CS specific proposal...however, since my proposal was so brilliant! *cough* the nice people at CS decided to create a 6th slot using last year's GSoC profits (2000USD).

So here I am, proud participant in the first 'Crystal Space Summer of Code', CSSoC!!

Sueastside's Blog

April 2009
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      




XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 104

powered by