172

You need to be in edit mode. Select the part of the mesh you want to add the material to: Click the "+" icon on the right side of "material" shown in the image below to create a new material. Let's give the new material a green color. Click the Assign button in the Materials tab under the list of materials: (for older versions) And ...


106

The trouble with this is that you need light to "bend" in a continuous arc around the black hole. The reason why this bending is problematic is that cycles assumes light always travels in straight lines. Light does travel only in straight lines, but it can be bent by gravity. Gravity is a distortion of spacetime around objects. The more massive the ...


71

You can use the math Modulo node on mapping vectors to create tilling for procedural textures: To tile them seamlessly you need to flip tiles in X and Y axis: For the Tilling X and Y nodes use values between 0 and 1. And to tile them in 3D just copy the setup into Z channel. Why Mapping node does not add tilling to procedural textures: Mapping node does ...


67

Here is how to change material properties, you can see all of them here or see the python path when you hover over in the UI on some material attribute: import bpy # get the material mat = bpy.data.materials['Material_Name'] # change its parameters - example viewport diffuse color: mat.diffuse_color = (1,0,0) Here is how to manipulate ...


64

You can switch between different shaders using a UV mapped image, if you're using cycles. You accomplish this by creating a black and white image mask and using it as the factor for a mix shader. This has some unique benefits: You can create soft transitions between shaders You can have multiple shaders in any shapes/areas on a single face, or across edge ...


64

1. Mirror shader as material with mirror reflection (roughness = 0): To setup a physically correct material we need to base it on real measured values and setup the nodes so it follows the equations how materials behave (PBR setups). The best source for measured values is refractiveindex.info - we get 2 IOR values: N and K. IOR is a complex number, most ...


63

It looks like Z-fighting, which is caused by overlapping faces in your model. From Wikipedia: Z-fighting is a phenomenon in 3D rendering that occurs when two or more primitives have similar values in the z-buffer. It is particularly prevalent with coplanar polygons, where two faces occupy essentially the same space, with neither in front. Affected pixels ...


61

After unlinking your materials, save your file. Then reload it with Ctrl+Shift+O.


58

Here you go, code with some safety checks: import bpy ob = bpy.context.active_object # Get material mat = bpy.data.materials.get("Material") if mat is None: # create material mat = bpy.data.materials.new(name="Material") # Assign it to object if ob.data.materials: # assign to 1st material slot ob.data.materials[0] = mat else: # no ...


55

Cycles is a physically based render, and often the best approach is physical recreation. Components: Light source Light cover Light Source: This would simply be an emission shader since it is literally a lightblub or LED. I took the button model, and scaled it down slightly on the X and Y axis. I then drastically scaled it on the z axis, and moved it ...


50

Such a material works by reflecting the incoming light back towards the direction it originated - since your car headlights are very close to your own line of sight, you see a strong reflection of your own lights. You can replicate this behaviour in a material by simply manipulating the surface Normal in a Glossy shader that can then be mixed into any other ...


48

Custom Texture Map Generators Software to help generate planetary texture maps. Rye Terrell's texture map generator Planet generator TerraNoise PlanetMaker Sci-Fi World Generator (Map Palette option has a land mask) Experilous Planet Generator Cloud Maps Fracplanet Terraform (X11) Java TerraJ Planet Genesis (website) Unavailable Software that is ...


45

How about the well hidden deathray button? Go to the outliner, choose "Orphan Data" instead of "All Scenes" and hit "Purge All".


42

Select all target objects and also the source object (the source object needs to be active, so either select it last or select it again after you selected all target objects). Go to the Material tab, select a material slot and click the specials menu button. Click Copy Material to Others to copy.


42

You can accomplish this in multiple ways, the easiest way is to use a Hair Info node, and use the Intercept value to drive a Converter > Color Ramp node. Use this to drive the Factor on your mix or add shader node. Here is a quick example node setup: And here is how it renders: As you can see, the lower input into the Mix Shader is on the base of the hair, ...


42

