Skip to content

The z-axis and camera? #439

Answered by johannes-wolf
Leedehai asked this question in Q&A
Discussion options

You must be logged in to vote

3D support is not really there as of now.

The default transformation just sets up z to be (x=.5, y=-.5) (which is a bit random...) (see canvas.typ line ~49) -- it set's up a z-shear matrix. So positive z points to positive x and negative y, which by default is to the top-right or "away" from the "camera". I guess TikZ does something very similar when setting z=....

The 0.2.0 marks branch (+ path decorations) uses a z-up and xy-up vector style key to know where the up-vector should be. There are currently no functions to set up a projection matrix or any kind of "camera", although I would like to add that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Leedehai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants