Sunday, February 15, 2009
http://www.inc.com/magazine/20090101/how-hard-could-it-be-thanks-or-no-thanks_Printer_Friendly.html?partner=fogcreek
Interesting topic about performance and reward. Check it out :)
Thursday, January 29, 2009
Friday, January 23, 2009
Sunday, January 11, 2009
Raytracing
As quoted from Wikipedia, "Ray tracing is a technique for generating an image by tracing the path of light through pixels in a image plane."
In essence, you generate a ray for each pixel from the view point, then send it out to the world and then check for any collisions. Once there is a collision, generate another ray recursively to track the reflected/refracted ray.
Works perfect for translucent and shiny objects (reflection/refraction). Photorealistic images too!
Looks fun :D
In essence, you generate a ray for each pixel from the view point, then send it out to the world and then check for any collisions. Once there is a collision, generate another ray recursively to track the reflected/refracted ray.
Works perfect for translucent and shiny objects (reflection/refraction). Photorealistic images too!
Looks fun :D
Monday, December 8, 2008
Remember the post about Wii Remote hacks?
Given the lack of a bluetooth adapter in my laptop (and my sis's old Mac which had Java 1.5,and couldn't be updated to 1.6 - which meant WiiRemoteJ wouldn't work) - I had the brain blast of writing a WiiRemote app in my handphone using WiiRemoteJ.
Unfortunately it appears that the PSM value (the tcp/ip equivalent would be ports,from what I've read) was limited in JSR-82(java implementation of bluetooth), which meant that the wiimote can't connect to J2ME apps.
And, while trying to compile the WiiRemoteJ jar in the project, it turns out that J2ME only implements a small subset of java.util - without iterators and a few other stuff I forgot, which meant that I couldn't compile.
So there goes wiimote for handphone ):
Given the lack of a bluetooth adapter in my laptop (and my sis's old Mac which had Java 1.5,and couldn't be updated to 1.6 - which meant WiiRemoteJ wouldn't work) - I had the brain blast of writing a WiiRemote app in my handphone using WiiRemoteJ.
Unfortunately it appears that the PSM value (the tcp/ip equivalent would be ports,from what I've read) was limited in JSR-82(java implementation of bluetooth), which meant that the wiimote can't connect to J2ME apps.
And, while trying to compile the WiiRemoteJ jar in the project, it turns out that J2ME only implements a small subset of java.util - without iterators and a few other stuff I forgot, which meant that I couldn't compile.
So there goes wiimote for handphone ):
Subscribe to:
Posts (Atom)