RSS Feeds

Previous entries

Ollie, you're a f'ing genius!

Posted 2005-02-14-0225

After messing about with texture coordinates in dart on triangle and quad objects for several days, I was ready to give up. I mentioned it to Ollie. A couple of days later he said, You should look at Barycentric Coordinates. I use them for calculating the intersection - they might be useful. (Or something like that.)

A little googling, thinking and pseudocode writing later, I had triangles fixed. Works perfectly. A bit more effort was needed for quads as I needed to figure out which half of the quad (ie which sub triangle) I was working in. It works almost flawlessly, there seem to be sometimes when it is just a little out.

It takes just a tiny bit of inspiration to start something cool.

While I was stuffing round, I also added progressive writing for tga and png files, and an Array writer that acts the same as dart used to.

I guess you can expect dart 0.0.9 soon then..