Forum: Carrara


Subject: Cola or soda texture

johnj opened this issue on Oct 23, 2001 ยท 4 posts


litst posted Fri, 26 October 2001 at 2:57 PM

Hi John, That's a difficult one ! The properties of soda are strange and difficult to simulate in CGI . Here's what i did, it's not perfect and would need some more work, but it might give you some ideas . First, i've duplicated and edited the spline object of the glass to make the soda object . I've resized it down to 99.99% to avoid overlapping . The soda shader has some highly saturated dark brown in the color channel, some clear grey-brown for the transparency, a 25% value for the reflection, and the refraction of a 30% sugar solution . For the bubbles, i've duplicated the soda object twice and deformed them with the atomize deformer . I also resized them down to make sure all the bubbles were inside the soda . They have different settings ( size, particles density, and wiggle effect ) to make the bubbles look more erratic . The shader of the bubbles is close to the soda shader, but is not colored . Because Carrara doesn't handle volumetrics in shaders, you can't shade the soda well : whatever you do, there is no soda inside the object . So i've used a cloud to fake that ( insert menu > Clouds ) . The cloud has the shape of a cylinder and fits in the soda object . Here are the settings i've used : the color is orange, the Quantity is at 0.10, Quality is 500%, Size is 1, Density is about 0.5, and Edge falloff is about 20% . It works in this case because the glass has a simple cylindrical shape, but for some more complex glasses, you might be forced to use several clouds to fill your glass . Here it is ! One more thing : the little black dots are caused by a bug that appears sometimes when you use volumetrics in Carrara :( . Sorry for the late answer, but i hope it will help you anyway . litst