123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|569|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Problems with rendering *.skn meshes

Sun, 12 Aug 2007, 17:21
Afr0
Ok, so I'm trying to render *.skn meshes from The Sims. Currently I'm using C# to do this, and I have some basic loading code up and running. The problem is that when trying to render, everything winds up looking completely garbled (unfortunately). After searching around the net for a bit, I wound up finding a link where the original creator of the format, Don Hopkins, explains how to render meshes described by the format (linky). There, he mentions that one has to 'first transform all the vertices[vertexCount] to world coordinates according to the boneBindings, into transformedVertices[vertexCount]'. Now, I can hardly claim to be an expert at 3D graphics, and I've been trying to figure out how to transform vertices into world coordinates for a while now, without much luck. Any ideas?

Anyways, here's my current loading code that loads a *.skn file and attempts to create a Mesh instance out of it (the Mesh class is from DirectX):



If anyone has any hints and/or tips, I'd appreciate it! As a matter of facr, if people'd be up for it, I'd be willing to post this in the Campfire section just for fun (and learning, of course).

Thanks in advance

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!