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.

271 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
4answers
745 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
42 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
69 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
92 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
408 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
59 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
497 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
210 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
448 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
730 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
43 views

Magic Textures question

Is there a way to have the white areas be clear in this glass marble example?
2
votes
0answers
36 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
52 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
35 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
74 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
114 views

Looping function in node editor?

I want to be able to loop a certain math function (in the node editor) x amount of times. I want to do this without scripting (unless it could be done so while still being able to run on GPU). For ...
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
57 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
41 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
102 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
118 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
208 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
67 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
142 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
113 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
315 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
102 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
337 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
411 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
887 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
318 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
376 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
516 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
190 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
25 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
105 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
31 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
27 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
34 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
1answer
51 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
26 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
71 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 ...