648 questions
0
votes
0
answers
54
views
Objects with custom Toon shader turn black after light baking in Unity (URP)
I have a Unity(URP) shader that implements a Toon effect — it works correctly and looks good, but after baking the lighting in the scene, objects that use this shader simply turn black. I don’t have ...
1
vote
1
answer
309
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....
0
votes
0
answers
76
views
After restarting home assistant device is displaying as device is no longer avilable
Doing MQTT integration with the gateway. Currently, I use the MQTT Explorer tool as a gateway to publish a message in a particular topic to Home Assistant.
configuration topic is homeassistant/light/...
2
votes
2
answers
163
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. ...
0
votes
1
answer
97
views
light.exe : error LGHT0306 : An error (E_FAIL) was returned while finalizing a CAB file
Running two Windows 11 Pro vms on Fedora Linux. One vm runs light.exe 3.11.2 just fine and creates the .msi. The other vm has this error when trying to create the .msi using the exact same codebase, ...
1
vote
0
answers
88
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
100
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 ...
1
vote
0
answers
55
views
How to edit default colors based on Bootstrap theme?
I want to change variables such as primary, success, body-bg especially for dark and light themes using sass in Bootstrap, but I couldn't find the right way. Can you help?
What I'm trying to do is ...
0
votes
1
answer
478
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 ...
1
vote
0
answers
53
views
Weird "bug" in my LOS check, what other algorithm should i use?
Image Link
So as you can see there are some weird dots on the left side, which dont look so pleasing. These weird dots are actually correct but i dont like them. I use a line algorithm with some extra ...
0
votes
0
answers
140
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
...
0
votes
1
answer
192
views
Threejs cube is black and has no unexpected light
I see other people demo has light but my local 5173 cannot see the light on some sides for the MeshPhongMaterial. I tested light position , tested pointlight , tested ambientlight and still cannot ...
-1
votes
2
answers
650
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 ...
0
votes
1
answer
149
views
Lights (spotlight / directionalight) creating waves on my ground texture. How can I remove them?
I just encountered an issue with one of my three.js project. I've got a scene with some mapped objects. When I add some lights on the scene, some "waves" appeared on my scene.
enter image ...
1
vote
1
answer
160
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 ...
1
vote
2
answers
147
views
Why procedural models in Ursina are shaded differently
I can't figure out how to make Ursina procedural models look the same as mesh-based models.
from ursina import *
from ursina import shaders
app = Ursina()
L1 = DirectionalLight(color=color.white)
L1....
0
votes
1
answer
801
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 ...
1
vote
0
answers
279
views
Get the value of ambient light sensor on iPhone in Swift
I am working on a testing project which is trying to get the value of the ambient light sensor in iPhone and check whether the values are accurate or not. I have searched through the developer ...
0
votes
2
answers
273
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
87
views
Color management of sources of illumination (stars) in an image
I am working with images of star fields. For a given star I want to obtain a representative RGB color in a given image working colorspace, which may not be sRGB. (If I only had to worry about sRGB the ...
0
votes
1
answer
88
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 ...
0
votes
0
answers
118
views
Is there any way to set the points of a freeform light in Unity?
I'm trying to recreate family fortunes (Feud in America) and I'm trying to make a spotlight that follows the mouse. The code for the spot to follow the mouse works fine but I'm having trouble changing ...
1
vote
2
answers
514
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 ...
2
votes
0
answers
326
views
WiX Toolset Light.exe -v verbose does not produce any additional output
I am trying to investigate an issue when building my WiX.3.11.2 based MSIs and so have added the -v command light option but am not seeing any change in the output and indeed the build logs are the ...
1
vote
0
answers
362
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 ...
0
votes
1
answer
96
views
Unity light baked very badly on stairways and other holes
I've already baked light in this project. And it WAS good. But yesterday when I baked it again there were some artifacts on stairways and doorway.
I tried to change lightmapping settings, but it didn'...
1
vote
0
answers
210
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
55
views
Threejs Pointlights bleed through Objects
I'm trying to make a UFO ship with a Spotlight in the middle and 8 pointlights around it as you can see in the figure. I think I got most of the set up correct, but I'm having a hard time preventing ...
0
votes
0
answers
141
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 ...
0
votes
1
answer
52
views
change the color of the button and save the information
we have 9 buttons (1 is the lowest the main button and 8 other buttons), and 8 lights (buttons that their color change randonly while pressing the main button). (demonstrated in the picture below).
we ...
1
vote
1
answer
523
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
1
answer
939
views
Unity light turning off when switched to baked?
I've been trying to set up some baked lights for my Unity project, and whenever I switch a light's mode to baked, it turns off completely. No error messages, just a light that's off, and as soon as I ...
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
1
answer
147
views
Change local light color using menu (VPython)
I have tried to create a menu to change the color of a local light in my simulation. The simulation is a central sphere being a planet, around an atmosphere with transparency smaller than 1 and a ...
1
vote
0
answers
808
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
208
views
URP Spot Light braking Point Light
Im using unity 2021.3.16f1 and I'm still having this issue with point lights and spot lights, my spot light that acts like a flashlight overrides all of the point lights in my scene, I already cleared ...
0
votes
1
answer
148
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
0
answers
64
views
Dark/Light Automatic Change
So I have this manual script for changing my forum from dark to light, however how to do it as a automatic setup from 6pm till 7am dark etc)
<script>
$(document).ready(function() {
...
0
votes
1
answer
227
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 ...
-2
votes
1
answer
293
views
How to add light effects to buildings in unity (building light)
To be more precise I need a type of lighting that looks good to put on building models that already have a texture, I can't texturize the textures with light turned on apartments such as in GTA5 ...
0
votes
1
answer
160
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 ...
1
vote
1
answer
354
views
Is there a way to turn on the camera's light with Python?
I have a project that is basically a loop of things doing things in a period. I need to know when are they working, so I was wondering if there's a way to turn on the camera's light as an easy way to '...
0
votes
0
answers
60
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
2
answers
299
views
Android Studio shows bug when trying to use event.values in kotlin
I got the following problem in Android Studio.
I tried to rebuild an Google Android Guide for using the light sensor. While typing the code I got this error from Android Studio. It says Unresolved ...
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 ...
0
votes
1
answer
832
views
Baking point light URP
I use URP for my Unity 3d project. I have many point lights in my scene, they all set to mixed and important light. However some point lights does not produce any light on the scene after the baking.
...
1
vote
1
answer
2k
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
0
answers
69
views
how to make Light not go through 3DGameObjects?
I am creating a game where a flashlight is involved, though i have found the light source is going through walls that i have created Example showing
I have found other questions like these, where the ...
1
vote
1
answer
703
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 : ...
0
votes
2
answers
959
views
Lights stop working on only some even when component is the same
I'm trying to make lights in Unity for my house.
I've got 14 lights in my house, however, there is a small problem. This is because the lights are dimmed in some parts of the house and not in others. ...