Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » [NEED HELP ASAP] Camera rotation sqeezes the 3d projection
- RBlueCakes
-
40 posts
[NEED HELP ASAP] Camera rotation sqeezes the 3d projection
I am making my own 3D game using projection and knowledge from mathmathmath's tutorial about 3d.
What's the problem?
When I move my mouse to the edge it sqeezes the 3d objects.
What have I tried?
I tried changing the script but its the same as the rotation script for 3D.
I will appreciate any help!
Project Link: https://scratch.mit.edu/projects/1118288695
What's the problem?
When I move my mouse to the edge it sqeezes the 3d objects.
What have I tried?
I tried changing the script but its the same as the rotation script for 3D.
I will appreciate any help!
Project Link: https://scratch.mit.edu/projects/1118288695
- Whitepatchwastaken
-
100+ posts
[NEED HELP ASAP] Camera rotation sqeezes the 3d projection
It looks like this is faulty camera rotation code? If I had to guess your code is squishing the points together instead of spinning them.
- RBlueCakes
-
40 posts
[NEED HELP ASAP] Camera rotation sqeezes the 3d projection
its not its the same thing I used mathmathmaths rotation script
Last edited by RBlueCakes (Jan. 13, 2025 17:38:02)
- KevLeCodeur
-
38 posts
[NEED HELP ASAP] Camera rotation sqeezes the 3d projection
The problem is that you put the “Perspective projection” block before the Rotation, if it still seems a bit buggy it's normal you just didn't implement z clipping yet and also maybe because you did something wrong when projecting the cube (that's why it looks squished on the z axis).
Hope this helped!
Hope this helped!
Last edited by KevLeCodeur (Jan. 13, 2025 18:05:55)
- RBlueCakes
-
40 posts
[NEED HELP ASAP] Camera rotation sqeezes the 3d projection
it works just now the drawing process is messed up
Last edited by RBlueCakes (Jan. 14, 2025 17:47:17)
- Discussion Forums
- » Help with Scripts
-
» [NEED HELP ASAP] Camera rotation sqeezes the 3d projection