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

Questions related to drawing or setting light on an object, 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.

The use of the light tag here is as light is exposed within a graphical user interface and how to alter the settings and angles of the light. e.g. unity3d

For use of programming in e.g. Android where a program may be written that utilizes the camera and programming filters affecting the selection of light through the camera.

648 questions
6
votes
1 answer

How to convert between lux and exposure value?

How to convert from an exposure value to lux? Thanks! i.e. what's the formula behind this chart?
ohho
  • 50,879
  • 75
  • 256
  • 383
6
votes
1 answer

How to prevent an object from being illuminated by camlight in Matlab?

[Hereafter are 4 snippets, one should only be interested in reading the two first ones. However by copy-pasting all of these, one should be able to launch what I see, although screenshots are provided at the end.] Hi, by launching this main.m : %To…
mmmmm
  • 81
  • 5
6
votes
2 answers

OpenGL: Rendering more than 8 lights, how?

How should I implement more than 8 lights in OpenGL? I would like to render unlimited amounts of lights efficiently. So, whats the preferred method for doing this?
Newbie
6
votes
3 answers

2D lighting - make light not go through wall

I have a collsion map, and some places that I want to be light sources. The light source provides light that is actually a shape where I can see the ground. It now looks like this: So the light goes through the walls. I want to make it look like…
noisy cat
  • 2,865
  • 5
  • 33
  • 51
5
votes
1 answer

AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM not working

Edit: Updated in the bottom I'm calling this in Application's onCreate: AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) Then when I'm going to the device's settings (Settings -> Display -> Night mode (switch:…
Zbarcea Christian
  • 9,367
  • 22
  • 84
  • 137
5
votes
2 answers

Android light sensor not triggering event

When using the light sensor, I have an issue where the onSensorChanged() event is never triggered. The reason is that when the listener is registered, if the lux value remains constant, there's no change thus no event. However, I still want to know…
Glitch
  • 2,785
  • 1
  • 27
  • 50
5
votes
1 answer

GLSL spotlight projection volume

In my open source project I have setup a deferred rendering pipeline using Qt3D. So far so good, but now I'd like to move forward by adding spotlights projection volume. (e.g. as if there is smoke in the scene) Like this: The fragment shader I'm…
Massimo Callegari
  • 2,099
  • 1
  • 26
  • 39
5
votes
2 answers

SceneKit avoid lighting on specific node

In SceneKit I'm building a node made of lines to draw the XYZ axes at the center of the scene, like in Cinema4D. I would like these 3 nodes not to participate to the global lighting and be viewable even if the light is dark / inexistent / too…
Benoît Lahoz
  • 1,270
  • 1
  • 18
  • 43
5
votes
2 answers

Defining Light Coordinates

I took a Computer Graphics exam a couple of days ago which had extra credit question like the following: A light can be defined in one of two ways. It can be defined in world coordinates, e.g. a street light, or in the viewer (eye coordinates),…
Zachary Wright
  • 23,480
  • 10
  • 42
  • 56
5
votes
3 answers

Adding and removing three.js lights at run time

How to add and remove different light types at run time in three.js? I have some checkboxes, each representing a light type and I want to add a certain light type to the scene when its checkbox is checked and remove the light when unchecked. I…
Miloud Eloumri
  • 779
  • 1
  • 8
  • 14
5
votes
3 answers

Looping with delay jquery / js

I have traffic light - 3 colors:
and array: var status = ["ready", "steady", "go"]; I want add and remove class (to imitate flashing) from…
Vojtech Lacina
  • 340
  • 2
  • 3
  • 11
5
votes
1 answer

WPF 3D light intensity

I have a 3D scene with an AmbientLight. And I want to add a second Light (SpotLight) to beam an area with red. Unfortunately the AmbientLight is much brighter than the Spotlight so it is not visible. Has anyone an idea? Thanks in advance.
Andreas
  • 3,843
  • 3
  • 40
  • 53
4
votes
3 answers

GLSL fixed function fragment program replacement

When using the OpenGL fixed function pipeline for vertex setup, how a fragment program looks like that is compatible to the fixed function vertex setup? I guess that usually depends on the number of light sources and texture layers etc.. So for…
dronus
  • 10,774
  • 8
  • 54
  • 80
4
votes
0 answers

Making an atmosphere that can handle multiple suns?

I am trying to simulate a solar system with three suns. That works fine: Surface of planet looking at 2 suns The problem is that it doesn't look great. I don't need a photorealistic image, but I want better than this. I have determined that the…
4
votes
1 answer

OpenGL: no light for a simple glut cube

OpenGL: no light for a simple glut cube Hi, i'm trying to study lights in opengl and glut but I have problems quite early. I have this code for making a lighted cube in a custom position with custom camera setting: void testApp::draw(){     static…
nkint
  • 11,513
  • 31
  • 103
  • 174
1
2
3
43 44