-
Notifications
You must be signed in to change notification settings - Fork 24
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
nD Visulization #24
Comments
Great work. Yes, projection matrices are what we will need for that. A projection matrix for 3>2 might look like this: Maybe we should define an nMatrix first, as a standard which we can always base the functions off. I'll work on that now. |
Yeah, that looks right. Well, it is a 2D projection of a 3D projection of a 4D cube. |
I was just about to post a 2d projection of a 5d object |
Yep. I just committed an initial idea for how to implement matrices, but not anywhere near complete. |
Ok, I'm going to figure out p5js's 3d stuff. |
That would be great. There's quite a lot there. |
Here is a 3d projection of a 4d wireframe. http://codepen.io/max0410/pen/xgNWjG |
I used custom shapes so I could create just a wireframe, I am trying to find a way to just use box(), and then have translucent faces. |
Translucency is pretty complex in simple engines like webGL, you can look it up but it might be difficult. |
Nice work with your code, it looks good! |
Thanks! |
I created an adjustable 4d hypercube: http://codepen.io/max0410/pen/zNQQQM |
Looks good! Check out my new example and see if you can extend it. :) |
Looking into the code of this website I see it uses a 3d javascript library called X3D. The things they are showing are 3d projections of 4d objects. For example, are eyes can not see 3d, they see 2d. So, our life is a 2d projection of a 3d world. Pretty deep right. So for in order for the nD Visualization to work, we will have to take our nD data and project it on to a 3d canvas, most likely using p5js's tool for 3d objects. So we just have to figure out how to project nD objects to 3d. I have been researching on this.
2d projection of 0d hypercube
2d projection of 1d hypercube
2d projection of 2d hypercube
2d projection of 3d hypercube
2d projection of 4d hypercube
2d projection of 5d hypercube
3d projection of a 4d hypercube
http://codepen.io/max0410/pen/zNQQQM
The text was updated successfully, but these errors were encountered: