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?
Whoa! It is complete...I've been playing with your 3D Car Racing and having fun cranking the CameraY up to 300...any chance of camera rotation? I'd try it myself, but I'm not good (really bad) at trig. Anyway, I'm going to modify this and use it in a game, I think. Thanks!
Lighting probably won't slow anything down. I'm planning on having two variables for lighting; Hue and Brightness. Hue is just a number that corresponds to ROYGBIV, and Brightness is the intensity of that color. Lighting can then be based on the distance to the light, which is fairly easy to compute, and with the Hue-Brightness system sprite coloration will be fairly fast too. If all else fails I'll just use Brightness and scrap light color =P
A new version of the 3D Car Racing project will probably be used in my on-forum tutorials. It'll have dynamic ground too, based on CameraY (in the old demo, the rocks didn't match up to the horizon when the CameraY got too high). And as for the completeness of this, I'm going to try and add lighting. I have no idea how I'll do that =P
Yes. It does work. (But only with one image. I'm working on getting "real" pen 3d. (So far at 4 fps) (Good for a turn-based rpg, but not much else) (Oh, and only 15 vertices) (I can make a tree) (I'm planning on making a game with it, not an rpg. (An action game that might be slow. (For drawing, at least. It will be blocky, but it will have speed.)
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
Very nice!
in the tutorial form all the links are broken. could you give me some more links?
does this support pitch, yaw, and roll rotations?
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
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
Whoa! It is complete...I've been playing with your 3D Car Racing and having fun cranking the CameraY up to 300...any chance of camera rotation? I'd try it myself, but I'm not good (really bad) at trig. Anyway, I'm going to modify this and use it in a game, I think. Thanks!
3D sound wouldn't work online, because online the volume functions don't work for sounds.
Lighting probably won't slow anything down. I'm planning on having two variables for lighting; Hue and Brightness. Hue is just a number that corresponds to ROYGBIV, and Brightness is the intensity of that color. Lighting can then be based on the distance to the light, which is fairly easy to compute, and with the Hue-Brightness system sprite coloration will be fairly fast too. If all else fails I'll just use Brightness and scrap light color =P
A new version of the 3D Car Racing project will probably be used in my on-forum tutorials. It'll have dynamic ground too, based on CameraY (in the old demo, the rocks didn't match up to the horizon when the CameraY got too high). And as for the completeness of this, I'm going to try and add lighting. I have no idea how I'll do that =P
(view all replies)nice job
Yes. It does work. (But only with one image. I'm working on getting "real" pen 3d. (So far at 4 fps) (Good for a turn-based rpg, but not much else) (Oh, and only 15 vertices) (I can make a tree) (I'm planning on making a game with it, not an rpg. (An action game that might be slow. (For drawing, at least. It will be blocky, but it will have speed.)
You can actually customize this engine to get pen 3D. I made a 3D wireframe cube with this, haven't tried to do much more yet.
(view all replies)