Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [shaders]

A shader is a computer program that usually runs on a GPU and is used to do shading, texturing, special effects or post-processing. Shader nodes specifically refer to the nodes used to create shaders for Cycles, but this tag can be used for other shaders as well.

304 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
4answers
808 views

How do I color the shading of a material?

Some art styles increase the saturation in their shading, I'm trying to achieve this effect as seen in cell #2 of my example image. Right now it looks like cell #3, which lacks this and looks dull in ...
5
votes
0answers
1k views

Does a model exporter embedding materials as GLSL scripts exist?

as described in Blender Shader in OpenGL/GLSL, it is possible to export the (unoptimized) GLSL code generated by Blender for a given material. Since the viewport can use such GLSL for real-time ...
4
votes
0answers
2k views

nVidia skin shader with the Principled BSDF

I've been using a skin shader primarily based on the Brecht skin shader, which is itself based on the Sum-of-Gaussians approach as seen in 14.4.7 from GPU Gems by nVidia. Its Cycles adaptation, which ...
4
votes
0answers
88 views

GameEngine: KX_BlenderMaterial vs KX_PolygonMaterial

I have a question about the material types in the game-engine. e.g.: 2.66 Blender API - KX_PolyProxy(SCA_IObject) 2.66 Blender API - name ~ The material of the polygon. When is the material a ...
3
votes
0answers
43 views

texture mapping without texture being mirrored on other side of object

I have a cylinder I want to map a texture to. To specify the location of the texture I use an empty. In the material node editor I then use the object function of the texture coordinate node and ...
3
votes
0answers
79 views

Procedural Materials On Fluid Simulations

Been struggling with this for a while. I've made a procedural lava shader and I want to put it on a fluid sim. The problem is, all the mapping methods I've tried make the fluid travel through noise ...
3
votes
0answers
103 views

First attempts with SSS - where is the nose?

I am trying to make the skin for my female mesh and watched some tutorials on Skin Shaders. I tried to rebuild YanSculpts Tutorial https://www.youtube.com/watch?v=ktsyL2Kp5bQ&t=388s and the result ...
3
votes
0answers
423 views

I want to convert my Diffuse Shaders to Principled Shaders

I just barely imported a scene from an .obj file, but all 83 materials defaulted to Diffuse Shaders of various colors. To make for a faster workflow, could I use a python script of some sort to ...
3
votes
0answers
61 views

What is the significance of the value of the limit on the roughness attribute of the Oren Nayar shader?

In exploring the settings of the Oren Nayar shader in the Blender internal rendering engine, I find that there is an upper limit of 3.14 for roughness. Is this the constant Pi? Why is this the ...
3
votes
0answers
500 views

How to set up SSS on cycles for efficient rendering

How do I set up SSS shaders properly to render efficiently in animation projects. Are there any specific optimizations to consider? I am trying to render some orange juice in a bottle and getting ...
3
votes
0answers
211 views

Material Mode in Shading Panel

I have this version of Blender What is the difference between the two Material modes in the Shading panel ? On my PC GLSL seems to work, instead Multitexture seems doesn't work.
3
votes
0answers
451 views

OSL: Giving the texture method a color instead of string

Is there a way to give the OSL method texture(string, float, float, ...) a color input instead of the string which reads an image file? Or is there any type of ...
3
votes
2answers
756 views

Is there a way to manually control vertex/face normals to get a more consistent toon shader?

I watched this video about the art style of popular fighting game Guilty Gear Xrd, and something which really interested me was the method that the artists used to get rid of ugly automatic-normal ...
2
votes
1answer
40 views

Does the Principled Shader IOR value effect specular reflection on a transmission material

Other render engines have two IOR values - one for refraction, and one for reflection. But in Cycles there is only one and documentation states it only affects refraction. Yet with transmission set ...
2
votes
0answers
40 views

How is it possible to make a procedural snakeskin texture?

I've seen some posts like this one showing snakeskin procedural textures. How is this possible? From what I've gleamed on reddit, a voronoi texture is used here? How would you morph that texture into ...
2
votes
0answers
64 views

Toon Shader Programming/Noise Generation/Line Coloring

