Questions tagged [shaders]

A shader is a computer program that 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.

695 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
138 views

ignore self-shadows for a cel shaded effect?

So For this project i'm trying to achieve somewhat of a cel-shaded look. Cel Shading is an attempt to make 3D Art look 2D, But The Main problem I've found with Cel Shading effects is the shadows are &...
9
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 ...
8
votes
0answers
63 views

how to write a custom projection type?

Is it possible to create a lens shader with EEVEE/Cycles ? I'd like to have the control over the camera position and the ray direction per sample. This allows to simulate various conventional lens ...
5
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
47 views

Creating CMYK Printing Simulator/Shader

Out of curiosity, I wanted to see if I could develop a quick little CMYK print shader in cycles. So that I could plug different images in to the shader and have it display as if it had been physically ...
4
votes
0answers
273 views

Blender won't start - GPUShader: compile error - AWS Elastic Graphics

I am looking to run a Blender workload in Amazon Web Services (AWS). I am testing on a Windows Server image on a non-GPU compute resource. Instead of GPU I am attaching AWS Elastic Graphics to the ...
4
votes
0answers
68 views

Shading according to velocity

I have a rigid body simulation of many objects and would like to change how they're shaded depending on velocity. It's easy to get location from object info node, but how about change in location ...
4
votes
0answers
55 views

Possible to give a shadow a different material?

Hello. Let say that in a this image, i'd like all shadows to be rendered as an red emissive material, is this possible in render ? procedurally, witouth any modifiers, just by the shader editor ?
4
votes
1answer
735 views

Separate alpha from color in Shader Editor

In the Shader Editor, I can create an RGB node and in there, I can set an alpha value as displayed in this screenshot: However, no color separation node in blender supports extracting that value and ...
4
votes
0answers
89 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
34 views

Is it possible to shade objects in Cycles based on Z gradient, to highlight/darken edges?

I'd like to shade the edges of my objects darker, like a toon shader, based on abrupt Z depth transitions to neighboring pixels -- in other words wherever the Z gradient is high, darken the image. I ...
3
votes
0answers
25 views

Accessing the Render Engine Type as a String from a Driver Expression

I am trying to make a Render Engine switch for node-trees, that will give control over ignoring or using certain node-chains depending on what render engine is used. This is basically an improvement ...
3
votes
0answers
45 views

What happened to the color pallete?

Why don't I get the normal color pallette in my material? what happened? I've never seen this before. My color palette is seemingly faulty. I am sure it is not, rather I am surely at fault, but I ...
3
votes
0answers
29 views

Displacement on Particle Location

I am trying to create a shader which uses displacement to create a dent in an object with a hair particle system, based on the locations of the hair particles. The strawberry I have created is setup ...
3
votes
0answers
54 views

How to stack displacement nodes?

When using displacement modifiers, you can use the resulting mesh normals of the first displacement as the base for the second, such that the end result is a 3 dimensional displacement. For example, ...
3
votes
0answers
36 views

Cycles - How to transfer information from a shader to another non-destructively ? (no baking)

How can we non-destructively (witouth baking anything into vertex color nor bitmap) transfer information from one shader to another within cycles ? Here's an example : Here is a simple proximity ...
3
votes
0answers
30 views

How do you texture a remeshed particle system?

I try to make some interactive soil! And I already set something up that kind of works, but I have some problems in texturing it! What I did by now is... I made a particle simulation via the molecular ...
3
votes
0answers
86 views

Is it possible to apply ocean modifier for only one face of geometry?

blender newbie here. I was trying to recreate this illustration with my limited knowledge. And while doing that I tried to follow some tutorials. In one of the tutorials, the animation done with ...
3
votes
0answers
883 views

How does a shader detect if two objects overlap

I saw this shader (https://www.youtube.com/watch?v=L2Du5F7PfQM - an animated procedural water toon shader) . It says (in it's blender market page - https://www.blendermarket.com/products/pure-toon-...
3
votes
0answers
157 views

Jagged edges using a toon shader and Evee

I am trying to create a cartoon style render using evee with light reflections on the material (wich is suposed to be metal). I tried everything like subdividing, auto smooth, changing shadow ...
3
votes
0answers
52 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
2answers
287 views

How do implement the effect of blur on transparent materials?

I'm trying to create a blur effect when a clear light passes through a transparent material. Here's a quick summary of the picture: And when an object is close to a transparent material, it should be ...
3
votes
0answers
67 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 ...
3
votes
0answers
323 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
4k views

How to see the shader preview?

In shader editor , how can i see the preview of the shader or any nodes without it's being applied to objects ? something like 'viewer' node in compositing editor. Right now if i have lot of 'image ...
3
votes
0answers
149 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
631 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
62 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
225 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
541 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
1k 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
24 views

Using CFD temperature data to generate lighting

I have a VTK file that contains volumetric data on the temperature at different points on a flame. It has been obtained using a CFD simulation, with the file containing different values of temperature ...
2
votes
0answers
52 views

Halo does not stick to particle system but fills the whole domain object

Please find attached my .blend file I'm learning blender and at the moment I was playing around with the Halo effect and found several tuts explaining the same for version v2.9+ Use an emitter object ...
2
votes
0answers
73 views

How would you make a toon glass shader in Cycles?

I saw plenty of Eevee toon shaders (and let's be fair, Eevee is just better for toon shading), but how would you go about making a Cycles Toon Glass Shader? I tried making something that I'm linking ...
2
votes
0answers
58 views

How to render gouraud shading?

Is there a way to render gouraud shading in blender? Or a shader setup that would extremely closely mimic gouraud shading? If not, what other solutions might there be for what I'm looking for? I'm ...
2
votes
1answer
57 views

Snowmen's hat wave texture problem

I’m doing a CG Cookie snowmen course and I’m stuck on this part https://cgcookie.com/lesson/materials-for-the-scarf-and-hat at 19:31 where he put a wave texture on top of the hat and I’m having ...
2
votes
0answers
47 views

Create texture image from mesh location

I'm stuck on an issue, that I hope some of you can help me with. I'm trying to create 4 texture images, that hold XYZ values (+more) for a mesh. The problem is that I'm not 100% how it should be saved,...
2
votes
1answer
67 views

Diffuse texture baking wrong

Made this procedural chameleon texture but when I try to bake the colors it's completely wrong? Any idea what this could be caused by?
2
votes
0answers
33 views

Understanding Blender's Invert Node and Varying Bit Depth Images

So, I am trying to wrap my head around exactly what the invert node is doing in the shader editor. I realize that this sounds like the most simplistic question in the universe, but please bear with me....
2
votes
1answer
36 views

Alpha modifier, or properties, that affect the child of the group “as a single object”

I try to transfer my UI design workflow into Blender and I have one major blocker. In UI design we overuse the ability to group object and modify/animate the properties of this group like scale/...
2
votes
0answers
23 views

Three shaders (or more) sharing same basecolor?

Can I change BaseColor from one shader and update automatically in other SELECTED ONLY object's shaders at the same time to share the same basecolor? The idea is to use the same color on selected ...
2
votes
0answers
79 views

Pink, no texture, indicator when noise/voronoi or other textures are input into bump map height

I've been following a number of youtube tutorials (old and new) on the topic of making cement, stone, and plaster. Like this tutorial https://www.youtube.com/watch?v=FCJa97F9ReM&t=239s. However ...
2
votes
1answer
56 views

Shader changes behavior near mesh edge

Is there a way to have a shader behave differently near a mesh edge? For example, if a shader generates a checkered pattern, is it possible to detect the edge and make the squares that intersect the ...
2
votes
0answers
35 views

Normal Map … Format Structure?

This link .. https://docs.blender.org/manual/ru/2.79/render/blender_render/textures/properties/influence/bump_normal.html#:~:text=Normal%20maps%20in%20Blender%20store%20a%20normal%20as,%280%20-%20255%...
2
votes
0answers
41 views

Unable to add “nodes” in shader editor

I'm not able to add any nodes in shader editor. When I'm pressing Shift+A only "search" appears. I'm aware of turning on the "use nodes" but it's also not there in my material ...
2
votes
1answer
83 views

Make fresnel visible only from a side of the mesh in eevee

I used this fresnel setup on top of my shader to create a artificial rim light effect But of course fresnel is applied around the entire object, is there a way to control the sides of the object it ...
2
votes
0answers
74 views

Unable to import JPEG's for material texture

I'm trying to import a JPEG for texturing. If the image I download is a PNG, then it is available in the shading tab and I can drag and drop it into the materials window and apply it as a texture (...
2
votes
0answers
72 views

Custom shader script in compositor (de-linearize depth buffer)

Some months ago I wrote a minimal opengl 2.5d game engine with pre-rendered backgrounds (such old Resident evil, Alone in the dark and Final fantasy games). Depth is managed through a grayscale image ...
2
votes
0answers
286 views

What's the shading algorithm behind Smooth Shading?

When I flip between flat and smooth shading, I see that the vertex normals flip between n vertices for n meeting faces and single (averaged) normal. Once the vertex normals are deduced, how're ...
2
votes
0answers
171 views

iridescent snake skin shader

I'm working on this snake and want it's skin to look like these reference images. This is what I got so far but I don't think this is the optimal way. Any suggestions? With iridescent shader from ...

1
2 3 4 5
14