Archive for January, 2010
WebGL: Fog in GLGEI’ve finally added the long promised fog. As it was a quick and easy addition, I’ve also done a lot of optimisations including replacing Sylvester with GLGE optimised math functions. Guesstimate is that performance gains this week are ~20%. I was hoping to add some frustum culling of objects as well but there just aren’t enough hours in the day, but I’m sure I’ll get it done soon along with the z-sorting for blending. | ||
WebGL:Picking in GLGEAnother week past and I’ve been busy adding picking to the list of GLGE’s features. This turned out to be more challanging then I had first thought, mainly due to hours trying to find a stupid mistake I made early on see the latest demo over at GLGE Demo Video Below: | ||
WebGL:Shadows in GLGEI’ve spent the last week getting shadows working in GLGE. It’s taken way longer then I was expected as rendering a depth map to a texture doesn’t seem to be working in any browsers and checking out the firefox code it would seem it’s just not supported there yet. Â So I’ve had to hack it bit, encoding and decoding the depth from the rgb values. It works but it’s a quite intensive. It also works on firefox but it’s still slow, hopefully I’ll be able to figure out why it’s going so slow at some point In addition this week I’ve added parsing of color value attributes in the XML so you can now specfy light/material colours using the normal HTML syntax ie “#ff0000″ “red” “rgb(255,0,0)”. I also sorted out the ambient lighting properly which until now was just tacked on top. See the latest demo over at GLGE.org | ||
WebGL:GLGE Demo SceneThis week I’ve taken a bit of a break on the coding. I’ve now got a website up and running for GLGE as well as officially releasing an alpha: I’ve also spent a few days coming up with a more impressive demo. Please bare in mind I’m no pro CG artist, just a now and then amateur, so imagine what could be achieved by the pros in a very short space of time. It’s not showing off 100% of the current feature set, some of which I think still needs rewriting and finishing off. But, hopefully it’ll be enough to change the mind of at least some of the WebGL naysayers, encourage more rapid development and make 2010 the year of 3D on the web. …Read More | ||
