Skip to main content

Questions tagged [light]

Questions related to drawing or setting light on an object, for use in GUI, or programming questions on controlling light values within a program e.g. controlling light within a program that uses a camera. Not to be used with light, as is used in physics having wave and particle characteristics. Must be used with other relevant tags distinguishing the programming language and framework being used. e.g. unity 3d

-5 votes
0 answers
38 views

How to set the falloffIntensity on a Light2D from a script?

I need to change the FalloffIntensity parameter, which script to access and how to do it? I've combed through a lot of sites and either this information doesn't work, or I don't fully understand ...
Delepiv's user avatar
-1 votes
1 answer
29 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 ...
Erick Escobar Muñoz's user avatar
0 votes
1 answer
59 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 ...
TEDSTEAM's user avatar
0 votes
0 answers
36 views

How to make the sun a light source in my solar system simulation program with pyopengl and pygame?

I wrote a Planet class and use draw_self function to render the sphere, but I didn't know where I should put the code about lighting. I try to initial the light before the loop but the planets were ...
Xiaoyu Feng's user avatar
1 vote
1 answer
60 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 ...
LucashDev's user avatar
1 vote
1 answer
40 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....
Roman Rolinsky's user avatar
0 votes
0 answers
64 views

Is there any way to directly access the baked lighting data present in a MapBuildDataRegistry file?

I am working on a project that involves getting the final color of a material hit by a raycast. There are hacky ways to accomplish this, but as I can't swap the final pre-render GPU buffer back to the ...
Yakman3's user avatar
  • 323
0 votes
1 answer
255 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 ...
Simone Bernardini's user avatar
1 vote
0 answers
153 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 ...
Yunjia You's user avatar
0 votes
2 answers
158 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 ...
Yücel Sabah's user avatar
0 votes
0 answers
55 views

Render emissive light of an object even when the object is behind another object in Unity

I using Unity 2022.3.14f1 and URP rendering. I would like to render a light neon effect for an object which is under and other object in order to just see the emission like that : image rendered in ...
eva maurer's user avatar
0 votes
1 answer
42 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 ...
Adrian K-B.'s user avatar
0 votes
1 answer
68 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 ...
Shout's user avatar
  • 578
0 votes
0 answers
65 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 ...
code_bean193935's user avatar
0 votes
0 answers
37 views

Why are this previews in unity material different?

enter image description here enter image description here Each of versions are 2022 and 2019. I exported prefabs from other projects and imported them but previews of inspector are different. Why? Is ...
rahyun's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
44