Hacker Newsnew | past | comments | ask | show | jobs | submit | Baristan's commentslogin

It does looks like float32 errors from moving the camera too far in a scene.

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.


You can use fixed-point math to avoid this, but it doesn't get all the cool language support.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: