Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Can you make 3d objects without using the pen tool?
- TopHatSans
-
63 posts
Can you make 3d objects without using the pen tool?
I wanted to make a 3d game but not have to use the pen tool. I want to make it so that the sprite is 3d and acts like its in a 3d environment when with other 3d sprites.
- GlueGourmand
-
100+ posts
Can you make 3d objects without using the pen tool?
I'm not sure about the pen/non-pen distinction here, but I can certainly point you in the direction of other projects that implement a similar system. The most popular way to do 3D graphics is a raycasting engine. You can find a list of them here: https://scratch.mit.edu/search/projects?q=raycaster . If you check through those for projects that don't use the pen, you will have working model for the program you are trying to create.
Remember that sometimes it is easier to fake a 3D effect than to perform the math to generate one on the fly, and that you will have more control and options if you use an outside program and export the sprite images for use in Scratch. For example, I do most of my text layouts so far in the GIMP, and when I want a 3D effect I use an ancient program called Povray. Remember that all programming languages are designed to make some things easy, some things hard, and some things impossible. True 3D work that is done fully in Scratch is in the (hard) category.
Remember that sometimes it is easier to fake a 3D effect than to perform the math to generate one on the fly, and that you will have more control and options if you use an outside program and export the sprite images for use in Scratch. For example, I do most of my text layouts so far in the GIMP, and when I want a 3D effect I use an ancient program called Povray. Remember that all programming languages are designed to make some things easy, some things hard, and some things impossible. True 3D work that is done fully in Scratch is in the (hard) category.
- POS_tutor_
-
100+ posts
Can you make 3d objects without using the pen tool?
You can use clones and brightness effect for making a 3d illusion.
- TopHatSans
-
63 posts
Can you make 3d objects without using the pen tool?
You can use clones and brightness effect for making a 3d illusion.
How would I do that?
- Ankit_Anmol
-
500+ posts
Can you make 3d objects without using the pen tool?
See youtube. Parallax effect on scratch
- aarizkamran
-
100+ posts
Can you make 3d objects without using the pen tool?
The most popular way to do 3D graphics is a raycasting engine. You can find a list of them here: https://scratch.mit.edu/search/projects?q=raycaster . If you check through those for projects that don't use the pen, you will have working model for the program you are trying to create.I'm not sure about the pen/non-pen distinction here, but I can certainly point you in the direction of other projects that implement a similar system.
Remember that sometimes it is easier to fake a 3D effect than to perform the math to generate one on the fly, and that you will have more control and options if you use an outside program and export the sprite images for use in Scratch. For example, I do most of my text layouts so far in the GIMP, and when I want a 3D effect I use an ancient program called Povray. Remember that all programming languages are designed to make some things easy, some things hard, and some things impossible. True 3D work that is done fully in Scratch is in the (hard) category.
3d projection is better and faster than a raycaster
- DerpyHead0
-
1000+ posts
Can you make 3d objects without using the pen tool?
what you want is 2.5D, which is pretty simple.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
z=1 should be the regular sprite size.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
Last edited by DerpyHead0 (Dec. 1, 2020 13:12:36)
- TopHatSans
-
63 posts
Can you make 3d objects without using the pen tool?
what you want is 2.5D, which is pretty simple.z=1 should be the regular sprite size.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
I didn't mean a zoom effect with 2.5D, I meant a 3d effect that makes objects look like they're 3d.
- DerpyHead0
-
1000+ posts
Can you make 3d objects without using the pen tool?
do you mean like acutal 3d sprites then? like having a cube or such entirely as a sprite? because that's not a part of scratch and it's a rejected suggestion. I didn't mean a zoom effect with 2.5D, I meant a 3d effect that makes objects look like they're 3d.
if you just mean sprites looking like they're 3d, you can just put a lot of 2.5d sprites near each other with a small z difference.
Last edited by DerpyHead0 (Dec. 1, 2020 23:33:55)
- 1O1Andrew
-
100+ posts
Can you make 3d objects without using the pen tool?
I know what you mean! DO you mean something like this? https://scratch.mit.edu/projects/355658834/what you want is 2.5D, which is pretty simple.z=1 should be the regular sprite size.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
I didn't mean a zoom effect with 2.5D, I meant a 3d effect that makes objects look like they're 3d.
- TopHatSans
-
63 posts
Can you make 3d objects without using the pen tool?
I know what you mean! DO you mean something like this? https://scratch.mit.edu/projects/355658834/what you want is 2.5D, which is pretty simple.z=1 should be the regular sprite size.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
I didn't mean a zoom effect with 2.5D, I meant a 3d effect that makes objects look like they're 3d.
Yes.
Last edited by TopHatSans (Dec. 2, 2020 03:08:33)
- 1O1Andrew
-
100+ posts
Can you make 3d objects without using the pen tool?
to do that you need to clone, or stamp one sprite, then change the sprite to anotehr one cange y by 1 then repeat. The sprites should be slices of your object from bottom to topI know what you mean! DO you mean something like this? https://scratch.mit.edu/projects/355658834/what you want is 2.5D, which is pretty simple.z=1 should be the regular sprite size.
if you want to change fov / depth / whatever, just multiply z by some number.
note that multiplying z by the acutal fov in degrees wouldn't be correct, the formula to do that is pretty complicated (check project below)
i have a 2.5D engine here.
I didn't mean a zoom effect with 2.5D, I meant a 3d effect that makes objects look like they're 3d.
Yes.
- laieekwang
-
82 posts
Can you make 3d objects without using the pen tool?
TheLogFather wrote:
Introduction
How you go about 3D on Scratch really depends what sort of 3D you're thinking of. I'd say there are, roughly, three types of 3D you can do in Scratch (though you can combine some of them in various ways).
But be warned: I'd really recommend you ensure you are confident creating ‘normal’ games/projects in Scratch before you head into 3D! With that warning, here goes…
1) Top-down costume slices:
This works by taking slices through a 3D object (i.e. you think what each slice looks like), and creating a costume for each (different) slice. Then you ‘stack’ them - placing each slice on top of the previous, with a slight offset. This gives the illusion of a 3D object, and by changing the offset you can even make it look like they are tilted by different amounts. Rotating the costumes will rotate the 3D object in the appropriate way, making it quite an easy method to pull off something that looks quite reasonably 3D.
The game-play is obviously fairly limited to top-down using this approach, though changing the offset of the stacked costumes does give the impression of looking from different angles or heights, so it's possible to make it look more sophisticated with some work.
A project that gives an overview of the idea: http://scratch.mit.edu/projects/1236750/
A studio with numerous examples of this approach (as well as others): http://scratch.mit.edu/studios/22121/
Amount of maths required: fairly minimal (e.g. can get away without trig, since the way the game works would be basically the same as a top-down 2D game, but you just stack costumes to give it some 3D appearance).
2) Costume size with distance:
The most basic way to do this is simply to have the various objects in your game as costumes, and then change the size of the costume with the distance to that object (i.e. the further away it is, the smaller it gets). This limits the game-play to pretty much a two-dimensional surface, because you can only see one view of the objects (unless you create more costumes for some height variation views).
If you put some effort into creating many costumes, one for each viewing angle of each of your objects, then this can give some very impressive results. (And I think combining this with a raycaster for vertical walls is probably the most effective way to create a great-looking 3D game in Scratch.)
A great classic example is Coin Runners 3D: http://scratch.mit.edu/projects/1530618/
An example combining costumes with raycaster: http://scratch.mit.edu/projects/14777574/
Amount of maths required: Some 3D to 2D projection to work out where objects will appear on-screen, and what size to make them. If you want to use multiple costumes, for different viewpoints (like Coin Runners above), then some trig required to get rotation angles to find which costumes to use for the correct view.
3) Pen-rendered ‘full 3D’ objects:
This is the most complicated 3D to do in Scratch. There are a number of things that make it difficult, such as the maths involved, but also some of the limitations of Scratch itself (pen limits, speed, lack of certain types of built-in list operations, etc.)
I call this “full 3D” because it's the only feasible way to create 3D objects in Scratch that can be seen from any viewing direction (i.e. different tilt angles above and below, and all angles around).
If you're going to try this, start with just wireframe objects. You need to think carefully about how you're going to store the information about the objects (e.g. using lists, etc.), and how you manipulate that information (due to the speed of Scratch's script interpretation).
If you're feeling really confident, once you've got wireframe going, you can start to think about filling in surfaces, even with some shading for lighting. There are really not that many Scratchers who have managed wireframe 3D in Scratch - and even fewer who get as far as trying filled surfaces!
A wireframe tutorial: http://scratch.mit.edu/projects/2855520/
An example wireframe game: http://scratch.mit.edu/projects/10015457
An example filled-surface game: http://scratch.mit.edu/projects/10085324
A studio containing examples of ‘full 3D’ projects (and raycasters): http://scratch.mit.edu/studios/201680/
Amount of maths required: Lots! Most helpful is understanding vectors in 3D. Also some trig to deal with angles and rotation.
If you really want to attempt this, I'd suggest you work carefully through the studio in my sig below.
Texturing? Raytracing?
I haven't said anything above about textures (that means drawing some kind of patterning onto surfaces of 3D objects). There's a reason for that… it's simply too much for Scratch at the moment. This is really why the best-looking 3D comes from using multiple-view costumes - because then you get the good-looking detail from a pre-existing costume, rather than trying to draw it all with the pen.
Just to give an idea of how impossible it is to pen-render textured objects that can rotate in a general way in full 3D, and do it quickly enough to use in a game, here are a few examples:
3D textured Minecraft block: http://scratch.mit.edu/projects/10536676
3D textured Link (from TLOZ): http://scratch.mit.edu/projects/10541079
3D textured Minecraft chunk: http://scratch.mit.edu/projects/14128344
3D textured globes: http://scratch.mit.edu/projects/17679303
I also haven't said anything about raytracing (that's different to raycasting). Again this isn't something you can use for a game - though it can produce some nice-looking rendered scenes. Here's a classic example…
Raytraced scene of patterned balls: http://scratch.mit.edu/projects/56074/
- majmor84
-
1 post
Can you make 3d objects without using the pen tool?
I created a 3D without pen demo called well the 3D without pen demo
https://scratch.mit.edu/projects/735942335
https://scratch.mit.edu/projects/735942335
- coolman132f46743
-
100+ posts
Can you make 3d objects without using the pen tool?
You kinda could you should check out 3d city as it dose not use pen.
- AksharPremnath
-
500+ posts
Can you make 3d objects without using the pen tool?
dont necropost
doubt op still needs help
doubt op still needs help
- Discussion Forums
- » Questions about Scratch
-
» Can you make 3d objects without using the pen tool?