1-Sprite Cube Renderer

Install Java to view this project right on your browser!

user_icon S65 shared it 3 years, 8 months ago
user_icon Based on S65's project
1339 views, 44 people love it, 10 remixes by 7 people, 315 downloads, in 13 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
3D_ink 3D_ink 3 months, 4 weeks ago

I made a remix! It's faster, colorful, and reminds me of a screen saver:) (link to project)

sthakkar sthakkar 4 months, 3 weeks ago

1214 views! wow

zubblewu zubblewu 4 months, 3 weeks ago

thats not a cube

BomberE BomberE 3 months, 1 week ago

Then what is it?

honzik honzik 5 months, 2 weeks ago

wwwwwwwwwwwwwwwwwwooooooooooooooooooooooooooooowwwwwwwwwwwwwwwwwwwww !?!?!?!

estorken estorken 6 months, 2 weeks ago

if you rapidly change the size you get a cube inside a cube

estorken estorken 6 months, 2 weeks ago

it looks like a pentagon when the point is in the middle. i can't draw these normally, idk how you drew them with code. it is really annoying that bad code runs faster. good job love it

JSO JSO° 8 months, 1 week ago

Hi S65! I remixed: (link to project) . I made it into a music visualizer, is that ok with you?

Dardyn5 Dardyn5 8 months, 2 weeks ago

uh... it haz 2 sprites

msfan98 msfan98 10 months ago

it's kind of funny when you think that the cube is inverted, then it looks all distorted. then you realize that your brain was put in backwards

Lventor Lventor 10 months, 1 week ago

on flash it looks great

noolabguy noolabguy 10 months, 1 week ago

I swear you make stuff like this just to make the rest of us look bad. This (along with all your other projects) is awesome!

WindowsExplorer WindowsExplorer 2 months ago

Ok!

WindowsExplorer WindowsExplorer 2 months ago

Is that supposed to be an insult or complement?

(view all replies)
Awesomedog Awesomedog 11 months, 2 weeks ago

it be cool if there was stuff in it and if u moved the box the stuff would move too!

Schniper Schniper 12 months ago

1000th veiw :o!

BrownWolf BrownWolf 1 year, 3 months ago

It's 2 sprites.

OrcaCat OrcaCat 1 year ago

That's what I was gonna say!

(view all replies)
gtoal gtoal 1 year, 5 months ago

I adapted your code to work from a model instead (a list of vectors) - (link to project) - but it is painfully slow, even with only 20 vectors. Any ideas for a significant speedup? In a real programming language I'd switch to all integer fixed point, and a lookup table for sin/cos etc, but that wouldn't help here :-/

Lightnin Lightnin* 1 year, 4 months ago

*ahem* "real programming language"? XD

(view all replies)
amcerbu amcerbu 1 year, 5 months ago

oh nice- you got the perspective to work. All cube wireframe projects I have no perspective.

taddl taddl 1 year, 6 months ago

make other objects!

sniperman sniperman 1 year, 7 months ago

... but theres 2 sprites

Daffy22 Daffy22 1 year, 7 months ago

very nice! BTW:- This is a cool illution, the way you see it is that it the back is at the back and the front is at the front. But if you imagine it as the back squeare at the front, the cude appears to be weird, out of shape ect. It is really cool!

estorken estorken 6 months, 2 weeks ago

lol, i did that by accident.

Scaper Scaper 1 year, 5 months ago

lol it took me a second to realize what you said and you are right

kyle89706 kyle89706 1 year, 7 months ago

could we use this same rendering to say load a level?

MizpahSDA MizpahSDA 1 year, 7 months ago

You really have a talent. When I get some time. Will try and see if I can color the surfaces. Got any ideas anyone?

scocto scocto 1 year, 8 months ago

you must have had a lot of time on your hands

brokeng3 brokeng3 1 year, 10 months ago

omg! l0ve it!

BulboGrubb BulboGrubb 1 year, 11 months ago

Nice 3-d project!

hackjack hackjack 2 years, 1 month ago

maybe it will go faster if you make one sprite for each of the corners!

NandoKilla NandoKilla 2 years, 2 months ago

Yo, try deleting half the vertices and adding textures instead? I mean, using variables and different sizes + math and sensors= a real time fully 3d game made entirely in scratch. Figure it out, delete half the vertices not visible in actual solid frame, and replace with texture and lamp effects. Enjoy my words of advice!

14God 14God 1 year, 9 months ago

That would be way to slow in scratch. A 3d graphics engine needs to be written on a much lower level language. Scratch is built upon many lower level languages all leading down to binary. Every level up is slower but easier to use.

AtomicBawm3 AtomicBawm3 2 years, 3 months ago

hey, can I use this for a game I'm making? I'll make sure to give you credit!

