Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How to render 3D graphics?
- ironmannn
-
Scratcher
100+ posts
How to render 3D graphics?
I probably should've gone here first.
So I am trying to learn how to render more advanced 3D graphics than the wire frames that I currently know how to render. However while I know about Z-buffers and rasterization I do not know how to perform the latter or even what I need to do before I can do either of those.
So, here are my two questions, first off, are there custom blocks available that allow me to run pure JS within Scratch?
And second, where do I begin? What do I need to learn first?
So I am trying to learn how to render more advanced 3D graphics than the wire frames that I currently know how to render. However while I know about Z-buffers and rasterization I do not know how to perform the latter or even what I need to do before I can do either of those.
So, here are my two questions, first off, are there custom blocks available that allow me to run pure JS within Scratch?
And second, where do I begin? What do I need to learn first?
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
How to render 3D graphics?
Hi! You don't need JavaScript to program three-dimensional graphics. Rasterization is the process of turning shapes into pixels, and the z-buffer records the z-positions of pixels so that faces in the back are not rendered over faces in the front. The Scratch Wiki has an article about three-dimensional graphics.
- IcyCoder
-
Scratcher
1000+ posts
How to render 3D graphics?
I probably should've gone here first.
So I am trying to learn how to render more advanced 3D graphics than the wire frames that I currently know how to render. However while I know about Z-buffers and rasterization I do not know how to perform the latter or even what I need to do before I can do either of those.
So, here are my two questions, first off, are there custom blocks available that allow me to run pure JS within Scratch?
And second, where do I begin? What do I need to learn first?
Check out my sprite-based raycaster it is the simplest (and I think fastest) form of scratch 3D…
https://scratch.mit.edu/projects/132743008/
- jokebookservice1
-
Scratcher
1000+ posts
How to render 3D graphics?
Fastest would be using a non-sprite based raycaster. Unless you mean fastest of the other sprite based raycastersI probably should've gone here first.
So I am trying to learn how to render more advanced 3D graphics than the wire frames that I currently know how to render. However while I know about Z-buffers and rasterization I do not know how to perform the latter or even what I need to do before I can do either of those.
So, here are my two questions, first off, are there custom blocks available that allow me to run pure JS within Scratch?
And second, where do I begin? What do I need to learn first?
Check out my sprite-based raycaster it is the simplest (and I think fastest) form of scratch 3D…
https://scratch.mit.edu/projects/132743008/
- IcyCoder
-
Scratcher
1000+ posts
How to render 3D graphics?
Nah I would not say mine is the fastest mostly because it is untested speed wise…Fastest would be using a non-sprite based raycaster. Unless you mean fastest of the other sprite based raycastersI probably should've gone here first.
So I am trying to learn how to render more advanced 3D graphics than the wire frames that I currently know how to render. However while I know about Z-buffers and rasterization I do not know how to perform the latter or even what I need to do before I can do either of those.
So, here are my two questions, first off, are there custom blocks available that allow me to run pure JS within Scratch?
And second, where do I begin? What do I need to learn first?
Check out my sprite-based raycaster it is the simplest (and I think fastest) form of scratch 3D…
https://scratch.mit.edu/projects/132743008/
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
How to render 3D graphics?
Raycasting is not true 3D.
- -stache-
-
Scratcher
500+ posts
How to render 3D graphics?
Raycasting is not true 3D.No software is (that renders on a flat panel).

Last edited by -stache- (Dec. 3, 2016 02:07:46)
- IcyCoder
-
Scratcher
1000+ posts
How to render 3D graphics?
Raycasting is not true 3D.YOUR NOT REAL 3D!
- CodeLegend
-
Scratcher
500+ posts
How to render 3D graphics?
But most software show accurate projections of three dimensional objects.Raycasting is not true 3D.No software is (that renders on a flat panel).
Whereas raycasted images, and Chibi-Matoran, are not true projections of 3d objects.Raycasting is not true 3D.YOUR NOT REAL 3D!
- gdpr533f604550b2f20900645890
-
Scratcher
1000+ posts
How to render 3D graphics?
But most software show accurate projections of three dimensional objects.Raycasting is not true 3D.No software is (that renders on a flat panel).Whereas raycasted images, and Chibi-Matoran, are not true projections of 3d objects.Raycasting is not true 3D.YOUR NOT REAL 3D!
chibiMatoranTransform = chibiMatoran.translation * chibiMatoran.rotation * chibiMatoran.scale;
cameraTransform = camera.translation * camera.rotation * camera.scale;
screenPosition = projectionMatrix * inverse(cameraTransform) * chibiMatoranTransform;

Last edited by gdpr533f604550b2f20900645890 (Dec. 4, 2016 00:54:41)
- IcyCoder
-
Scratcher
1000+ posts
How to render 3D graphics?
This is totally going in my siggy…But most software show accurate projections of three dimensional objects.Raycasting is not true 3D.No software is (that renders on a flat panel).Whereas raycasted images, and Chibi-Matoran, are not true projections of 3d objects.Raycasting is not true 3D.YOUR NOT REAL 3D!I've been transformed.chibiMatoranTransform = chibiMatoran.translation * chibiMatoran.rotation * chibiMatoran.scale;
cameraTransform = camera.translation * camera.rotation * camera.scale;
screenPosition = projectionMatrix * inverse(cameraTransform) * chibiMatoranTransform;
- Aurori
-
Scratcher
49 posts
How to render 3D graphics?
I remember a while ago JamesOuO posted a video tutorial on his youtube channel. Sadly it was deleted, by him.
I'll get back to you when i find the tutorial, or an example which i made following it
I'll get back to you when i find the tutorial, or an example which i made following it
- Discussion Forums
- » Advanced Topics
-
» How to render 3D graphics?







