Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yaru22
· 13y ago · 0 comments
Can't believe this kind of game runs in browser!
Comments
[–]
terabytest
13y ago
It uses a lot of tricks. The scene has a very low polygon count and the lighting is a pre-calculated texture.
[–]
ep103
13y ago
How do you know? Did you find the sourcecode somewhere?
[–]
mden
13y ago
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.
[–]
terabytest
13y ago
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.