Lukecherry01829 Lukecherry01829 2 years, 4 months ago

it says 2 sprites

NandoKilla NandoKilla 2 years, 2 months ago

It says two because of the instructions on top!

(view all replies)
I-8-NY I-8-NY 2 years, 5 months ago

i have been trying to find a real 3d cube program and this one work!!! good job S65

14God 14God 2 years, 5 months ago

DUDE!!!

tcb tcb 2 years, 7 months ago

why is there no 3D games yet? theres enough here on scratch to allow for it...

Ryuunosuke Ryuunosuke 2 years, 7 months ago

KOOOOOOOOOOOL!!!

nbness2 nbness2 2 years, 10 months ago

WOOW! COOL! ALOTO SCRIPTS!

Nerdynerd911 Nerdynerd911 3 years ago

Take a look at my two 3-D projects.

NXTGeek NXTGeek 3 years, 1 month ago

please deinfe "bad" :) it laggs a little...:/ that might be unavoidable.

orangesoda orangesoda 3 years, 2 months ago

how did you make this?

registeel registeel 3 years, 3 months ago

wow! Awesome 1 spriter

buddha108 buddha108 3 years, 4 months ago

it would be even better if it was one sprite but still, it going on my favs. :P

cds56 cds56 3 years, 4 months ago

false advertising, but still cool, it has two sprites, and i read the description

lollypopsugarpuff99 lollypopsugar… 3 years, 6 months ago

this is really great!! How did you make it??

bubble-07 bubble-07 3 years, 6 months ago

Yayy!!! Now with the new version of scratch, you can make arrays! That means that you could have users specify a 3d model to draw! Awesome!

Dastyruck Dastyruck 3 years, 6 months ago

Great Project!

DrSuper DrSuper 3 years, 7 months ago

Wow this is amazing. i was a wiz at Trig in my younger days now I got to figure out how this works;=< Two questions for you: 1. Can you add other variables where we could specify x, y, and z in whole numbers? e.g. a 2x2x2 or a 2x2x1 rectangular prism? 2. Can you fill (color) the faces of the cube.

S65 S65 3 years, 7 months ago

1. Yes, I could. 2. No, not in realtime at least.

(view all replies)
bubble-07 bubble-07 3 years, 7 months ago

Someone should write something on the optomization of scratch. Because scratch slugghish.

MasterOfMac MasterOfMac 3 years, 7 months ago

hmmm.... my curiosity is killing me. no bandwidth almost here. how is this so quick? you can't even see the period of time when the line has been cleared...

S65 S65 3 years, 7 months ago

it only clears after the entire cube has been drawn, and then quickly draws the cube WITHOUT using repeat until's or loops (to make it superfast).

(view all replies)
stevii stevii 3 years, 7 months ago

this is cool!

Youssef900 Youssef900 3 years, 7 months ago

cool!!

Nascar155 Nascar155 3 years, 8 months ago

cool

deatheater deatheater 3 years, 8 months ago

It says 2 sprites :(

S65 S65 3 years, 8 months ago

1 sprite is for the cube itself, the other is just the origin (it just sets and changes variables). If felt like it, I could condense it down to truly 1 sprite.

(view all replies)
Ketchup13 Ketchup13 3 years, 8 months ago

wow this is amazing!!!

s_federici s_federici 3 years, 8 months ago

Incredibly smooth animation. Well done!

Silverkey17 Silverkey17 3 years, 8 months ago

Amazing! I love it!

MaplerxD MaplerxD 3 years, 8 months ago

Sweet, but sometimes the shape gets distorted, anyways, I'm just being picky, awesome project!

Yo1Yo2Joe123junior Yo1Yo2Joe123j… 3 years, 8 months ago

copie Cat see how to draw 3D and youl see he copied me!

S65 S65 3 years, 8 months ago

No, I didn't. The two projects have completely different scripts, and I had never heard of the project before this. Also, the way in your project is kind of the only way to draw a cube (except for using triangles as polygons).

(view all replies)
redsooty9 redsooty9 3 years, 8 months ago

AWESOME!!

allah allah 3 years, 8 months ago

but otherwise ******* amazing

allah allah 3 years, 8 months ago

ummm... it looks like it says 2 SPRITES!

S65 S65 3 years, 8 months ago

only 1 is used to render the cube, though. The other is just the origin.

chalkmarrow chalkmarrow 3 years, 8 months ago

This is really impressive. And your tutorial in the forums is excellent. It will be interesting to see what people do with it.

Cyclone103 Cyclone103 3 years, 8 months ago

um. never mind.

dingdong dingdong 3 years, 8 months ago

very nice! could you pleez try dirt biking madness! I think it's demonstrating what scratch is capable of at it's max! it's going to be great once done! (link to project)

Please Wait...