Obsolete already?!

My most recent addition to Processing.js can already be considered obsolete.  Not even two weeks after the release, my fifteen minutes of fame will be coming to an end.  This is due to someone coming along with a better and cleaner implementation.  This may seem like a disgruntled post but it really is more of praise.  I was looking through the code and learned a few new tricks with using JavaScript that I never knew before.  It’s my way of showing praise to this new community member.  While F1LT3R might be a little busy to add Sephr’s new code at the moment, I already have my tests working under the new code.  Essentially, I was just using it to test the new code to make sure it didn’t break but I just left it there for when F1LT3R does have time to look at it.

Moving On…

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: