3-D Movement
..........................................:::::::::::::::::::::::::::::.................................................
I was thinking of making a game where you use scroll x and 3-D movement. I know how to scroll but how do you make things move in 3-D? So I'm asking all Scratchers to find out how to make a 3-D movement. Please help me.
If you are thinking of things changing y position and size, you're wrong. I'm talking about objects moving past your side.
I'm working on a paintball game.
Last edited by Jumpy_Dude555 (2009-06-20 20:58:03)
Offline
It's quite a difficult process, but you may want to look at BigB's 3D Stunt Flyer if it's something along those lines that you're looking for.
Offline
You're making a 3d-like fps? I'm not sure, but I think you mean something like that: http://scratch.mit.edu/projects/xolor/567864 . That's my 2.5d fps engine which allows you to move left, right, forwards, backwards and even turning around. But if you mean real 3d in scratch, then it will become more complicated...
Offline
I have also had trouble creating a 3d world, and I never could have figured it out myself. The great one (dolfus555) made this.
http://scratch.mit.edu/projects/Dolfus555/205888
P.S I did paintball and it HURTS! :0
Offline
soft319 wrote:
The only way I know is blender.
Blender wont work because you can't import the full 3D files into scratch, you would have to first convert them into a 2D file then import them all,
You could technically use Google Sketch Up and save them as 2D but you wont get the same effect as using full 3D.
Offline
Look at M44's project Behind Enemy Lines.Also,for 3-D movement where you appear to get closer to an object,you could have the up and down arrow keys control a variable that controls size,and if you want walls,you could have the walls change into a diffrent costume depending on the ScrollX so it looks like your viewing them from an angle,but that would be getting REALLY complicated.
Last edited by Brass45 (2009-08-26 08:35:27)
Offline
i have a * answer for it use my Roit Engine u can find it in Space Combat 3d http://scratch.mit.edu/projects/fanofcena/572735 here if u want Better Movement u could use this engine http://scratch.mit.edu/projects/fanofcena/650060
Offline
I have a 3D dragon that moves his head, u actually can import a 3D file as long as its not too big. You could compress the file if it's too big.
Offline
the only thing I know is if you're going to waste so much time on making a 3D game on scratch you should rather be wasting time on making a 3D game on something that is meant to support 3D gaming
Offline
dingdong wrote:
the only thing I know is if you're going to waste so much time on making a 3D game on scratch you should rather be wasting time on making a 3D game on something that is meant to support 3D gaming
I agree use a 3d made program to make 3d things,
for game engines you can get Unreal Editor by picking up a copy of Unreal Tournament 3 or Gears of War 2 which is has a bit of learning to do but it is a really strong program when you get used to it,
there are also some SDK's out there to use like OGRE,
also you can learn how to script 3d (download Microsoft Visual C# 2008 and XNA game studio)
there are several other ways but I wont go into them.
Offline
solstice wrote:
dingdong wrote:
the only thing I know is if you're going to waste so much time on making a 3D game on scratch you should rather be wasting time on making a 3D game on something that is meant to support 3D gaming
I agree use a 3d made program to make 3d things,
for game engines you can get Unreal Editor by picking up a copy of Unreal Tournament 3 or Gears of War 2 which is has a bit of learning to do but it is a really strong program when you get used to it,
there are also some SDK's out there to use like OGRE,
also you can learn how to script 3d (download Microsoft Visual C# 2008 and XNA game studio)
there are several other ways but I wont go into them.
yes you can use a 3d program to make 3d things. but its funner to try to make 3d things on stuff your not soposed to (well FAKE 3d). its just a fun challenge.
Offline
awsomemaster wrote:
solstice wrote:
dingdong wrote:
the only thing I know is if you're going to waste so much time on making a 3D game on scratch you should rather be wasting time on making a 3D game on something that is meant to support 3D gaming
I agree use a 3d made program to make 3d things,
for game engines you can get Unreal Editor by picking up a copy of Unreal Tournament 3 or Gears of War 2 which is has a bit of learning to do but it is a really strong program when you get used to it,
there are also some SDK's out there to use like OGRE,
also you can learn how to script 3d (download Microsoft Visual C# 2008 and XNA game studio)
there are several other ways but I wont go into them.yes you can use a 3d program to make 3d things. but its funner to try to make 3d things on stuff your not soposed to (well FAKE 3d). its just a fun challenge.
Well nothing is real 3d on computer as ur screen is just of a millimeter width in which graphics are rendered such that u could be illusionised as living in a realtime environment
Offline
if your going to make 3D, regular sprites aren't going to work, you will probably need to use wire frame and have a pen and points that move for a better 3D look.

Offline
I've created some 3d projects. I agree with awsomemaster that it's a fun challenge. I just posted a long post post about 3d scratch projects over there. BUT I reposted it below, because I think here in advanced topics is a better place for it.
--------------------
I believe a realtime first person, explorable 3d environment IS possible in Scratch. It just takes a *TON* of work to figure out and create. s65 http://scratch.mit.edu/users/S65 and others have made good progress.
Solid and texture surfaces are not practical in Scratch, but wireframe art is.
Some of my projects explore rending of wireframe 3d objects. You can use these as a starting point in your projects.
3d environments are made easier by just positioning and resizing sprites, and not worrying about trying to draw walls and shapes. See s65's SpRiTeD 3D Projection Engine: http://scratch.mit.edu/forums/viewtopic.php?id=6033 Another good approach is to use prerendered backgrounds, and just change as needed. But this is limited, as you need a ton of art to do much.
But like I said I think wireframe 3d environments are possible:
A challenge is that lines that run off the screen are not projected where they should,
(Try zooming into my 3d desk project for an example. http://scratch.mit.edu/projects/AddZero/347789 ) so walls become deformed. I started working on a solution here: http://scratch.mit.edu/projects/AddOne/564258
Also this can be used to hide walls that are behind other walls.
It is very important the the renderer only draws walls that are visible, otherwise in will waste allot time drawing walls off in the distance, that should be hidden. This very important if you want large environments,.
I think the DOOM (one of the first '3d' games that ran on slow computers) 3d engine is a good design to pattern off of. Maps were 2d vector sectors, joined together. The engine projected just the walls that were necessary, hidden walls across the level were not rendered, just the ones visible to the player. They used a technique called raycasting to render the walls. s65 attempted this with a Wolfenstine (one of the first fps that has even lower computer requirements.) like engine: But solid rendering is not practical in scratch.
Instead, I'd just render the outlines of the walls. The map structure can be similar to DOOM, a tree or web like data structure can be used to tell what sectors are connected to what. I explored the tree structure idea some here: http://scratch.mit.edu/projects/AddZero/346118 A similar technique could be used to store the map information into one list that can be read quickly.
I think it would render faster if the engine know what sectors were visible from the current sector without raycasting. So this can be figure out beforehand for each sectore and stored in another list.
Well. I rambled allot. I hope this was helpful. Goodluck. I may be able to help further if you have questions.
Offline
I know that probably everyone knows this by now,but RHY375467 is the leading expert in 3D on scratch.His now famous GALE3D projection engine uses trig to calculate an objects rotation and position,and he has proved with at least half a dozen tech demos that the long-standing belief"you can't make true 3D in scratch" is dead wrong.
Offline
Brass45 wrote:
I know that probably everyone knows this by now,but RHY375467 is the leading expert in 3D on scratch.His now famous GALE3D projection engine uses trig to calculate an objects rotation and position,and he has proved with at least half a dozen tech demos that the long-standing belief"you can't make true 3D in scratch" is dead wrong.
Yeah i agreee
Offline
fanofcena wrote:
Brass45 wrote:
I know that probably everyone knows this by now,but RHY375467 is the leading expert in 3D on scratch.His now famous GALE3D projection engine uses trig to calculate an objects rotation and position,and he has proved with at least half a dozen tech demos that the long-standing belief"you can't make true 3D in scratch" is dead wrong.
Yeah i agreee
yep, i use his engine alot, it's very, very helpful

Offline
TobiOlivers wrote:
fanofcena wrote:
Brass45 wrote:
I know that probably everyone knows this by now,but RHY375467 is the leading expert in 3D on scratch.His now famous GALE3D projection engine uses trig to calculate an objects rotation and position,and he has proved with at least half a dozen tech demos that the long-standing belief"you can't make true 3D in scratch" is dead wrong.
Yeah i agreee
yep, i use his engine alot, it's very, very helpful
![]()
But very very very very slow ;P
better way i made it on an oldy language the c++ and got extraordinary views
Last edited by fanofcena (2009-12-13 10:41:24)
Offline
fanofcena wrote:
TobiOlivers wrote:
fanofcena wrote:
Yeah i agreeeyep, i use his engine alot, it's very, very helpful
![]()
But very very very very slow ;P
better way i made it on an oldy language the c++ and got extraordinary views
which projects that? or is it even a project...

Offline
Filtaido wrote:
check out http://www.3drad.com/ I do not think Sratch is capable.
How is that related to this post?
Offline