Friday, January 15, 2010

‘Release‘ 0.3 A mash up of mash ups.

After trying to follow in the steps of 2 Students aka Andor Salga (asalga) and Anna Sobiepanek. They have working 3d demos. I on the other hand do not have demos anywhere near as fascinating as theirs. I ended up getting so frustrated with not being able to merge my code with anna’s processing file, it ended up turning into this disaster. Then I come up with the brilliant idea to just rip anna’s demo off totally and make some minor changes while adding my function calls. After I don’t even know how many days, I end up with this abomination. At this point I’m ready to give up, I figure “you know what?… I might as well just do it the way java does it”. After about 1.5/2 days of converting the Java processing class called PMatrix3D to JS, I’m in IRC and someone links me this.

Serves me write for only keeping up to date with Andor and Anna’s blogs. MinyXO had already made a beautifully converted PMatrix3D set of functions. Once I recovered my monitors pieces and put them back together (not mad at you MinyXO, mad at myself.) I tried to see if MinyXO had come up with a working 3D demo I can try to get working with my code. Sadly he wasn’t focusing on any 3D demos I can learn from.

It is at this point I decided to go back to these tutorials I found way back at the beginning of this 3D stuff. As opposed to just submitting nothing and making all excuses as to why it’s not so bad to take another course next semester, I decided to focus on that tutorial. My train of thought was, learn how the webGL stuff works, then I can write this function in JavaScript and at least make it work in a webGL-only environment. The good thing is that I learned a bit more and have some point of reference to show where I am in understanding this 3D stuff. The bad thing is, I picked the tutorials source files from lesson 1. The most basic. This leads to a whole bunch of other problems I outline in my Tests below.

0.3 Deliverables

  • Wrote this blog!
  • Have 2 sets of 3 demos that demonstrate where I’m at in understanding webGL:

Code Tests

ModelX modelX()

ModelY modelY()

ModelZ modelZ()

ScreenX screenX()

ScreenY screenY()

ScreenZ screenZ()

My thoughts about 0.3 and future releases

Even though I’m not a student in the following course OSD700, I hate leaving loose ends. What I hate even more is not understanding things and moving on to the next subject/semester. The beauty of this open source course is that it’s existence is almost completely virtual (except for the registration payment). This will allow me to remain connected to the community and continue to learn and find out ways I am able to contribute.

One thing I must point out is the desperate need to develop some structure to put in place to unify all the different versions of the processing code that exists. There needs to be a new core file(s). Just as we started processing-js when it had only 2D functionality, as a group we started by feeling our way through this new code and experience. Now that we are hacking out this “3D” functionality, there needs to be a new core file updated with everyone's 3D stuff merged and organized and accepted as the new standard we all pull from. Looking to see if other students had certain functions created in their Git-Hub forks was a disaster that wasted more time then anything else.

A second idea that I think may allow going through processing-js code a bit easier, is if we start putting different types of code into different files processingjs.js is getting bloated. In the Java version of processing, most 3D functions are in files that have 3D in the file name Ex: PMatrix3D.java and PGraphics3D.java are a completely separate file.

Also, Andor organized a meeting when we started the 3D functions and I think there is a lesson in that. Having meetings like the one Andor organized once in a while is super powerful. IRC is great but it’s nowhere near the same as meetings in person.


Link for Dave back to my Cdot

44 comments:

  1. 好熱鬧喔 大家踴躍的留言 讓部落格更有活力.........................

    ReplyDelete
  2. 好文章給人的感覺就是很好,謝謝您~~........................................

    ReplyDelete
  3. 看到你的好文章真是開心 加油囉.......................................

    ReplyDelete
  4. 幽默並不是諷刺,它或許帶有溫和的嘲諷,卻不傷人,它可能是以別人,也可以用自己為對象。........................................

    ReplyDelete
  5. 喜樂的心是健康良藥,憂傷的靈使骨枯乾。........................................

    ReplyDelete
  6. 成功等於目前,其他都是這句話的註解。 ..................................................

    ReplyDelete
  7. 變天了~~注意身體,別感冒囉!........................................

    ReplyDelete
  8. 人不能像動物一樣活著,而應該追求知識和美德..................................................

    ReplyDelete
  9. 在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」...........................................................................

    ReplyDelete
  10. 河水永遠是相同的,可是每一剎那又都是新的。......................................................................

    ReplyDelete
  11. 河水永遠是相同的,可是每一剎那又都是新的。......................................................................

    ReplyDelete
  12. 生活總是起起伏伏,心情要保持快樂才好哦!!.......................................................

    ReplyDelete
  13. [做人難,人難做,難做人] 人.事的艱困與磨難,是一種考驗!要以樂觀歡喜之心,很珍惜地過每一天!^^..................................................

    ReplyDelete
  14. 海鷗要高飛,必先遠退。花蜜要香醇,必先久釀。............................................................

    ReplyDelete
  15. 一個人的際遇在第一次總是最深刻的,有時候甚至會讓人的心變成永遠的絕緣。............................................................

    ReplyDelete
  16. 真正仁慈的人,會忘記他們做過的善行,他們全心投入現在的工作,過去的事已被遺忘。.................................................

    ReplyDelete
  17. 唯有用熱情、用智慧去觀察事物,這事物才會把他的秘密,洩漏給我們......................................................................

    ReplyDelete
  18. 讓好心情回味發酵;壞心情留在文字裡隨時間消逝吧!............................................................

    ReplyDelete
  19. Processing.js is now in Android..Check it out: http://code.google.com/p/my-processing/

    There is a FREE Ad-supported version in the market as well.

    ReplyDelete