Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LunarLambda opened this issue Jan 18, 2021 · 1 comment
Open

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

LunarLambda opened this issue Jan 18, 2021 · 1 comment

Comments

@LunarLambda
Copy link

LunarLambda commented Jan 18, 2021

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

@LunarLambda LunarLambda changed the title Trefunge - what is the Z-order? 3D Funge-Space - which way does the Z-axis go? Jan 18, 2021
@cpressey
Copy link
Member

cpressey commented Feb 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants