Discuss Scratch
- Discussion Forums
- » Collaboration
- » Orion Engine : 3D Game Engine
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
Okay, What should I work on next? Making it higher-level? (basically making it easier to use instead of literally typing machine code.)
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
Okay, What should I work on next? Making it higher-level? (basically making it easier to use instead of literally typing machine code.)Maybe. Any ideas for the 3D editor?
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
First version of the 3D editor is released: https://scratch.mit.edu/projects/1317962989/
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
First version of the 3D editor is released: https://scratch.mit.edu/projects/1317962989/ok though i dont understand anything
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
First version of the 3D editor is released: https://scratch.mit.edu/projects/1317962989/ok though i dont understand anything
Position your mouse onto a vertex (the black dots). Then, click and hold. While holding, move around, and keep your mouse at that position. Try that first.
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
Oh, got it. Since skewing works. Should we able to do this with scripts? (something like: EDIT POINT 5, POS_POINT )First version of the 3D editor is released: https://scratch.mit.edu/projects/1317962989/ok though i dont understand anything
Position your mouse onto a vertex (the black dots). Then, click and hold. While holding, move around, and keep your mouse at that position. Try that first.
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
Also, if a point is slightly misaligned, click and hold and type “x” to round it into 50s. Really useful if something isn’t right. You can also set the snapping distance by clicking “set snap” and choosing a value.Oh, got it. Since skewing works. Should we able to do this with scripts? (something like: EDIT POINT 5, POS_POINT )First version of the 3D editor is released: https://scratch.mit.edu/projects/1317962989/ok though i dont understand anything
Position your mouse onto a vertex (the black dots). Then, click and hold. While holding, move around, and keep your mouse at that position. Try that first.
- PSIstudios
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
alright, I'm gonna get started with the 3D engine soon.
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
- PSIstudios
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-

Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
Instead of a sphere line or sphere triangle, try a narrow and broad phase. Try broad phase for triangles with bounding spheres. This easily eliminates them if they are impossibly far away to collide with, knowing distance. If they pass that (they are detected to be colliding), then try narrow-phase with OBB-SAT Collision (maybe GJK or BSP, but that might be harder, and BSP is not that accurate anyway.) I think SAT and bounding spheres are best.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
BTW I can help with object loading.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
To me, hard or not doesn’t matter. I just want the fastest algorithm that can detect it. Plus, as long as you understand the concept, collision isn’t that hard. Sphere-triangle does have a few exceptions, but the actual concept is simple.Instead of a sphere line or sphere triangle, try a narrow and broad phase. Try broad phase for triangles with bounding spheres. This easily eliminates them if they are impossibly far away to collide with, knowing distance. If they pass that (they are detected to be colliding), then try narrow-phase with OBB-SAT Collision (maybe GJK or BSP, but that might be harder, and BSP is not that accurate anyway.) I think SAT and bounding spheres are best.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
I would appreciate it! If you want to help, go into “Objects” and find out what’s wrong with the orphaned script. It’s supposed to create a cube, but it’s just not working. The cube can be generated, but in roughly 3-5 seconds it glitches out. Also, the cube is green and is 2x2x2, while the other is 100x100x100, so it could look really small.BTW I can help with object loading.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- THEIMPORTANT
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
To me it looks like a rendering issue. It seems to have dissapearing triangles.I would appreciate it! If you want to help, go into “Objects” and find out what’s wrong with the orphaned script. It’s supposed to create a cube, but it’s just not working. The cube can be generated, but in roughly 3-5 seconds it glitches out. Also, the cube is green and is 2x2x2, while the other is 100x100x100, so it could look really small.BTW I can help with object loading.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
The size of the list doesn’t change. There’s a very, very high likelihood that the mesh data isn’t formatted correctly. In my engine, triangles are grouped together into meshes, and then those meshes are grouped together to make the world view, and the mesh data simply formats by having the lowest triangle index and the highest triangle index, and rendering them all with the same quaternion model view matrix, for speed. Mind looking into it for me?To me it looks like a rendering issue. It seems to have dissapearing triangles.I would appreciate it! If you want to help, go into “Objects” and find out what’s wrong with the orphaned script. It’s supposed to create a cube, but it’s just not working. The cube can be generated, but in roughly 3-5 seconds it glitches out. Also, the cube is green and is 2x2x2, while the other is 100x100x100, so it could look really small.BTW I can help with object loading.Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
- PSIstudios
-
Scratcher
500+ posts
Orion Engine : 3D Game Engine
Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
Wait do I need to interpolate the triangles into 2D for triangle adding? also I could do more object adding however.
- extremely_random_guy
-
Scratcher
100+ posts
Orion Engine : 3D Game Engine
Should I make some notes before I do it? A lot of this stuff is a bit confusing.alright, I'm gonna get started with the 3D engine soon.
Nice! If you get stuck, I’ll try help debugging it.
I just want:
Easy
Triangle deleting (needs a point-triangle collision script in 2D)
More object adding (already has triangle adding, just follow what I did)
Fixing the sorting (I’m not too sure of it either, but the sorting has a bug. Try looking at this if you did everything else)
Hard
Sphere-Triangle and Sphere-Line collision (could take months, so maybe not ;-
Fix .obj loading (I spent hours and hours on this, still can’t fix it)
Apply 3x3*3x3 instead of 3x3*vector when applying matrixes to points for triangles (matrixes are weird.)
Wait do I need to interpolate the triangles into 2D for triangle adding? also I could do more object adding however.
Not adding, but deleting. I want it so that if your mouse is hovering over a triangle, and the space bar is clicked, then boom. The triangle’s gone. That’s why a point-triangle script in 2D is required, where the point is the mouse. Use mine if you like: https://scratch.mit.edu/projects/1230081941/
- Tsarjosh
-
Scratcher
79 posts
Orion Engine : 3D Game Engine
AhhhhScratch is capped at 32-35 FPS btw. I have an FPS Counter that requires like 10 blocks and it shows 32 FPS with your go to random position block.What do you mean also here's the rough draft -> https://scratch.mit.edu/projects/1317238242/I have a genius idea, okay? What if we allowed people to set a custom FPS, from 1 to 100, and stuff. Here's how it works:Also, It might cause performance oscillation.
Installed on turbowarp, set to 100 FPS
Creates a list of the times that second it will refresh
If its not time, it doesn't refresh yet
If it's running to slowly, it attempts to justify
This means you can set FPS and get a steady FPS at all times :O
PS you can use it in scratch too. Custom blocks don't have to refresh, so you could theoretically get 60 or even 90 FPS in scratch (although I tested this at 100 FPS in turbowarp)