December 4, 2009 Leave a comment
Since my time with PVector is over, I’ve moved on to other things. Last I mentioned, I’m working on the camera() function for the 3d objects in PJS. While it’s not supposed to be too amazingly difficult, I’ve forgotten much of what I learned in my GAM programming class with COM objects and whatnot… So I’ve been doing some research, mainly in the Java Processing code and came across this. It’s a Matrix object which is needed for 3d worlds and somewhat lacking in the PJS code. Further research within the code, I saw that matrices were being used but mostly as 2d arrays. So, I went into IRC and asked for some consensus as to whether we should implement a matrix object. Andor was the only one that responded (him being our most 3d webgl expert). He mentioned that we needed a 3d matrix stack for more general use. There’s already a stack built within Canvas but I don’t believe it handles anything remotely 3d. So we need one for our project in order to calculate and properly handle the transformations. I’ve taken it upon myself to make the 3d matrix stack. Now depending on how long this will take, I may have to push back some of my other functions (ie ortho, perspective) to the next release date.