EDIT: A LOT OF IMPROVEMENTS The file: The output will look something like this (but in color): (Mickey & the ship's wheel are cel objects, and the ship & grass are background objects) CEL ...
2
votes
0answers
39 views

How to externally control the look of volume material?

The effect that I want to achive looks like this: The problem I have is with that colorful cube with controllable color gradient. The cones and planes can be ingnored. I have achived similar result ...
2
votes
0answers
82 views

Python Mix Shader Diffuse BSDF Glossy BSDF Nodes

I am trying to create a plane object in python that uses a mix shader with the first shader being a Diffuse BSDF Shader, color black, roughness 0.200 and the second shader being a Glossy BSDF shader, ...
2
votes
0answers
30 views

How to get gradient material to work with rig?

I've got a lil character i'm making that uses some gradient materials, but I don't know how to make the gradient move with the deformations. as you can see, the gradient doesn't move with the ...
2
votes
1answer
62 views

Add a transparent image on top of a material [duplicate 2]

I read the answer on the link on how to add transparent images on top of materials (Add a transparent image on top of a material ). This works beautifully in v2.79b. This technique does not seem to ...
2
votes
0answers
44 views

Dynamic paint waves: How do I change color of

I'm new to blender and love the dynamic paint waves function. I'm wondering if anyone knows how to change the color of a material based on movement of the ripples simulated on the canvas layer. sort ...
2
votes
0answers
116 views

Cycles Light Linking: Getting hard shadows on a single object, and soft shadows on another

As the title states, I'm trying to get one object to take hard shadows from a very small Area, Sun, or point light, while in the same scene as another object which will take soft shadows from a very ...
2
votes
0answers
129 views

Smooth shading faceted when using bump/normal

I noticed smooth round surfaces get faceted when I apply normal/bump map onto them, without normal/bump they are smooth. Does any one have a solution for this besides increasing subdivision? 1. ...
2
votes
0answers
219 views

Occlusion material (holdout) in Cycles

I am looking for a way to occlude one cycle´s material against another like when we setup the render passes from the passes property for the scene in a "holdout" mode. Think 2 spheres over a plane. ...
2
votes
0answers
68 views

Real World Roughness Samples in Blender

TLDR: We've developed a method to measure a surface's microfacet distribution, and are looking for a way to integrate this in a Cycles shader. For more info, see this paper. Hi all, Together with a ...
2
votes
1answer
150 views

Can I only Render light that psses through an object?

In the image below I would like only the light that passes through the sphere, in this case the bright dot in the center, to be visible. Is there a way to set this up in cycles? Thanks, Tyler
2
votes
0answers
120 views

Faking HDRi Reflections with an orthographic camera

Is it possible to fake perspective reflections of a HRDi in a scene with an orthographic camera? As reflection rays are parallel on flat surfaces, every face of a glossy object has a uniform color ...
2
votes
0answers
327 views

OSL: Parallax Occlusion Mapping

I just want to know if this osl file, for a 3ds max, works in blender cycle. link: http://www.racoon-artworks.de/?p=773 osl:http://www.racoon-artworks.de/DownloadableScripts/...
2
votes
0answers
104 views

Scene lighting and setup: how would you get such a render?

Just for fun, i'm trying to recreate a scene from the (nice) movie Cherry 2000. Here's a link to the clip. I like the aesthetic, but I can't figure out how they did setup their scene; and that's ...
2
votes
0answers
348 views

Normal Map difference in blender and other soft

I created a low poly object, and a high poly object (beveled). We bake the normal map in Blender. When displayed in Blender it works well, but in other programs (3ds Max / Substance Painter) the low ...
2
votes
0answers
419 views

Using the output of the shader as a masking factor in the cycles?

I use the output of the material(shader) as a masking factor in the Blender Internal renderer. I tried to do the same in Cycles but it didn't work. Is it possible to use only texture or input nodes ...
2
votes
0answers
85 views

Script node to affect photons on cycles?

To my understanding, cycles works by simulating photons. I would like to create a custom shader to put on the inside of a sphere that takes any photon that hits it and moves it to the opposite point ...
2
votes
0answers
908 views

How does “distance” effect ambient occlusion?

In Blender Cycles, there is a distance option for Ambient Occlusion in the World tab. How does the distance option affect AO? What does moving the distance closer to zero do? What does increasing ...
2
votes
0answers
323 views

How do I set a material in renderman to use a specific UV map?

My model has 4 separate UV maps for the head, arms/hands, legs/feet, and body. But i can't find a UV map node equivalent in Renderman. After converting the node setup to Renderman, it doesn't have a ...
2
votes
0answers
88 views

GLSL interactive lighting

Often when I'm doing something in the GLSL shading mode I always need that extra interactivity for viewing what's going on with my scene. With all the materials assigned and lamps in place, from time ...
2
votes
0answers
377 views

GLSL Lightsaber (per vertex lighting)

Here's my script, which I activate in the game engine with a python controller, applied to a cylinder. I managed to achieve a pretty good result by following the tutorial on http://en.wikibooks.org/...
2
votes
0answers
520 views

Glossy Text shader material on soft toch paper

I can't get the right shader material for text like this: I've used a texture uvmapped on a plane, with alpha channel, and assigned two shaders one Glossy and one Glass with IOR of 1.406 (plastic) ...
2
votes
0answers
2k views

How to export smoothing groups made with Auto Smooth?

I know that there is an Edge Split modifier, but it actually splits geometry edges, which causes problems with further modeling. When I use "Shading: Smooth" and then enable Auto Smooth, it works nice,...
2
votes
0answers
256 views

Get name of bgl_RenderedTexture in Python

I want to let the GPU create a mipmap for the framebuffer texture that's available as bgl_RenderedTexture in the custom filters. It shouldn't be difficult. I just put some code into the post_draw ...
2
votes
1answer
193 views

Cannot light portions of object with point light

I am setting up a simple scene with only a single object, a truck, and a point light. It seems that regardless of where I put the light, the hood (among other portions) of the truck won't be lit. Here'...
1
vote
1answer
19 views

Why isn't my image texture working?

I am currently using blender 2.8 and I was putting a texture on a plane, so it shouldn't have to be unwrapped, but it crashed and when I went to put it back on it just comes out as like an average ...
1
vote
0answers
20 views

gbl shader blender 2.8

After adding an draw handler to my operator my terminal is showing the following: ...
1
vote
0answers
18 views

Diffuse render pass looks different from original texture

I have tried to follow these instructions on how to get a diffuse render pass of a brick texture that exactly replicates the original colors of the texture. But even with all the settings in place I ...
1
vote
1answer
10 views

Is it possible to edit 2 nodes at the same time ? In 2 windows

In each window one different node to edit, im trying to, but when i switch one the other one switches too...
1
vote
0answers
21 views

Shader does not change color of surface

I don't know wether it is just me or that is a bug but still: When I'm trying to change surface color through shader (Pricipled BDSF) surface color doesn't react at all. All other things do have an ...
1
vote
0answers
48 views

How to Custom realtime shader ? (HLSL,Cg,…)

i would like to create few shader inside blender that would match inGame shaders from my game engine. Could someone tell me where and how o start in blender? thank you
1
vote
0answers
22 views

generate texture by interacting with another mesh

Hello Blender Community, I have a scene where i want to generate a texture on mesh A by letting it interact with another mesh B. The goal is that i don't have to animate the texture by hand and ...
1
vote
0answers
107 views

Troubles with outline on cubes

I am working on a project that requires me to have outlines on cubes, the outline HAS to be a shader, not matter if it's a combination of nodes or a script,it has to be a shader. Meaning that I can't ...
1
vote
0answers
44 views

How to correctly separate vertex color data into the R channel on EEVEE?

for some reason if I add (in the shader tree) the ATTRIBUTE>COL from the vertex color property and channel it to a separate RGB (only making the R channel plug into a ramp node and then to the shader ...
1
vote
0answers
36 views

What does the 'sheen' slider of the Principled shader do behind the scenes?

I'm trying to create a unified shader setup between a bunch of different render engines for exporting models. I've been attempting to recreate the 'sheen' effect from the principled shader using ...