top | item 46136094

(no title)

pacificat0r | 2 months ago

Well, it's significantly easier to implement than a octree. Game is actually 3D under the hood, projected at a careful angle to look isometric 2D.

The reason the game is 3D has to do with partially visible things being way easier than with isometric textures layered in the right order.

Also, now that i just grab a pixel back from the GPU, it's no overhead at all (to construct or get the data for it).

discuss

order

ZeWaka|2 months ago

I assume for the picking system you're rendering each entity/block as a different color (internally) and getting the pixel color under the mouse cursor?

crote|2 months ago

"Color" is pretty much just "integer" to the GPU. It doesn't care if the 32-bit value a shader is writing to its output buffer is representing RGBA or a memory pointer.