Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 04-04-2006 , 06:50 PM
ronkhmps's Avatar
Subscriber
Join Date: Sep 2005
Posts: 51

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?


rsh
# 2 04-04-2006 , 09:04 PM
Velusion's Avatar
Registered User
Join Date: May 2004
Location: Utah, USA
Posts: 369
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??

# 3 05-04-2006 , 03:43 PM
ronkhmps's Avatar
Subscriber
Join Date: Sep 2005
Posts: 51

mappint 2d fluid container on nirbs surface

hello
I have attached the file
so you see exactly what I mean

Attached Files
File Type: mb rain.mb (56.9 KB, 371 views)

rsh
# 4 05-04-2006 , 04:43 PM
Velusion's Avatar
Registered User
Join Date: May 2004
Location: Utah, USA
Posts: 369
I don't have time to review your file. Can you just explain what you're trying to do?

# 5 05-04-2006 , 05:37 PM
ronkhmps's Avatar
Subscriber
Join Date: Sep 2005
Posts: 51

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


rsh
# 6 05-04-2006 , 09:04 PM
Velusion's Avatar
Registered User
Join Date: May 2004
Location: Utah, USA
Posts: 369
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....


Last edited by Velusion; 05-04-2006 at 09:06 PM.
# 7 06-04-2006 , 12:36 AM
Velusion's Avatar
Registered User
Join Date: May 2004
Location: Utah, USA
Posts: 369
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 user added image

Good luck!


Last edited by Velusion; 06-04-2006 at 03:21 PM.
# 8 06-04-2006 , 03:54 PM
ronkhmps's Avatar
Subscriber
Join Date: Sep 2005
Posts: 51

thank you

thanks very much
you helped me alot
it worked


rsh
# 9 08-04-2006 , 05:14 PM
Velusion's Avatar
Registered User
Join Date: May 2004
Location: Utah, USA
Posts: 369
That's great!
Make sure you post your results. I'd like to see what you came up with.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads