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

Z-axis is not used #2

Open
Nopik opened this issue Dec 27, 2013 · 3 comments
Open

Z-axis is not used #2

Nopik opened this issue Dec 27, 2013 · 3 comments

Comments

@Nopik
Copy link

Nopik commented Dec 27, 2013

Well, it seems that the original tree was just 3D, with proper perspective. Darker parts are the ones with deeper z, that's it. Also, perspective allowed the original to have nice curves on the edges, where you have sharp turns.

@neokabuto
Copy link

We'd need WebGL to do actual 3D (instead of faking it), so it would basically require a rewrite of the whole thing. Anyone up for that?

@Nopik
Copy link
Author

Nopik commented Dec 28, 2013

To cast 3d point into 2d surface you do not need webgl, equations are quite simple.

@CensoredUsername
Copy link
Contributor

Since the original tree seems rather simple (camera's at x=0, y=-a, z=-b) and it's looking in the positive z direction, the 3d render equations can be enormously simplified. check out #4 for an implementation

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

3 participants