Writing Code For VR

I have been exploring with React VR recently and it is quite interesting to write code for Virtual Reality compared to web. I mean for the most part you are still writing React code so a lot is very similar. But since you are working within a 3D space you have to think in terms of meters instead of pixels. Your canvas is no longer of rectangular shape but a sphere (or cube) that wraps around you. The viewport is now a camera with a horizontal and vertical Field OF View (FOV). And of course, you can position elements or the user (camera) anywhere on the X, Y or Z axes. Continue reading “Writing Code For VR”