Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Dynamics & Special Effects (https://simplymaya.com/forum/forumdisplay.php?f=33)
-   -   problem with 2d fluid container (https://simplymaya.com/forum/showthread.php?t=20943)

ronkhmps 04-04-2006 06:50 PM

problem with 2d fluid container
 
hello
I have created a 2d fluid container and after typing a script I could manage to simulate a rain effect on it. but I can not put it as a material on a nurbs plane.
anyone knows what the problem is?

Velusion 04-04-2006 09:04 PM

I'm not sure what you're talking about. You want the fluid to be the material on the NURBS surface or you want the fluid to influence the NURBS surface so that it moves??

ronkhmps 05-04-2006 03:43 PM

mappint 2d fluid container on nirbs surface
 
1 Attachment(s)
hello
I have attached the file
so you see exactly what I mean

Velusion 05-04-2006 04:43 PM

I don't have time to review your file. Can you just explain what you're trying to do?

ronkhmps 05-04-2006 05:37 PM

2d fluid container
 
hello
here is the description:
there is a 2d fluid container that after colliding with particles (that drop on it) simulate the raine effect. until this moment everything is good. then because you can not see the container in render you have to map it on an actual surface which in my case is a nurbs plane. but it doesn't work and it doesn't show on the surface.
I hope it was clear

Velusion 05-04-2006 09:04 PM

OK. I still don't get it so I'll download your file and look at it tonight.

I think that maybe I understand what you're saying but I'll wait and see if I'm right. If it is what I think it is then there is a simple solution. Stay tuned....

Velusion 06-04-2006 12:36 AM

I tried your file. It's pretty cool. Especially if you turn the particle rate up to about 200 or so!!

Here's what you can do so that you can see the rain drops when you render.

First, You're right; you have to apply the material to an object. The fluid effect is a texture that feeds into a blinn material (blinn4 in the hypershade window)

Make a plane and assign the blinn4 material to it. You can right click on the plane and choose materials>assign existing material>blinn4.

Now the plane will have the raindrop effect on its surface. I think you probably tried this and it didn't work for you. Right? Well, the effect will be visible in the work area after you enable 'hardware texturing' under the shading dropdown above your work area (same place you turn on X-ray and stuff like that).

When you render, you have to use Maya's hardware renderer.

Today is the first time I played with the fluidtexture2D texture so I don't know much about it except that it acts just like any other 2D fluid container. All the same settings... I don't know why but the Blinn4 material doesn't turn out exactly like the 2D fluid effect. It looks similiar but kind of like it's zoomed in and kind of blocky. I played with some of the setting under the 'place2Dtexture' node but I couldn't get it to look any better. Maybe you have to use the 2D texture info to create displacement.

Give it a try and see what you can come up with.

I think the file you sent is cool. It looks like the particles that are emitted collide with the plane right below them. There is an expression that seems to be using the collision info to disturb the 2D fluidtexture. I don't really understand how it's all connected but I plan on playing around with it more sometime later.

Another way to do the same effect is to instance small NURBS or Poly spheres to the particles and have them collide with a regular 2D or 3D fluid container. This way you can get the same ripple effect but also get the fluid to splash if you want. The file that I got from you is using info from the particles colliding with the plane below them because particles don't collide with fluids BUT NURBS and Polys do!

Fluids are a pain in the ass but they start to make sense after a while. They can do a lot more than just make smoke and fire :)

Good luck!

ronkhmps 06-04-2006 03:54 PM

thank you
 
thanks very much
you helped me alot
it worked

Velusion 08-04-2006 05:14 PM

That's great!
Make sure you post your results. I'd like to see what you came up with.


All times are GMT. The time now is 08:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018