was contained in screen, and when I tried, it worked perfectly until I panned to a segment that wasn't initially on screen.
I am new to all this, do you know where I can learn fundamentals? Im having trouble even googling because I don't know the jargon
Not sure what you're talking about. In games you use two coordinate systems, screen space coordinate system which is in pixels and world space coordinates which is a virtual coordinate system to for your world. When you render you transform the coordinates to screen space and then render it
This allows you to define a rectangle area which is what you view stuff from in the world coordinates. This can be of any size and then you use a bit of math to change coordinate systems and you exactly know what stuff should appear where in screen.
This is regarding 2d webgl btw
It's the same concept in 2d as well
Обсуждают сегодня