News for hackers. Stuff that matters.
Re:HelloRun - A WebGL 3D Game by yaru22 on Tuesday September 03, 2013 @05:07PM (#6323765)
Can't believe this kind of game runs in browser!
Re:HelloRun - A WebGL 3D Game by terabytest on Tuesday September 03, 2013 @05:18PM (#6323864)
It uses a lot of tricks. The scene has a very low polygon count and the lighting is a pre-calculated texture.
Re:HelloRun - A WebGL 3D Game by ep103 on Tuesday September 03, 2013 @06:54PM (#6324414)
How do you know? Did you find the sourcecode somewhere?
Re:HelloRun - A WebGL 3D Game by mden on Tuesday September 03, 2013 @07:32PM (#6324597)
WebGL relies on javascript to run. Looking at http://hellorun.helloenjoy.com/js/hellorun.min.js and searching for "png" you get images like http://hellorun.helloenjoy.com/assets/station/lightmap1024.j... which looks like a pre-lightning computed texture. Looking at the vertex data (in format x,y,z(,w)) there seem to be only 2048 defined vertices, which is a tiny amount for a 3d game.
Re:HelloRun - A WebGL 3D Game by terabytest on Wednesday September 04, 2013 @06:01PM (#6330817)
Well, it was taking a long time to load for me so I looked at the network panel to see what was being loaded and I saw the lightmap. I have a little bit of a background in 3D graphics/game development so it instantly came to mind.