The floor is actually more reflective near the horizon. This effect is called Fresnel and it adds a lot of realism into the scene. Your shader should look like this: Instead of controlling the amount of reflection with the Mix Shader Fac input, you control the amount with the value of color of the Glossy node. Black will be no reflection. As the roughness ...


41

You need dispersion Dispersion is the phenomenon of multicolored highlights you see in most transparent substances, resulting from different colors (light frequencies) refracting at different angles (the prism effect). Your reference image does not have this, which makes it immediately noticeable as CG. Instead I would suggest by starting with a reference ...


40

Expanding on Róbert László Páli's answer, this is possible with a Procedural texture and bump mapping. Texture For an ocean texture, the procedural textures most likely to be what you want are: Noise: Wave: Voronoi: Musgrave: You can also combine and mix these with an RGB mix node. Displacement Here are some examples of bump mapping with a Noise texture:...


39

Add Shaders aren't necessarily physically correct. Simply put the values of the two input shaders are added up for every pixel value_out = value_1 + value_2 It is possible to reflect more light than received. If you mix two shaders with the Mix Shader Node you get more physically correct values because it calculates a weighted (by the Fac param) average ...


39

This is very similar to the thin glass problem. It can be fixed by giving it a thickness, (i.e. Solidify Modifier, as already sugested), which in some cases raises some topology problems, besides the doubled mesh. Or by faking the surface thickness by not using refraction at all. This last approach raises another problem: IOR inverts automatically on ...


38

To do this in cycles, you'll want a glossy shader. You can do this from the properties menu like this: But this actually will create the corresponding material nodes in the material node editor: At least in cycles, the node editor is a lot easier and faster to work with directly once you get used to it, allowing you to create more complex setups quickly: ...


38

Let's start with some definitions: Vector: A list of values that are all contained under the same "roof" so to speak. For instance, the location of an object in 3D space is a vector of 3 values (the $X$, $Y$ and $Z$ location of that object). All Vectors in blender are by definition lists of 3 values, since that's the most common and useful type in a 3D ...


37

In cycles it's a simple matter of using the Backfacing output of the Geometry node: The Backfacing output gives us white (a value of 1.0) on the side that's facing away, and black (0.0) on the side that the normal is pointing (This is what you see if connecting the Backfacing output to an emission shader as a sort of viewer node) So connecting this to the ...


35

The Python script at https://blenderartists.org/forum/showthread.php?394600-Materials-Specials-amp-conversion will automatically convert all of your materials and textures over so that they are compatible with Cycles. The script tries to make the Cycles materials look as much like the Blender-Internal materials as possible, but I imagine you'll still need ...


35

OSL + Solidify (Irie's Technique) Results: Pros: The toon shader has seven customizable parameters for creating many different looks Edge strokes taper off with a natural look, like hand-drawn strokes It renders quickly It responds to lighting (can be lit with lamps) Cons: Some additional geometry must be generated to create the outlines It won't look ...


34

From your linked definition of iridescence: Iridescence [is] the property of certain surfaces that appear to change color as the angle of view or the angle of illumination changes. Thus, the following node setup should suffice: If you're not familiar with node groups, this will create a new "node" called Iridescence that takes a base color parameter (...


34

As @gandalf3 pointed out, you can check out the answer here. I'll redo it with a bit more detail though. I'll assume you've already UV mapped your plane (select plane, go into Edit Mode, U > Unwrap) and you already set up the texture in the Materials tab to look like this: So, you render and the alpha appears as black. To fix this, you go into the ...


34

Yes, you can. Easy way would be: Select all objects, keep one active, remove all materials on it by pressing the "-" button on the right-hand side of material slot list; Then, from the drop-down list (below it), choose Copy Material to Others. Save the file. All unused material data will be removed after saving. You cannot see them anymore after reopening.


34

Start with Wave procedural texture and create tiling in X axis with Repeating patterns on procedural textures. After that clamp the values into stripes with a ColorRamp node set to constant: (^click to enlarge) You can adjust the stripes with the ColorRamp node: For mapping procedural textures onto spherical objects there has to be additional ...


Only top voted, non community-wiki answers of a minimum length are eligible