648 questions
-2
votes
1
answer
451
views
Arduino Automatic Light Dimmer
I am trying to make an NEOPIXEL by Adafruit to be dimmed down by only entering the number of seconds but I can't achieve a smooth transition and it only work with up to 5 seconds. And I can't get it ...
2
votes
1
answer
2k
views
Phong Lighting is occasionally too bright on some parts of my terrain (OpenGL)
Using Triangle_Strips and heightmaps I made a mountainous terrain, and used 3D planar projection for texturing. For 3D planar projection, I followed section 1.5 of the following link.
https://...
0
votes
1
answer
884
views
The light component is behind Image in Unity
I have two different canvases: one for the background and one for the game scene
Principal canvas:
Background canvas:
I'm having this problem: If I put an object in the principal canvas, everything ...
1
vote
1
answer
315
views
OpenGL object no lighting
I can't get my model to light properly. I am making an object consisting of little cubes/voxels and all sides have the same light intensity. I am writing my code in Python and use numpy for arrays. My ...
2
votes
1
answer
1k
views
Change light intensity back and forth over time
How can I change the light intensity value from 3.08 back to 1.0 after 2 seconds. I have comment in my code for additional info
public class Point_LightG : MonoBehaviour {
public Light ...
1
vote
1
answer
6k
views
Three.js pointLight seems not working
I am very new to WebGL and Three.js as well, so this might be very basic question and always somebody have asked before.
What I was playing with my codes was making the small solar system.
I used ...
0
votes
2
answers
498
views
Point lighting with shadow mapping and camera moving
Faced a problem when trying to create a spotlight in my scene. The problem is that my camera is moving around the scene, and because of this, there is something wrong with the lighting. In addition, I ...
0
votes
1
answer
980
views
Create light in JAVA using RadialGradientPaint
Im working on a simple game engine using java.
Im want to make some light in the game and I want to use RadialGradientPaint.
Here is my light class
package engine.graphics;
import java.awt....
3
votes
1
answer
716
views
Checking how lit the player is for a stealth game
So, I'm building a stealth game and while using a shadow buffer with a camera and get pixels has worked, it isn't very effective with the light being at certain angles and it is extremely expensive in ...
0
votes
1
answer
55
views
Auto emitting light
I am struggling trying to understand how to render an object with auto emitting light.
I use the below parameters to set the light:
private float ambient = 0.3f;
private float diffuse = 1.0f;
...
1
vote
1
answer
2k
views
OpenGL lighting position is fixed at undesired location
I am trying to locate my light at position 0,0,0 but it always go bottom left of the box which has coords -20,-20,0 and I try to change light position to some arbitrary coordinates but it still stays ...
0
votes
1
answer
131
views
Light Controller in Java
I have IoT project for my thesis, and I am stuck on this kind of problem.
This project is reacting to the incidenting light.
I have getter for light sensor value[getLightValue()]
I have getters and ...
1
vote
0
answers
395
views
OpenGL - Loading vertices, indices, and nomalized Vectors for lighting
Currently I am trying to get lighting working in my OpenTK application. Im using the tutorial https://learnopengl.com/Lighting/Basic-Lighting. In it, they load all their vertices along with normalized ...
0
votes
1
answer
244
views
WPF MVVM - mvvm light doesn't send and register values
AssemblyHelper.cs
namespace TEST.Model.BaseClass
{
public static class AssemblyHelper
{
public static IEnumerable<Type> GetLoadableTypes(Assembly assembly)
{
...
1
vote
1
answer
1k
views
Adjust color temperature or warmth in Three.js
I have created a small room type scene in three.js where I have added few lights.
I have also added features like exposure, power, height at which it is located.
Here is the link where you can see ...
0
votes
1
answer
230
views
OpenGL ES 2.0 light is very darker on some phones
I write game with android opengl es 2.0 and I have a problem with light brightness on some diffrent devices. I use this formula to calculate light in my fragment shader:
float shineDamper = 0.0;
...
2
votes
2
answers
4k
views
Unity - shadows jagged, no solutions?
I have tried everything said here https://gamedev.stackexchange.com/questions/125619/jagged-shadows-with-default-settings and I have shadows in Unity that are jagged/ugly looking that I need to fix.
...
2
votes
0
answers
224
views
Unity ARKit - make materials NOT affected by world light?
Ok, so I have through all of Unity's UnityARKitLightManager from ARKit and I am trying to figure out to how ensure that the gameobjects I place in AR are NOT affected by real world lighting - that ...
0
votes
1
answer
1k
views
GLSL - per-fragment lighting
I started lighting with several light sources. All the manuals that I saw without taking into account the distance between the light source and the object (for example https://learnopengl.com/Lighting/...
3
votes
1
answer
6k
views
How to improve shadow quality in three.js
I have several object in a scene. And I want them moving on a wide plane, which will receive shadows. If I use only one point light or a very large directional light the shadow of a object when it ...
0
votes
1
answer
510
views
Three js lensflare render outside
I want ask about THREE.js lensflare. When my camera dont show my lensflare, its in second dissapear. Is there any option to set something like offset to my camera.. to not hide my lensflare like this?
...
0
votes
1
answer
569
views
LibGDX: light up the objects, that drop shadows
guys. I have a procedurally generated dungeon, that looks like this (tmp art):
With simple lighting, I can get this result:
It looks almost perfect (tho, the colors are a bit strange :X). But is there ...
0
votes
0
answers
302
views
Obtaining light intensity from a greyscale image (python 2.7)
In my Physics Laboratory we are looking into light diffraction through a number of different slits. Then a camera captures the result. The image obtained has a number of white stripes separated by ...
0
votes
1
answer
80
views
Increase Light spotAngle overtime
I have a little question. I would like to increase the Light.spotAngle property over period of time. The written code works but I want this increase with speed, or something like that. I want to ...
0
votes
1
answer
781
views
Unity - Spotlight turns off when not looking towards it
I have 2 lights in the room. one is a point light, that ligts up the room, and the other is a spot light that points towards the lava to make the lava brighter.
here is a short video showing the ...