catseye / Funge-98

MIRROR of https://codeberg.org/catseye/Funge-98 : The Funge-98 specification in all its gory
https://catseye.tc/node/Funge-98
32 stars 2 forks source link

3D Funge-Space - which way does the Z-axis go? #12

Open LunarLambda opened 3 years ago

LunarLambda commented 3 years ago

In Trefunge-98 source, the ascii form feed increments the z coordinate, which is equivalent to a 'go low' instruction. This is all the specification says.

I'm imagining a 3-dimensional Funge-Space as a series of 2-dimensional Funge-Spaces placed on top of each other. So is a plane at Z=1 in front of or behind a plane at Z=0?

I think it is behind, since that would make sense if this 'stack' of 2D planes was viewed from the top down, where higher z coordinates are lower on the stack. (i.e. the image on the right, which corresponds to regular 3-dimensional cartesian space rotated 180° around the X-axis)

image

cpressey commented 3 years ago

In Trefunge-98 source, the ascii form feed increments the z coordinate, which is equivalent to a 'go low' instruction. This is all the specification says.

I'll take your word for that. I only maintain the accursed thing, I don't actually read it.

I'm imagining a 3-dimensional Funge-Space as a series of 2-dimensional Funge-Spaces placed on top of each other. So is a plane at Z=1 in front of or behind a plane at Z=0?

Well, that depends on where you're looking at them from, I suppose.

I think it is behind, since that would make sense if this 'stack' of 2D planes was viewed from the top down, where higher z coordinates are lower on the stack. (i.e. the image on the right, which corresponds to regular 3-dimensional cartesian space rotated 180° around the X-axis)

This seems consistent with the idea, in 2 dimensions, that higher line numbers are further down the page.