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....
0
votes
0
answers
42
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
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
0
answers
19
views
How to render the light source itself in raytracing?
I'm following some articles to render a simple scene consisting of several spheres and light source. My question is, how would you render the light source itself? For example, a round light bulb, or a ...
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 ...
1
vote
1
answer
707
views
Path tracing shadows with Three.js
I'm trying to experiment with ways to create a more realistic look in webGL and stumbled on this demo http://madebyevan.com/webgl-path-tracing/.
I'm fairly new to javascript and have been using ...
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 ...
-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 ...
0
votes
1
answer
152
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 ...
0
votes
1
answer
139
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
214
views
Box2d Lighting different behavior with different screen size
I tried to play a little with lighting, but very quickly I came upon weird behavior that I dont understand. Could anybody explain to me, why this happens, if it is on purpose, or I do something wrong.
...
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
2
answers
2k
views
Light sleep wake-up via gpio on esp32
I have a simple code for esp32 here. I can only use gpio pin number 35 on the board.
So esp32 should go to light sleep and wake up on button press.
When I run this program below, my esp32 goes into ...
1
vote
0
answers
269
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
3k
views
Spot light doesnt work for virtual reality in unity Urp
My point lights renders in unity but it wont render in the oculus headset. What could be the cause. I Could not find a solution online.
I am using URP
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 ...
0
votes
2
answers
924
views
How to blur the background of each image item in light gallery? (Specific)
I use Light Gallery (http://sachinchoolur.github.io/lightGallery) for my website and want to make some customization on it.
I want to blur the background image of each and every image items that open ...
1
vote
1
answer
587
views
WebGL, Three.js - Lights, Shadows
I have a problem with focus of lights to targets (need focus it on main character and make background darker). The second problem is, that shadows doedn't work. Below is a part of code with deal with ...
1
vote
2
answers
1k
views
How to add lighting to shader of instancing
How can I add lighting ( ambient + directional ) to the shader that used with InstancedBufferGeometry?
For example, I want to add lighting to this:
https://threejs.org/examples/?q=inst#...
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 ...
0
votes
1
answer
90
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'...
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 ...
0
votes
1
answer
50
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 ...