Entradas

Mostrando entradas de enero, 2014

Testing CGTrace's Material Ball

Imagen
Hi. I have been testing the CGTrace's Material Ball : Carpaint: Colombia Gold:  Blood: Its author, Victor Borges says that it is similar to other testing scenes used with Mono software. I really like the color strips beside the ball and the scene loads and renders faster than @Tuqueque's Blender Ball. However I think it can be improved. I will continue making tests and post them here in this article. These are more screenshots with the scene modified: Carpaint : Colombia Gold : Blood: Colored Glass: Terracotta : Brown Leather: These are the tweaks I have done on the blendswap scene: Recalculating all normals Changing Diffuse materials to roughness 0.1, so they use Oren-Nayard algorithm Changing Color light to Blackbody 6500 (like a fluorescent or white LED light) Adding a Cube which wraps all the objects, so the black world is not reflected. Its material is Diffuse RGB(0.6, 0.6, 0.6) and roughness 0.1. Bye.

Plastic for Appliances Material

Imagen
Hi everybody. Today I'm going to show you a simple material, plastic for home or computer appliances. Hola a todos. Hoy voy a mostraros un material simple, plástico para aparatos domésticos o de informática. This is my first approach:  Ésta es mi primera aproximación: The material is basic: a mix between Diffuse and Glossy shaders. I have used a Facing factor for mixing, because I think it works better with this kind of materials which are not very glossy. As you know Facing reflections only are shown when you see the surface in a grazing angles. Also I have added a Voronoi Texture to get a rough effect on the surface. This is the node setup: El material es básico: una mezcla entre shaders difuso y de brillo (Glossy). He usado un factor Facing para la mezcla, ya que creo que funciona mejor para este tipo de materiales no muy brillantes. Como ya sabéis las reflexiones de tipo Facing sólo se muestran cuando ves la superficie en ángulos casi paralelos a ésta. ...

Blender Cycles OSL: Mandelbrot Fractal

Imagen
Hi. Today I'm going to show you an OSL code to get a Mandelbrot Fractal , like this: This fractal uses the following complex numbers formula: Z(n+1) = Z(n) ^ 2  + C I have parameterized the exponent of the formula and the bailout value, that is, the value to stop the iterations. So the code is this : shader mandelbrot_fractal_zn_zoom( float Scale = 1.0, float Zoom = 3.5, vector Vector = (vector)P, float CenterX = 0.0, float CenterY = 0.0, int MaxIterations = 64, int Exponent = 2, float Bailout = 2.0, output float Fac = 0.0) { point p = (point)Vector*Scale/(2*Zoom); int i = 0; int j = 0; int prevIteration = MaxIterations; float factor = 0.0; float foo = 0.0; // Starting point p[0] += CenterX; p[1] += CenterY; // Initialize point pa = point(0.0); point pb = point(0.0); point pc = point(0.0); // Mandelbrot algorithm do { // z^j for(j = 1; j B...