Yes, this is 3d, but the projection extent is incorrect: Watch what happens if you change the clipping from 0 to -600; this camera is perfect for a 3rd person game, but not a first person one.
To create a proper first person game, use a scale ratio of a/z, not a/a+z.
It is 3D. The sprites are positioned and scaled using 3D coordinates which means it's 3D. In many proper 3D games you can also see that many objects aren't 3d models, but 2d pictures/animations positioned in 3D.
umm to everybody who says it's no 3-d it is, it has the x,y and z axises you can use the mouse to look around. and it has all the codes for 3-d positioning, and more.
that isn't really 3D. I would like to see someone change the costumes for the different angles so it looks like a real 3d model. also, Scratch disapears if you get too close
Why are you bringing plane rotations into this?? yaw is obviusly supported thats left and right. but no for pitch and roll. btw roll is exactly as it sounds... why does it need to rollover?
I reccomend that when it gets too close it fades. I've been working on a similar thing, but i havnt finished it yet. The hard thing is, it uses a 3rd person view with a rotating turret.
I just ported the Flash code from these tutorials (http://www.kirupa.com/developer/actionscript/3dindex.htm) to Scratch, and made some improvements. I'm 14.
Well you can move left right foward backward, rotate, left and right, but could you make it so you could rotate it from that angle at the moment, to a bird's eye view?
UPDATE 2: More Z-ordering stuff; now it's pretty much perfect from any angle.
UPDATE: Fixed a Z-ordering bug.
This is Release 1 of the SpRiTeD 3D Projection Engine for Scratch. This engine positions a 2D sprite in 3D space using a form of mathematical computation called 3D projection. The 3D projection engine finds the 2D X, Y, and scale from the 3D X, Y, and Z variables that a sprite has.
It supports a first-person camera with panning and rotation. It also has solid objects, with a custom collision radius. This engine includes a "Basic Sprite" which contains the scripts needed for all 3D sprites used in this engine.
Tutorials on how to use this will be posted in the forums. Please note that this is a framework for a game engine, NOT a game.
Comments
You need to be logged in to post comments
Add a Comment
(link to project) have a look at my 3d engine
Very good, but I was looking for 3rd person. D: Know any 3rd person 3d projects? (with a rotating camera)
thank you for the message and someone else is useing my account
ITS SO REALISTIC!!!!! ITS BETTER THAN BATTLEFIELD 3!!!!!!!!
THATS SO NO- TRUE
(view all replies)sucks
no wow
i don't get what's 3d about this...
plenty but theres no rotation in it
How do you change the closeness limit?
In the code, how do you get the cat to stop moving in circles?
whoops I overlooked that. nevermind
I dont understand how this works??????
i made the angles different-but for a house
Yes, this is 3d, but the projection extent is incorrect: Watch what happens if you change the clipping from 0 to -600; this camera is perfect for a 3rd person game, but not a first person one. To create a proper first person game, use a scale ratio of a/z, not a/a+z.
What? XD
awww if it gets too close it disapears
(link to project)
It is 3D. The sprites are positioned and scaled using 3D coordinates which means it's 3D. In many proper 3D games you can also see that many objects aren't 3d models, but 2d pictures/animations positioned in 3D.
It IS 3d. Look closely.
umm to everybody who says it's no 3-d it is, it has the x,y and z axises you can use the mouse to look around. and it has all the codes for 3-d positioning, and more.
This isn't 3D but good project anyways!
U CALL THAT 3D ??!!
this sucks! IVE already done this!
no you haven't
That isn't 3-d. 3-D for scratch means that the sprites are pertaiining to the third dimmension.
NASHPA
UFFF... THIS ISNT 3D!
that isn't really 3D. I would like to see someone change the costumes for the different angles so it looks like a real 3d model. also, Scratch disapears if you get too close
thats not 3d.
Very nice!
i know
in the tutorial form all the links are broken. could you give me some more links?
does this support pitch, yaw, and roll rotations?
very good question.
Why are you bringing plane rotations into this?? yaw is obviusly supported thats left and right. but no for pitch and roll. btw roll is exactly as it sounds... why does it need to rollover?
(view all replies)i love it
!!! I AM GOBSMACKED! (Just increase the size factor and allow the camera to move and add other objects and it would be perfect!!!)
it keeps zooming around the screen...
Can you look at mine and improve it please? Cause I can see I'm really doing something wrong...
WADA???!!!
COULD YOU MAKE A THIRD PERSON ONE PLEASE!!!!!!!!
To make it third person, just add a sprite that always moves with the camera.
if you like D.K repyl to this masge
Go Donkey Kong!
Scripts aren't complicated...I go to game design college.
I made a game like this. (link to project)
too complicated scripts ...
I have just posted my game I made using your engine. Thanks so much for your time in building it!
I absolutly love this engine! THX!
This is really great! THANK YOU SOOOO MUCH 4 POSTING!!!
Oh my god. I GET IT! YAY!!!
ah, I was wondering untill I saw the last part of the notes.....could you add in two cats to demonstrate a little better?
i doesn't look very 3d???
sweet!
oh, nevermind. you should add more sprites for more effect.
what are the controls?
cool, but what do you do in it??
Yeah, anyone can remix it. There are tutorials on how it works and how to use it in the forums: (link to forums)
This is just an engine, which you can modify and remix to make psuedo-3D games (with a lot of work).
(view all replies)Using it. Thanks
You're like the poinner of 3-D scratch
he really is!
I reccomend that when it gets too close it fades. I've been working on a similar thing, but i havnt finished it yet. The hard thing is, it uses a 3rd person view with a rotating turret.
Dude how did you figure this out!! How old are you anyway?
I just ported the Flash code from these tutorials (http://www.kirupa.com/developer/actionscript/3dindex.htm) to Scratch, and made some improvements. I'm 14.
Man, It's just, so COOL!!!!
Woah... Okay this might take a while to figure out...
There are tutorials on how it works and how to use it in the forums. (link to forums)
(view all replies)Theers NO 3D
yes there is. you can move in 3d and rotate the camera in 3D. you can also add more objects and have them show up realistically in 3D.
Well you can move left right foward backward, rotate, left and right, but could you make it so you could rotate it from that angle at the moment, to a bird's eye view?
you should make him zoom in more
Cool! Z ordering? so there's another cat somewhere in there?
Holy cow. Beautiful work.
No, but if you add another one and give it a different Z position it'll show up right.
this will be interesting...cannot wait to see the games that spawn from it!
Sweet