I have just updated my Cube Defense Demo to work in both WebGL enabled WebKit and FireFox. It is still 10-20fps slower compared to WebKit, but hey, at least it works! I would like to thank those who emailed me tips on making it compatible for both.
To share my experience, these are some of the things I had to change to make it work for WebKit and FireFox:
• Use UNSIGNED_SHORT instead of UNSIGNED_BYTE
• Use CanvasUnsignedShortArray instead of CanvasUnsignedByteArray
• For FireFox, use WebGLFloatArray instead of CanvasFloatArray. This will make things faster.
• ARRAY_BUFFER rather than ELEMENT_ARRAY_BUFFER
• “clearDepth” for WebKit, “clearDepthf” for FireFox
• In “bindBuffer” function use null instead of 0
If you have anything else to add, share your thoughts!
*Update: (November 18th, 09)
This is a little outdated now, so I crossed out some irrelevent stuff. Also, in the lastest WebKit, anything that was CanvasXXXXXArray is now WebGLXXXXXArray.
Posted in 3d, FireFox, WebGL, WebKit, javascript, openGL | 8 Comments » | Add to Delicious | Digg It
This is a work in progress of a game I will be making. This is based on BOOST (Some of you might see the resemblance).
Like the last example, it only runs on WebKit Nightlies at the moment. It renders partially in Firefox (Minefield) but is too slow, so I have disabled it from running.
Posted in 3d, WebGL, game, openGL | 1 Comment » | Add to Delicious | Digg It
It’s been a while since I’ve blogged last time. We’ve just wrapped up a project with VanAqua (See Chris Stone’s post for more info) and now with my down time, I started looking into WebGL. WebGL is OpenGL for web (duh) but it is currently underdevelopment and it is supported in very few browsers.
This is something I’ve come up with today. I am planning on turning this into some sort of game. Use A-S-W-D keys to move your box.
IMPORTANT!!!: You’ll need to have the latest WebKit Nightly build to run this. To set up, just follow the instructions on this page.
_
Peace out.
Posted in 3d, WebGL, game, openGL | 8 Comments » | Add to Delicious | Digg It
This sounds like a shameless self-promotion, but I’ve recently updated my portfolio site. I tried to keep it minimal and clean. I also wrote my own lightweight 3D engine/renderer to do the 3D text in the background. Please check it out and let me know what you guys think.
Posted in 3d, flash, personal | 2 Comments » | Add to Delicious | Digg It
I don’t know what this is going to turn into, but I created some cube visualizer with random grid texture. The pattern is random so it will look slightly different everytime. It’s not interactive at the moment, but I will see that this could turn into.
You can see the real thing here: http://www.yoheishimomae.com/demo/cubething
Posted in 3d, flash | 1 Comment » | Add to Delicious | Digg It
Yay, my first blog post. I’m Yohei and I’ve started working here at Nitobi couple months ago. I’m not much of a blogger, but I will try and share cool links like the followings once in a while.
Lab | Matthieu Badimon
WhiteVoid
SectionSeven
PS3 Games Universe
Pink Floyd - Oh, By The Way
Posted in 3d, flash | 1 Comment » | Add to Delicious | Digg It