Archive for May, 2008

Convex Hate

Sunday, May 11th, 2008

The problem I’m facing is a seemingly tough one. What I want to allow ToeTag to do is to import triangulated meshes from a modeling program (in my case, Cheetah 3D) and then break that mesh down into convex chunks when it writes the MAP file out for compiling.

It’s tough because I can’t quite come up with a routine that will work for any arbitrary mesh. I can get it to work on some meshes but not others. I think it’s worth the effort though because when it works it will allow so much more expression in my level design.

Coding, coding…

New ToeTag Feature

Saturday, May 10th, 2008

Soon. Heh, sorry! No, it should be done within the next few days assuming that things go as planned. It’s forced me to clean up my 3D code somewhat though and I’m kind of getting happy with how it works/looks now. I used to have a bunch of functions where I could ask a plane which side of it a vertex was sitting on. I’ve condensed that down to one now:


-(ESide) getVertexSide:(TVec3D*)InVector
{
float distance = [self getDistanceFrom:InVector];
float delta = fabs( distance - dist );

if( delta < = ON_PLANE_EPSILON )
{
return S_OnPlane;
}

if( (dist - ON_PLANE_EPSILON) < distance )
{
return S_Front;
}

return S_Behind;
}

Not very exciting, I know, but I haven’t posted anything in a few days and was feeling bad. :) I hope to be back soon with cool shots of a kick ass new feature!

I don’t know why WordPress sucks SO MUCH at posting source code but if anyone knows how to make that look nicer, I’m all ears. Unbelievable that it’s 2008 and it doesn’t “just work” yet.

Remix Progress

Sunday, May 4th, 2008

Remix Progress

This is the starting area. It’s not complete but this is the direction that it’s headed.