648 questions
3
votes
1
answer
127
views
Ursina Engine Shaders MacOS
I have freshly installed ursina in a virtual environment. I am trying to set up a basic scene with some lighting:
from ursina import *
class Pivot(Entity):
def update(self):
self....
2
votes
2
answers
147
views
How to make a tree support dark/light mode?
All the pages I have been able to add support for dark/light mode. One page has a tree and everything I tried failed and most changes made the formatting (text, alignment, etc.) change, for the worse. ...
1
vote
0
answers
68
views
How to correctly add point light and reflection values in an ray tracing system?
I'm working on a small ray tracing project and I'm trying to add a point light system to my rendering engine. Here's an excerpt of my main ray_color function, which calculates the color of a ray based ...
0
votes
1
answer
85
views
Unity weird shadow rendering in gameview only
I was checking out the lighting of my flashlight and set shadow to soft shadow and then noticed that in game view cam it was rendering weird shadows. if the light source is child of the camera then ...
0
votes
1
answer
412
views
How to change alert style in .Net MAUI Android?
I am porting an application from Xamarin to .Net MAUI, In Xamarin I was using a light theme in Android, so the alerts had a white background but in MAUI the alerts have a gray background.
How can I ...
0
votes
0
answers
118
views
Improving low-light image capture using OpenCV
We are using the following Python script combined with OpenCV to record video of salmon migration in order to estimate total fish passage,
import cv2
import numpy as np
import time
import datetime
...
-1
votes
2
answers
491
views
How to put a "Pause" or "stop" button in labview
I have this easy code, its a traffic light
enter image description here
Its simple, past 1000ms, it switches to the next case to turn a different light.
enter image description here
I build it like ...
1
vote
1
answer
123
views
Unity - Light Flicker Script not running/working on Play
I am very new to both C# and Unity, so I have been following some tutorials to create a Wall Torch (GameObject) that has a child 2D Spot Light which flickers using the following script I found on ...
0
votes
1
answer
736
views
How to know if an object is "lit" in Unity 2D
I want to know if an object is currently "lit", so I want to detect if the light source hits it.
I thought of a trigger as big as the light but I think that it would be quite annoying to put ...
0
votes
2
answers
242
views
Light Functions Weirdly On Nvidia Graphics Cards
EDIT: If you are curious about the game, you can inspect the game on steam: https://store.steampowered.com/app/2570900/SABAH_Sun_As_Biased_As_Harmony/
I have developed a video game on Unity. It works ...
0
votes
1
answer
84
views
How to calculate UV for sampling spot light mask?
I've got this code:
void BlinnPhong(
inout float3 outputColor,
PixelMaterial material,
float3 lightColor,
float3 lightDir,
float3 viewDirection,
float ...
1
vote
2
answers
472
views
How do I standardize the brightness/light levels in a series of colored pictures?
I currently have a large range of colored pictures which all differ in brightness. However since this is for a research project, it is necessary the brightness levels in these pictures are ...
1
vote
0
answers
332
views
Flickering light bug when moving camera
When I move the camera around in certain positions it flashes a completely blinding light. The object that's flickering has an unlit shader graph as a material which is this:
(It's meant to be a ...
1
vote
0
answers
196
views
Unity URP no shadows at edges of inside corner. Light bleeding through walls/edges. Shadows not rendering properly inside
I imported some FBX meshes into Unity, but even though the geometry is solid, the shadows on the inside edges do not render correctly, almost as if light is bleeding through the edges, even though it ...
0
votes
0
answers
132
views
Realistic Shadow Casting On Widget In Flutter
I want to achieve simulation of flickering effect or realistic shadows casted by natural neon lights. Something like the picture:
Glowing Square With Two Light Sources
I have tried boxshadow in ...
1
vote
1
answer
509
views
Why light color in PBR material can be larger than 1?
Recently, I implemented the PBR lighting following the LearnOpenGL tutorial. But I found that the light color the tutorial use is very large (e.g. 20~300, https://learnopengl.com/PBR/Lighting), which ...
0
votes
2
answers
2k
views
URP Lit shader render face on both doesn't react to light
I'm having a problem with URP Lit shader, I'm using a spotLight as a flashlight, it works for the front face of the material, but I can't get the lights to react with the back face, here is how I'm ...
1
vote
0
answers
775
views
Godot 4.0 make unlit objects be transparent instead of black
How do I make objects that are not actively being lit by a light source be transparent as opposed to just black?
I'm trying to achieve an effect with a PointLight2D where selected layers inside the ...
0
votes
1
answer
136
views
I Can only control the First 10 pixels of my led strip via Serial data from Vixen lights, Arduino RF ws2811 Pixel controller
i am trying to write two scripts, A Tx and a Rx, These are controlled using serial data sent from vixen lights software.
RX script
#include <FastLED.h>
#include <RF24.h>
#define DATA_PIN ...
0
votes
1
answer
212
views
Unity, 2D, Hiding light sources outside of field of view
I'm playing with light 2D in unity and struggling to achieve proper lighting. I want to create a top down shooter with rendering only field of view of a playable character. I have two light sources in ...
0
votes
1
answer
146
views
Filter/Shader "Godrays" which does not darken the background
Dear Magnificent Community and Developers,
There's a PixiJs filter which is based on a shader ""Godrays" by alaingalvan", but it is required to somehow achieve such a filter/shader ...
0
votes
0
answers
48
views
Unity3d, Spotlight doesn't work correctly all the time
There is a problem (most likely with Post Processing) when light hits objects, it illuminates a larger area than itself (as in 1 picture), but at the same moment it works normally in scene viewer (2 ...
1
vote
1
answer
3k
views
Lights pass through the objects in unity
I'm having a trouble, I'm trying to create a dark scene for my project, but, when I add lights, the lights pass through the objects, it has no sense, becouse it pass through the walls.
Light beside of ...
1
vote
1
answer
1k
views
Correctly calculating attenuation of point and spot lights in Unity using a ForwardAdd pass
I've encountered a problem where in my custom Geometry shader, I can't seem to nail the correct attenuation. This causes all point- and spot lights to have a square of light around them. The color is ...
0
votes
1
answer
666
views
WiX Light.exe outputs "LGHT0204 : ICE80: This 32BitComponent [component name] uses 64BitDirectory [directory name]" for every wxs component
During the creation of an msi file with Light.exe (without Visual Studio), I got a warning for every wxs component in my project.
The errors looked like this:
C:\path\WXS.wxs(10) : error LGHT0204 : ...