Water - color by velocity
12 posts • Page 1 of 1
Water - color by velocity
Is it possible to change the color of water particles over time? I'd like to show approximate velocities as water leaves a container through and orifice. Sort of a gross CFD visualization. It this possible? I see that a single drop of water has vector and velocity properities as copied from a droplet in my scene below:
};
Scene.addWater {
vecs := [[-2.0475216, -1.0904573]];
vels := [[-2.5077577e-005, 0.038016006]];
version := 1
}
Thanks,
Rob
};
Scene.addWater {
vecs := [[-2.0475216, -1.0904573]];
vels := [[-2.5077577e-005, 0.038016006]];
version := 1
}
Thanks,
Rob
- rpherman
- Posts: 2
- Joined: Mon Dec 27, 2010 2:53 pm
Re: Water - color by velocity
well, you can't have indevdual colors of water. You could averadge it, but I don't know the script
-

ducky21 - Posts: 301
- Joined: Tue Aug 03, 2010 8:58 pm
Re: Water - color by velocity
ducky21 wrote:well, you can't have indevdual colors of water. You could averadge it, but I don't know the script
Yeah, that could be a problem. It's impossible to have one water drop a different color than the rest. Unless all the water is moving at the same speed, or you just have one drop, you'll need to average it.
GamerBro4 wrote:this forum isnt for asking
Yes it is. Stop flaunting your ignorance.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Water - color by velocity
GamerBro4 wrote:this forum isnt for asking
No it's for getting knowledge by just looking at the screen with confusing thread. Answer the question or get out of here.
I, on the otherhand, have no answer. Since you can't get the velocity of the water with ease it nearly impossible to do it. I'm not going to say impossible 'cause I've seen miracles happen in this forum before.
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Water - color by velocity
I don't think it is possible to change the color of water by variable or scripting. Is there a way?
-

ducky21 - Posts: 301
- Joined: Tue Aug 03, 2010 8:58 pm
Re: Water - color by velocity
Then you would need to know the exact velocity of the water, get that into a variable and have the waterColor to change by it's velocity. It can be done with objects, but I'm pretty sure it's impossible (for now) to get the same effect on water particles
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Water - color by velocity
well... If you had a stream of water, you could set two lasers up and have it so that it measures the time the first drop of water took between the two lasers and divide that by the distance, you get velocity. Use some scripting and make that into a variable and somehow decide what color it is.
-

ducky21 - Posts: 301
- Joined: Tue Aug 03, 2010 8:58 pm
Re: Water - color by velocity
Except the water will always have to be between the lasers and that wouldn't update in real time.
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Water - color by velocity
No, but it's a start.
-

ducky21 - Posts: 301
- Joined: Tue Aug 03, 2010 8:58 pm
Re: Water - color by velocity
Thanks for all of the responses. I am new to Algodoo, but not to physics or simulators. I love the playfulness, yet power of Algodoo.
In response to GamerBro4 and Kilebantik - I imagined it would be done with Thyme scripting, thereby the post in this forum.
I did notice the velocity updates in the information window when the simulation is running, so I figured there might be a way to pick an area in the tank, read the velocity and then change the water color for that particular area of water in that instance of time, but I see now that you can not change a sub-selection of water even though you can choose a sub-selection with the pan tool.
I also noticed in the information section kinetic energy - both linear and angular. Perhaps I can access that through Thyme?
Rob
In response to GamerBro4 and Kilebantik - I imagined it would be done with Thyme scripting, thereby the post in this forum.
I did notice the velocity updates in the information window when the simulation is running, so I figured there might be a way to pick an area in the tank, read the velocity and then change the water color for that particular area of water in that instance of time, but I see now that you can not change a sub-selection of water even though you can choose a sub-selection with the pan tool.
I also noticed in the information section kinetic energy - both linear and angular. Perhaps I can access that through Thyme?
Rob
- rpherman
- Posts: 2
- Joined: Mon Dec 27, 2010 2:53 pm
12 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest






