Questions tagged [shading]

Shading refers to depicting depth perception in 3D models or illustrations by varying levels of darkness.

Shading refers to depicting depth perception in 3D models or illustrations by varying levels of darkness. (source: Wikipedia).

119 questions
1
vote
1 answer

Shading between lines in ggplot

I have a data set, and I am able to plot the data set fine, however, I have three lines on my graph and I want to shade between them (So two shading regions). ZNH2<-structure(list(value = c("154.102123376241", "129.342971722961",…
Kyle
  • 27
  • 5
1
vote
1 answer

How to pass an array of size changing structures into a glsl shader

In order to add dynamic lighting to my application, I was thinking that I could represent each shadow casting object as an array of floats (every 3 floats is a vector and so every 9 floats is a triangle). And so, in order to cast ALL possible…
Makogan
  • 8,208
  • 7
  • 44
  • 112
1
vote
1 answer

Variable length shading in matplotlib using `fill_between`

I'm trying to generate a variable length shading for the plot. Right now, I only have fixed length shading from the actual line. a = np.linspace(1, 10) loga = np.log(a) _, ax = plt.subplots() ax.plot(a, loga, lw=3, color='#27AE60',…
kmario23
  • 57,311
  • 13
  • 161
  • 150
1
vote
1 answer

Opengl lighting works top,bottom,front, back but not on the sides of the model

I have a model made up of five cubes, the whole model is textured, I added lighting and it sort of works for the top, bottom,font and back of the cubes but not the sides, there is also an issue with the shading because there is light where it should…
Alla
  • 15
  • 6
1
vote
0 answers

Macro for interactive map in excel - shading process

I've made a map (by looking through some guides) of the world for Excel that color-codes countries based on values entered in cells. I don't understand why an error message pops up for this code, stating that the name used doesn't quite exist.…
Megou
  • 11
  • 1
1
vote
1 answer

Adding a layer of polygons to an existing plot in Python Matplotlib

Currently I'm using the tripcolor function for triangulation and shading of 3D point data. What I'm getting is a cut out of map data. And there is more data I want to use. I also have a shapefile which contains a set of polygons. The goal of my work…
Baffel
  • 63
  • 6
1
vote
2 answers

Locked file texture in Maya shadingNode

I am getting some strange results here using the shadingNode, whenever I create a file node through Python in Maya I get the color space locked and the color space drop menu greyed out. fileNode = cmds.shadingNode( "file", asTexture=True,…
John
  • 45
  • 6
1
vote
1 answer

Select text of a particular shading color (VBA macro)

I am trying to use a macro to select text of particular shading in word ( I later want to change that shading and highlight it rather). I are having trouble in selecting text of a particular shading color. Using…
Ani
  • 21
  • 3
1
vote
0 answers

Shadow-layer around a PopupWindow, preferably programatically

I'm looking for the easiest way to set a shadow layer around my PopupWindow to increase its visibility. I've looked at solutions involving making a custom-9-patch-graphic but that seems hard to customize dynamically (my PopupWindow is showing…
1
vote
0 answers

Wrong shading of sphere

In my program I'm trying to import .obj files to OpenGL but if I calculate the normals and use them I get this wrong result: (The normals are calculated and to me seams all right but the result is not what I want) Result void CalcNormals(float *…
noName
  • 132
  • 1
  • 9
0
votes
1 answer

How to remove or change font backcolor, paragraph background color or shading in MS Word?

I copy / pasted some code examples from a website and the results include the backcolor shading on the text. I would like to remove this backcolor. Tried changing Paragraph shading, did not work. Tried Font, Highlight color, did not work. Tried a…
Ken747
  • 107
  • 3
0
votes
0 answers

When working with compute shader in WGSL, how to loop till the length of the binded buffer?

On a compute shader, I want to use runtime buffer array length for the loop. However shading languages don't allow conditions that can be resolved only in runtime. //runtime sized buffer @group(0) @binding(0) var v_indices:…
0
votes
0 answers

OpenGL Surface Shading Quality Undesirably Varying With Camera to Object Distance

I have a simple camera based 'modern' OpenGL 3D graphics display, for rendering relatively simple objects that are constructed from collections of specified points, lines and curves (e.g. a cube, cylinder, etc). Shown below is example of shaded cube…
DavidH
  • 97
  • 6
0
votes
1 answer

How to copy from Excel to a Word table retaining the shading of the cells?

I have an Excel model which generates tables where via conditional formatting cells are shaded in particular colors depending on a value. I must copy these tables into a Word doc template and keep the cell shading. The issue is that shading is lost…
foxy123
  • 101
  • 1
0
votes
0 answers

Is Gouraud Shading with a Diffuse Map a "thing"?

As I understand it: When you want to use Gouraud shading, the color of a fragment is determined by interpolating the per-vertex colors. Thus all computation is contained within the vertex shader. However if we want to use a diffuse map to granularly…
arm.u
  • 55
  • 2
  • 7