Show HN: A simple infinite world in WebGL
21–30 of 61 posts
Re: Show HN: A simple infinite world in WebGL
#22There seems to be some missing triangles after a while (10-20 sec.) on Chrome on OSX Are these caused by some z-buffer issues caused by increasingly large coordinates?
Seen it before while trying to create an infinite city in WebGL. I ended up creating a world offset for each sector, and every time the camera's position was more than a sector length, reposition the camera in the scene and adjust the sector offsets. May not be the best solution, but it was quick and worked.
Re: Show HN: A simple infinite world in WebGL
#23Re: Show HN: A simple infinite world in WebGL
#24Re: Show HN: A simple infinite world in WebGL
#25Reminds me https://en.wikipedia.org/wiki/The_Thirteenth_Floor
Re: Show HN: A simple infinite world in WebGL
#26Does anyone have some good resources on getting started with WebGL or graphics programming in general? I know the libraries (like Three.JS) but I wouldn't know where to start or how to use them. I see Three.JS being used in fancy websites all the time now and would like to stay up to date.
Re: Show HN: A simple infinite world in WebGL
#27Very nice. This reminded me of the flight simulator easter egg in old versions of MS Excel. Does anyone have some good resources on getting started with WebGL or graphics programming in general? I know the libraries (like Three.JS) but I wouldn't know where to start or how to use them. I see Three.JS being used in fancy websites all the time now and would like to stay up to date.
Re: Show HN: A simple infinite world in WebGL
#28Reminds me https://en.wikipedia.org/wiki/The_Thirteenth_Floor
Re: Show HN: A simple infinite world in WebGL
#29Re: Show HN: A simple infinite world in WebGL
#30Earlier quoted context omitted.
>var f = 0.0015974 Where did this number come from? Is it arbitrary?
Just arbitrary hand-tweaking. It was chosen because I though it looked good. When doing procedural generation like this, you basically just tweak constants 'til it looks good. There's no deeper reason behind it.