Questions tagged [shadow]
Questions related to drawing or setting shadows on an object. It refers to graphical shadow in user interfaces and 3D rendering and not to be confused with conceptual shadows (copies) of an object, library, database etc.
2,002
questions
2
votes
1
answer
39
views
SceneKit – Shadow from directional light dependent on camera angle
This question will leave you all puzzled: In my project, a spaceship is flying over a landscape. It casts a shadow (straight below) that is created by using a directional light, so its size doesn't ...
0
votes
1
answer
13
views
How to compute shadow casting of simple polygon geometry objects in 3D using pythjon
I am building a python library to compute solar power generation (of satellites). In order to account for shadows cast by parts of the satellite onto its solar panels, I need to compute the shadows.
...
1
vote
1
answer
36
views
Why doesn't my procedurally-generated mesh in Unity have any shadows?
I have generated a mesh using C# and it worked but there are no shadows. I expected the shadows to just work like the built-in Terrain in Unity but it doesn't.
I have a directional light source above ...
0
votes
0
answers
18
views
What is the cause of the problem of pixelating the shadow boundary during shadow mapping in the preferred rendering process?
We are attempting to render depth in a directx12-based project, and for this purpose, we are saving albedo colors, normal vectors, and world space positions in the first rendering path and using them ...
0
votes
1
answer
33
views
How to create blurred and colored shadows in React Native Android under view
For ages I was trying to create beautiful, modern components in React Native on Android, however it's seems to be not that easy. What I want to create is something like in here:
However, still the ...
0
votes
0
answers
20
views
Round edges and shadow not working concurrently with UIView + UILabel inside in Swift [duplicate]
I am trying to create a custom UIVIew-based display box for my app in the form of a "badge" with a title "My name is..." and an empty gray area underneath. I am using Swift with ...
0
votes
0
answers
19
views
Three.js - Shader with shadows
I'm new to webGL and even more so to shaders.
I created a shader to represent grass.
But I can't manage to take into account the projection of shadows (receiveShadow) of my shadowMap generated thanks ...
0
votes
0
answers
7
views
I use TextLayout to draw a shadow to my text words on JTextPane, the draw itself is successful. But the shadow disappears
for(int m = start; m<end; m++)
{
String s = textPane.getText().substring(m, m+1);
try {
Rectangle2D caretCoords = textPane.modelToView2D(start);
double x = caretCoords.getX();
...
0
votes
1
answer
24
views
OutlineSpotShadowColor under API 28
I'm trying to disable clicking effect on Material Chip. In Api>28 there is outlineSpotShadowColor attribute. And how to handle this on Api<28?
In my adapter i'm adding chip and disabling this ...
-2
votes
0
answers
35
views
I need to write a Python script to run password.txt to shadow file
So I have 2 file one called passworddic.txt and the other one etc_shadow. I should run passdic.txt on etc_shadow to brake the password. My code is the following:
import crypt
# Open the dictionary ...
0
votes
0
answers
32
views
Is there any better way to do image processing for shadow removal or shadow handling?
In attached images, the dark objects are rolling and bouncing on a platform and so, a screenshot is taken at a particular interval. I am able to process the images when there are no shadows, no ...
1
vote
1
answer
26
views
three js only some child shadows show
i currently have a scene with a GLB model, the model has child meshes but only some are casting shadows
you can see the word peripherals, the big island and the small island and the whale all cast ...
0
votes
1
answer
44
views
How Can Use Dynamic Shadows In my unity AR project?
I am trying to create a AR project to place furnitures by using camera. The shadows of the application do not change depending on the light. I need dynamic shadows that respond to light.
I used Shadow ...
0
votes
0
answers
30
views
How to create a inner-shadow on a SVG (or PNG)? [duplicate]
I would like to create a neumorphic effect on an SVG of a musical note (specifically an eighth note), and more generally on any complex shape. I have an SVG file of this note, and here is the code:
&...
0
votes
1
answer
21
views
Python Script Issue (List displaying in one long string vice a new line "\n")
Python Script Output IMAGE
I am writing a script which takes the /etc/shadow and outputs it to a list on the screen to present to viewers. However, the output comes out as one long list vice a list ...
0
votes
0
answers
45
views
winForm has no border shadow
I want to create a blank border shadow form, and want to keep WS_MINIMIZEBOX | WS_SIZEBOX | WS_CAPTION these three style style window use rise more convenient.
Currently used ...
0
votes
1
answer
83
views
How to remove elevation or box shadow in tab bar in flutter?
I am using tab bar in one of my screen. As you can see when I scroll there comes the elevation under the tab bar. I tried multiple ways to remove that, but can't. Do you guys have any idea on this ?
...
0
votes
0
answers
27
views
Unity, shadows in 2D realm
I'm making a 2D-game with Unity, but i'm making it in 3D-environment because 2D-environment doesn't support NavMesh. Now i noticed that 3D-environment doesn't support the new 2D-lights which i would ...
0
votes
0
answers
29
views
React Three Fiber Object Not Recieving Self Shadow
I am working with react three fiber in a scene. This is the relevant code
<primitive castShadow recieveShadow name={"lampshade"} object={props.meshObject} position={[0, 0, 0]} />
<...
0
votes
1
answer
52
views
Tailwind CSS custom shadow is not working
Tailwind CSS custom shadow is not working in my app.
I am trying to apply Tailwind CSS custom shadow on div, which is inside my Card component, but I don't not why it is not working. Although, ...
0
votes
1
answer
29
views
How to create shadow with 0 radius and only at bottom side of ElevatedButton in Flutter for material components?
How can I create shadow in ElevatedButton with 0 radius and only at bottom side? SwiftUI has shadow modifier which allows you to edit shadow color, radius and positions. Is there something similar ...
2
votes
1
answer
50
views
React Native : shadows behavior
Hello React Native developers,
The code below produces the image in caption. I'm just wondering why the shadow of the first view (with the icon) is diminished compared to the black view. I added ...
0
votes
0
answers
49
views
Jetpack Compose view position and shadow preview is different to on when running on device
I have the below code, however the Preview is rendering the view different to when I run it on a AVD (Android Virtual Device). It looks there are 2 things different:
Firstly, the AVD is rending the ...
0
votes
0
answers
72
views
Android UI MaterialCardView not displaying shadow on all sides
I am using a MaterialCardView to display the following expected layout.
IOS screen shot, expected UI
But on Android side it looks like this. Android screenshot, shadow does not appear on all sides, ...
0
votes
1
answer
57
views
How to reject a "desired" change in AWS IoT Device Shadow
We are using AWS IoT "Device Shadow" service to sync settings between cloud back-end services and our embedded device.
The device publishes its "reported" state to $aws/things/xxx/...
2
votes
1
answer
59
views
Shadow and Corner Radius at the same time doesn't show in swift
I have a CameraView which has two button 1.takePictureButton 2.recordVideoButton.
I want to add corner radius and shadow in the CameraView. So I add a innerView and add it as subview of CameraView. In ...
0
votes
0
answers
57
views
draw sprites to surface? ( I want to create a surface layer for shadows )
Im coming from game maker studio background and the engine would let you draw sprites onto surfaces. A way to achieve shadows was to add a script to instances that required shadows. the script would ...
1
vote
1
answer
54
views
Shadow Mapping - Space Transformations are going bad
I am currently studying shadow mapping, and my biggest issue right now is the transformations between spaces. This is my current working theory/steps.
Pass 1:
Get depth of pixel from camera, store in ...
0
votes
1
answer
43
views
How to remove the shadow from the text of the svg and make it visible over it?
This is my code in my React app and I find it difficult to make the text appear on the svg, and also want to remove the shadow from the text so that only the shape is having the shadow.
<div ...
0
votes
1
answer
37
views
How to have multi-layered kind of shadow/gradient in Android
I am trying to achieve this layout. The upper part is a bit dark and it decreases as we move down making it complete transparent. I tried a couple of gradient variations but didn't get the desired ...
0
votes
0
answers
83
views
Putting a Shadow on a List makes the View Render Incorrectly on iOS 15
I have recently been making an app using SwiftUI. In this app, I have a background image that is mostly white, and so decided to add some shadows to the list to better distinguish the elements from ...
-1
votes
1
answer
951
views
How can I fix this lighting bug in Unreal Engine 5?
There's not much to say, the lighting just looks hideous and I have no idea why. I didn't change any light settings. It looks like a wood texture but it's all white (supposed to be).
I'm using UE5.1 ...
0
votes
0
answers
88
views
SwiftUI: How to use blendmode overlay with new inner shadow modifier?
to keep it short - I'm trying to achieve this look:
It's a RoundedRectangle with the following settings:
My problem is that I can't put .blendMode(.overlay) after setting the shadow color without ...
0
votes
1
answer
39
views
Weird error message when implementing IEquatable
Class gridTradingState
Implements IEquatable(Of gridTradingState)
Public Overrides Function Equals(other As gridTradingState) As Boolean Implements IEquatable(Of gridTradingState).Equals
...
0
votes
2
answers
43
views
How to make a 3d shadow on bottom of the container so it looks like the container is standing like this on image?
I need to make a realistic 3d shadow that looks like the container is standing. Just like the image shows.
0
votes
0
answers
142
views
Create custom shape using ShapeBorder class
Need to create a specific/custom shape and give a shadow that fits the edges of the shape.
I tried a website (https://fluttershapemaker.com/) that generates code for arbitrary shapes, but the website ...
0
votes
1
answer
51
views
Wpf how to create inner shadow like a sunken border
I am trying to accomplish the inner shadow in the following image.
It is a sort of sunken border looking shadow. I managed to come close with linear gradient fill but it needs some blur.
<Style ...
1
vote
2
answers
44
views
Nativescript 8 IOS shadow cornerRadius bug
Here is an example with test shadow (black) for element(white) with cornerRadius 17dpi
But the shadow takes on a radius that is larger than the element it belongs to and visually it looks like the ...
0
votes
0
answers
11
views
How to Add Shadow to ParentView When UIPickerView is Shown
I want to add a shadow to the background when UIPickerView is shown.
This is my
func setupPickerView() {
self.surveyTypeTextField.inputView = pickerView
self.surveyTypeTextField....
-1
votes
1
answer
22
views
how to make many buttons on box with shadow
I want to know how to make box with non sharm edges with colorful shodows, in box many colors without borders. please help me. I am new in programing.
I want you to give me some examples to how to do ...
0
votes
1
answer
15
views
How to fix CAShapeLayer coming on top of view
I am adding shadow with the help of CAShapeLayer, but on adding the layer, the shadow is coming on top of view.
I have tried inserting into different positions and adding as sublayer, but in all the ...
0
votes
0
answers
59
views
Shadow of RoundedRectangle is pixelated on edges
Based on some logic we apply shadow for RoundedRectangle which is the element used in the .background property of the whole VStack.
VStack {
...
}
.background(
RoundedRectangle(cornerRadius: 16, ...
-1
votes
1
answer
103
views
Black color shadow not showing - SwiftUI
I am working on an app where I have a header on top and a scroll view below it. Now, I want to add a bottom shadow to the header. The background color for the app is black. The shadow on the header ...
1
vote
1
answer
188
views
(DX12 Shadow Mapping) Depth buffer is always filled with 1
I'm really new to graphics programming in general, so please bear with me. I am trying to add shadow mapping from a distant light (orthogonal projection) into my scene, but when I follow the (very ...
0
votes
1
answer
75
views
Kivy, shade/shadow under widget
I want to know how can I achieve a button (in kivy) like the image that I have attached below. I want to know how to create a shade/shadow like this. I just need a hint to know where to start and what ...
0
votes
1
answer
68
views
What is the best way to store authentication (login) in a system when a user has been authenticated using shadow in Linux with C++
I have a project called kos and it's a simple SUID tool,
recently as a lot of people in private have been asking
me I added authentication storing/remembering,
but it's not that good
So what happens ...
0
votes
0
answers
57
views
Johnrengelman shadow 5.1.0 not running in gradle 5.6.3
I'm trying to create a fat jar for my kotlin + micronaut lambda project with shadow plugin.
My build.gradle
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.41"
id "...
0
votes
0
answers
2k
views
Android Compose Shadow
Is Android Jetpack Compose shadow modifier supposed to look like this?
I'm so confused. I've written a few components and I'm testing the shadow modifier that I believe was introduced in compose-1.2....
-1
votes
1
answer
51
views
Text Shadow by CSS
We are using different static images as per year to display.
I want to make it dynamic by adding image without number and adding number. Its looks good except. I tried text-shadow css property but ...
1
vote
0
answers
64
views
PySide6 QDockWidget Shadow disappears while using setTitleBarWidget [duplicate]
When Using setTitleBarWidget to remove native titlebar makes the box shadow of the QDockWidget disappear.
How to keep shadow effect?
(PySide6 version 6.3.1)