View unanswered posts | View active topics It is currently Mon May 06, 2024 6:58 pm



Reply to topic  [ 111 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next
 Hydrodynamic Challenge! 
Author Message
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Hydrodynamic Challenge!
not really, most people these days have a 1.5ghz core 2 or celeron.. but i have a P4 box that hates CC like the plague, and a laptop that loves it. guess which i use :P
THAT WATER TOY IS AWESOME
will kotsoft give away the source for it or not? it looks like MOPixels, lol..


Fri Mar 20, 2009 2:45 am
Profile WWW
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post Re: Hydrodynamic Challenge!
Miles_T3hR4t wrote:
Daman, in the method I'd defined, you know you could do liquids, as defining the area (shape) of the body of water, and then define high and low pressure areas in it, and allow it to warp itself. water would logically re-seal itself as well, so even if you drop something it int, it will sink, and get sealed up.


CC really doesn't have the functions necessary for calculating or drawing something like this. If we had something equivalent to gmod's surface.draw, it might work.

I wish I could see that without crashing Zalo. But yes, the thing is, that's just optimized internally. It'd be great if Data would do that.


Fri Mar 20, 2009 2:54 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Hydrodynamic Challenge!
Geti, numgun, a developer of the game, uses a computer that's the same as mine but with less RAM. In fact, pretty much everyone I know that plays CC uses a computer like that. No, I don't live in a slum or ghetto or third-world country. It's just that the only people that actually get around to joining the forums here tend to be modders and coders - most of whom have gaming-class PCs.


Fri Mar 20, 2009 3:11 am
Profile WWW

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Hydrodynamic Challenge!
No way, TLB. I have a 1.5 Ghz 512 Mb or Ram and it runs fine, not incredibly good or anything, just fine.


Fri Mar 20, 2009 3:38 am
Profile WWW
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: Hydrodynamic Challenge!
Hey guys, just for your information, that is the way I am doing it. Only, this way is like 500x faster.

You are like: Checking every other particle is the only way.

I am like: Checking only particles that are already close to it is a better way.


Fri Mar 20, 2009 4:23 am
Profile

Joined: Wed Mar 18, 2009 1:15 am
Posts: 6
Reply with quote
Post Re: Hydrodynamic Challenge!
yeah for that other java water demo i was just getting started multithreading (i made it over a year ago, before i got more advanced with multithreading), and while it works fine on dual cores and hyperthreaded machines, it goes really screwy for the single core machines. the motion would have been smooth if i had pulled off multithreading correctly at the time. but i think CC should be able to handle say maybe an additional 1000 particles on top at least.

@lord tim, yeah, i use a uniform grid for my demos because the particles are equally sized. i don't really use any quadtrees cause they are more complex and have a little more overhead. i update the grid cells only when particles move in or out, so each step only a few grid cells get updated, so the size of the grid doesn't really affect anything unless memory is the bottleneck, which it seldom will be in 2d. memory is usually pretty efficient in 2d.


Last edited by kotsoft on Fri Mar 20, 2009 4:33 am, edited 1 time in total.



Fri Mar 20, 2009 4:27 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Hydrodynamic Challenge!
Ah, but CC doesn't support 2 cores. It just uses one. So you'd be better off using a "4 Ghz Pentium 4" single core than a 3.0 Ghz Dual Core like me.


Fri Mar 20, 2009 4:29 am
Profile WWW

Joined: Wed Mar 18, 2009 1:15 am
Posts: 6
Reply with quote
Post Re: Hydrodynamic Challenge!
yeah, i was just mentioning a little glitch in the java applet when i multithreaded it. it was one of my first attempts and i separated the drawing of the particles and the physics to different threads. i've fixed those problems in my newer sandboxes, but anyways, we can totally make the fluid simulation for single core too. 1000 particles is a pretty pessimistic estimate i made for single core computers and simulating on top of CC.


Fri Mar 20, 2009 4:38 am
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: Hydrodynamic Challenge!
how much lua do you know kotsoft? someone with experience emulating fluids to such an.. awesome degree is likely going to be more successful than the majority of us. looking at the water2 demo, getting that many particles into CC isnt actually an issue. it'll be doing collisions with that many particles :P


Fri Mar 20, 2009 5:11 am
Profile WWW

Joined: Wed Mar 18, 2009 1:15 am
Posts: 6
Reply with quote
Post Re: Hydrodynamic Challenge!
i only took a little glance at lua, but it's understandable, and i should be able to learn it. the pseudocode for that water2 demo after the neighbor searching is done is earlier in the thread. i've been really busy with other stuff these weeks but there's also this other simulation method that i want to try(the particle in cell methods/material point method) as soon as i get the time.


Fri Mar 20, 2009 5:59 am
Profile
User avatar

Joined: Mon Jun 04, 2007 5:55 am
Posts: 1627
Location: Ohio
Reply with quote
Post Re: Hydrodynamic Challenge!
i have an AMD Athlon 64 processor, and only 512 MB of ram, and I don't have a problem. 2GB of VRMem will do that. I think you guys should all set up VR Mem of +1.5 GB and try again.

also the java wouldn't load for me (but I have had .exe's of physics tests like that, i know how it works.)


Fri Mar 20, 2009 7:25 am
Profile YIM WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Hydrodynamic Challenge!
TheLastBanana wrote:
Geti, numgun, a developer of the game, uses a computer that's the same as mine but with less RAM. In fact, pretty much everyone I know that plays CC uses a computer like that. No, I don't live in a slum or ghetto or third-world country. It's just that the only people that actually get around to joining the forums here tend to be modders and coders - most of whom have gaming-class PCs.


I still disagree with calling Numgun a developer of anything other than content.

Anyways.

I have about three laptops with less than 2 ghz processor speed, and 1gb ram.

Then I've got a 3.2 ghz dual core with 2 gb ram.

CC isn't written for two cores, but having two cores still helps plenty.


Fri Mar 20, 2009 2:11 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Hydrodynamic Challenge!
Hrm. Well, I guess that confirms my suspicion that my computer is some kind of freak.
Seriously though, it probably needs to be defragged and repartitioned, in its 6 years with me I've never done it. Chances are there are also a bunch of temporary files on it too. Ditching it soon anyway.
Anyway, I'm getting entirely off-topic now. If you need to test the particles on a really slow computer though, let me know.


Fri Mar 20, 2009 3:49 pm
Profile WWW
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: Hydrodynamic Challenge!
Here is my updated code. It pushes particles now, but not in the best way. Mostly I was working on getting the quadtree optimized. Data is mean and didn't make MOSParticle.ID work, therefore there are no unique identifiers for particles, and it looks like particles are actually recreated every update, so you can't access by them, or set your own table info on the userdata.


Sat Mar 21, 2009 5:07 am
Profile
User avatar

Joined: Mon Jun 04, 2007 5:55 am
Posts: 1627
Location: Ohio
Reply with quote
Post Re: Hydrodynamic Challenge!
Lord Tim wrote:
Here is my updated code. It pushes particles now, but not in the best way. Mostly I was working on getting the quadtree optimized. Data is mean and didn't make MOSParticle.ID work, therefore there are no unique identifiers for particles, and it looks like particles are actually recreated every update, so you can't access by them, or set your own table info on the userdata.


okay, well, what all objects can be used? MOSParticle, will this work with MOPixel, AEmitter(?) or something i'm forgetting?


Sat Mar 21, 2009 7:50 am
Profile YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 111 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 8  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.037s | 15 Queries | GZIP : Off ]