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.

250 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
4answers
702 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
59 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
87 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
398 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
56 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
492 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
209 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
443 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
710 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
0answers
34 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
31 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
68 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
54 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
40 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
88 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
110 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
185 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
65 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
126 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
105 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
301 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
101 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
329 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
401 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
84 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
853 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
314 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
370 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
515 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
189 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
0answers
21 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
1answer
23 views

My textures are rendering transparent and strange

I am trying to make this cool minecraft effect on blender. I've done all the modeling and tracking. In rendered view it looks fine. But it comes out very weird. I am using blender 2.8 for this ...
1
vote
0answers
28 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 ...
1
vote
0answers
36 views

Toon Shader Programming/Noise Generation/Line Coloring

EDIT: SHADER UPDATE First off, I need two types of shaders, one for the "background" objects, and another for the "cel/moving" objects. The output will look something like this (but in color): (...
1
vote
1answer
47 views

How do I merge smoothing shaders seemlessly without joining objects?

I'm having an issue with creating a game asset for the Creation Engine. I am trying to have two objects, a head and body, match seamlessly together without joining them. They don't and it's because ...
1
vote
0answers
24 views

Most of object baking black? (2.8)

I have this model that I'm trying to bake to a texture: But when I bake it, I get mostly black except for one diagonal brown square, like this: I'm not quite sure what the issue is here. I'm using ...
1
vote
0answers
51 views

Strange light effect in EEVEE render

While making my bedroom scene, I have this lighting artifact that I cant seem to get rid of on my area light. Its like little lines of light that separate and get further apart as it diffuses. Here's ...
1
vote
0answers
25 views

Control image texture source from outside node group

I'm working on turning a cavity node setup I found online into a node group I can append to my blender files. The setup uses several mapping nodes (that I already converted to math nodes so the ...
1
vote
0answers
41 views

Using a different normal for shadows and shading

I'm using modified vertex normals for making an anime-style toon shading. The thing is, if an object is placed between the light source and the object with modified normals, it's shadow hasn't got it'...
1
vote
0answers
16 views

How to create spline mask in Shader editor?

I want to create multi texture shader and i need to create a custom mask (spline mask) so i can mix foreground texture with the background texture where i can pipe that spline mask into the mix input ...
1
vote
0answers
22 views

How to visually disable (“hide”) Smooth Shading in Edit Mode only?

In Blender 2.8, is it possible to visually disable Smooth Shading ONLY in Edit Mode? I want the surface of my model to soften in Object Mode or render preview, but at the same time, when I enter Edit ...
1
vote
0answers
71 views

Color Ramp is not working for me 2.8

I'm trying to make a mask around the edges of the metal circles to look shiny wail having the wrest of the faces black/dark grey. So what I did was use the Input>Geometry and then use converter>...
1
vote
0answers
29 views

refraction of arrow through glass of water

so i have been trying to simulate arrow refraction through a glass full of water where the arrow's direction is reversed. i have applied refraction BSDF to both the glass and the fluid mesh with IOR 1....