This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Textured Cube

Return to Textured Cube

A new version of this scenario was uploaded on Sat Sep 15 16:41:02 UTC 2012 You can now cycle through different textures.
A new version of this scenario was uploaded on Sat Sep 15 16:45:00 UTC 2012 You can now cycle through different textures.
darkmist255darkmist255

2012/9/16

I just saw about a billion brackets. I think I'll try to interpret the drawing method when I'm in a better thinking mode.
MatheMagicianMatheMagician

2012/9/16

Yeah, I really like my for loops and my arrays:)
MatheMagicianMatheMagician

2012/9/16

Oh, and thanks, darmist255, your vote put me in the top 20 most voted for users:)
A new version of this scenario was uploaded on Sun Sep 16 11:34:54 UTC 2012
A new version of this scenario was uploaded on Mon Sep 17 22:46:46 UTC 2012
A new version of this scenario was uploaded on Tue Sep 18 19:52:37 UTC 2012
A new version of this scenario was uploaded on Thu Sep 20 00:03:28 UTC 2012 Now it can actual play videos!
A new version of this scenario was uploaded on Thu Sep 20 00:16:21 UTC 2012 Improvements on the video.
A new version of this scenario was uploaded on Thu Sep 20 00:33:02 UTC 2012 I thought this was a cooler screenshot.
A new version of this scenario was uploaded on Sat Sep 22 16:16:49 UTC 2012 Added a galaxy image that can be accessed by pressing 8.
A new version of this scenario was uploaded on Thu Sep 27 11:58:22 UTC 2012 Made the video cooler.
A new version of this scenario was uploaded on Wed Oct 03 12:09:55 UTC 2012 Added a new slower mode that allows you to make bigger cubes.
A new version of this scenario was uploaded on Wed Oct 03 12:20:57 UTC 2012 Added a new slower mode that allows you to make bigger cubes.
A new version of this scenario was uploaded on Tue Oct 09 18:03:24 UTC 2012 Added a fractal image (thanks to Danpost).
A new version of this scenario was uploaded on Wed Oct 10 00:12:55 UTC 2012 Cube starts out rotating.
A new version of this scenario was uploaded on Wed Oct 10 00:25:43 UTC 2012 Cube starts out rotating.
blahblah26blahblah26

2012/10/10

This is amazing! Immediate thumbs up!
danpostdanpost

2012/10/10

The way you programmed the 'wasd' keys, they are prioritized: up, down, left, then right. It would be nice if combinations (one of 'ws' with one of 'ad') would work on rotating the image at the same time. Also the 'f' key should act like a toggle, but it does not always change to mode (you should use 'Greenfoot.getKey' to catch the 'f' key instead of Greenfoot.isKeyDown).
A new version of this scenario was uploaded on Wed Oct 10 12:00:44 UTC 2012 Implemented the control suggestions by danpost and fixed the toggle.
A new version of this scenario was uploaded on Wed Oct 10 12:24:29 UTC 2012 Added my starfield as an image.
danpostdanpost

2012/10/10

Can you make a translucent cube with bubbles set inside of it (that rotate with the cube). You accomplish that, I will 'like' it. You may have run out of number keys, but there are also plenty of letter keys!
MatheMagicianMatheMagician

2012/10/11

That sounds cool. It will be a little tricky though, so, it might take me a little bit to make it. I think I could have it done by the weekend.
Builderboy2005Builderboy2005

2012/10/11

Hey MatheMagician, I noticed the way you do drawing is to simply draw 100x100 polygons for each visible face. Being that there are about 3 faces visible at a time, that amounts to 30,000 polygons for a single view! Have you considered using a custom polygon routine that could use linear interpolation? That way you could be drawing pixels, not polygons, and might be a lot faster.
MatheMagicianMatheMagician

2012/10/11

Usually, I am actually only drawing 100 pixels by 100 pixels for each face. However, this currently has the limitation of not being scalable. That's when I use the polygon's (in the slow mode), but as you know, this is very slow. I am currently working on what you just mentioned, essentially my own polygon drawing code..
A new version of this scenario was uploaded on Thu Oct 11 11:48:11 UTC 2012 Now scaleable on all levels and uses no fillPolygon.
A new version of this scenario was uploaded on Thu Oct 11 11:51:19 UTC 2012 Better screenshot.
A new version of this scenario was uploaded on Thu Oct 11 12:25:33 UTC 2012 Better screenshot.
A new version of this scenario was uploaded on Fri Oct 12 17:42:52 UTC 2012 Bubbles!! (for Danpost)
danpostdanpost

2012/10/12

What you have created is images of bubbles on the flat surfaces of the cube. (1) the cube is not semi-transparent. (2) the bubble are not 'inside' the cube (rotating around each other) This, therefore, does not satisfy my stated requirements.
MatheMagicianMatheMagician

2012/10/12

The bubbles are in the cube, but it is hard to tell. It is kindof transparent, but I will work on that as well. I'll update it with those improvements.
A new version of this scenario was uploaded on Fri Oct 12 21:03:18 UTC 2012 This demonstrates how the bubbles are being drawn in the cube and it is very transparent now. But the bubbles still don't float.