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

2013/10/2

Greenfoot 3D

1
2
3
4
5
JetLennit JetLennit

2013/10/29

#
O O!!!! *Raises hand* A ui for models?
GreenHouse GreenHouse

2013/10/29

#
:D Models and textures, right :D
JetLennit JetLennit

2013/10/29

#
When is it coming out?
GreenHouse GreenHouse

2013/10/30

#
This may take some time.. There are so much cool thinks i like to add befor publishing the final version :D I'd like to implement http://www.greenfoot.org/scenarios/5806 and http://www.greenfoot.org/topics/2152 and http://www-is.informatik.uni-oldenburg.de/~dibo/teaching/pkjava/droidfoot/... more ideas? And maybe (very small chance...), i can talk to some greenfoot coders, to bring Greenfoot3D to the official download area ;) Nut i don't think so; they don't like Greenfoot-Children :(
JetLennit JetLennit

2013/11/4

#
You should also add collision detection for 3d objects
GreenHouse GreenHouse

2013/11/4

#
Yeah...
Kartoffelbrot Kartoffelbrot

2013/11/9

#
awesome
GreenHouse GreenHouse

2013/11/27

#
Implemented: Endless World & FullScreen Mode See http://www.greenfoot.org/scenarios/10094 changes will apply in the final version, this is just a demonstration ;)
GreenHouse GreenHouse

2013/12/3

#

⇒ Greenfoot 3D Documentation

based on current state; with spelling errors
JetLennit JetLennit

2013/12/3

#
You should rename this something like Greenfoot+ because it has gone waaaay past just 3D =D
GreenHouse GreenHouse

2013/12/4

#
UserInfo storage space too small? use the localStorage :D Greenfoot3D localStorage Demo ( 5MB even for not logged in users )
bourne bourne

2013/12/4

#
I'm curious, where is this "localStorage" physically? And it looks like you can only save images for now? via the saveImage method, do you then retrieve the image via the GreenfootImage constructor with filename? And how does this work with not logged in users, in that what would it mean to be persistent in this context?
bourne bourne

2013/12/4

#
Also, what happens when you try to store past 5MB? I don't see indication from the doc of an Exception. Also how do you free up space (delete images), can you do something like saveImage(null, fileName)? Going along with that, I would find it useful knowing amount of memory used out of the 5MB as well as list of file names (these images) and possibly file size
Kartoffelbrot Kartoffelbrot

2013/12/5

#
He hacked the local storage of his university :D
GreenHouse GreenHouse

2013/12/5

#
Sorry sorry bourne,i didnt update the api together with the scenario; this is the doc: http://metropy.net/greenfoot3d/doc/greenfoot/StorageHandler.html The 'save' button:
// tha save button
new GreenfootButton("Save","save.png")
{
    public void onClick() {
        
        StorageHandler sh = Greenfoot.getStorageHandler();
        
        // we have a local storage?
        if(sh != null){
            
            // the background image
            GreenfootImage image = getBackground();  
            
            // save the background image
            sh.setItem("myImage", image.toString());
            
            // display dialog
            GreenfootDlg.showInfoMessage("Save image", "The image has been saved.");
            
        } else {
            
            // no local storage
            GreenfootDlg.showWarningMessage("Info", "Storage not supported!");
            
            // we can disable this button
            setEnabled(false);
        }

            
    }
};
and the 'load' button:
// the load button
new GreenfootButton("Load","load.png")
{
    public void onClick() {
        
        StorageHandler sh = Greenfoot.getStorageHandler();
        
        // we have a local storage?
        if(sh != null){
            
            // get storage object
            String data = sh.getItem("myImage");
            
            // check if storage isn't empty
            if(data != null) {
                
                GreenfootImage image = new GreenfootImage(data);
                setBackground(image);
                
            } else {
                
                // storage was empty
                GreenfootDlg.showWarningMessage("No Storage", "Unable to load storage!\nStorage is empty or invalid!");
            
            }
        } else {
            
            GreenfootDlg.showWarningMessage("Info", "Storage not supported!");
            
            setEnabled(false);
        }

            
    }
};
There are more replies on the next page.
1
2
3
4
5