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

Report as inappropriate.

qnanqing
qnanqing presents ...

2009/3/31

Water

this is very very slow
because of the Water object is
1 pixel
or.. 1 pixel/object

any solution for thiiis ?

Not completed yet..

Whoaa, i try in applet, it has a good speed
the water cant filled up yet..
because there is a bug
*help me please

5363 views / 980 in the last 7 days

2 votes | 0 in the last 7 days

Tags: simulation

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Tue Mar 31 15:23:26 UTC 2009
mjrb4mjrb4

2009/3/31

The solution for the speed that springs to mind would be to use one actor for the body of water, set it's image to a polygon and then adjust the physics accordingly by the points of the polygon. If the body of water splits, then it could form another actor that behaves the same way. A lot more complicated than the way you've done it, but if done properly it would be faster and probably more realistic!
Oooh! Fluid simulations! I had a working one a while ago, but i didn't upload it. I might refine it a bit and upload it later. As for speed, how are you determining the physics for a particle? For my physics, i had If it can fall, fall if it cant fall, move randomly to an open adjacent space.
qnanqingqnanqing

2009/4/1

mjrb4 : i will try ! :D Builderboy2005 : i determine my particle.. if there is a White Colored background, fall if there is a Blue Colored background, move to right (i think if random then it will be "shaking") If there is a Brown Colored at right, move to left
qnanqingqnanqing

2009/4/1

Oh no, its too hard for me to draw polygon :(
qnanqingqnanqing

2009/4/1

other solutions ???
BlackholeGFBlackholeGF

2009/4/2

I used one pixel actors for my pyro-sand scenario, it was really slow.
You should check out my scenario here http://greenfootgallery.org/scenarios/648 It uses single pixel actors, but in a unique and fast way It could also be expanded to incorporate multiple materials.
qnanqingqnanqing

2009/4/5

i do! thats great !
qnanqingqnanqing

2009/4/5

i did, i mean :D

See all comments

Want to leave a comment? You must first log in.

Who likes this?

delmar Builderboy2005