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
4
votes
0 answers

Universal Render Pipeline 2d shadows in tilemap

I‘m making a game that is based on tilemaps and i want „realistic” lighting and shadows. Is it possible to make some of the tilemap tiles throw directional shadows like with the shadowcaster2d component? I know I can edit the shape of the…
CherryFake
  • 125
  • 1
  • 10
4
votes
1 answer

Light mesh with specific light three js

I have a scene with a couple of objects and some objects in these case the spheres i want to be affected by the lights with the colors pink and blue. But i also have a tube geometry that should only be affected by a white light, without being…
FutureCake
  • 2,614
  • 3
  • 27
  • 70
4
votes
1 answer

How do you refresh your ViewModel when navigating back using MVVM

When navigating back using the back button on the phone how can I refresh my ViewModel? I'm using the back button on the phone but I believe its the same as calling NavigationService.GoBack(), which navigates to the previous page on the stack but…
Tyler
  • 1,019
  • 12
  • 27
4
votes
1 answer

OpenGL directional light shader

I want to add directional light to my scene using OpenGL and GLSL. The problem is that the theoretically correct way to do so has the wrong results. In the vertex shader I do the following: The direction of the light is given in world-coordinates…
liphtip
  • 43
  • 1
  • 3
4
votes
1 answer

Translucency in a Tile Based Lighting System

I have a lighting system already working and (mostly) functional. I'm trying to implement translucency so that certain blocks (like water) only remove a fraction of light passing through them, and it works, but it stops working at the whole number…
Mike Fitz
  • 101
  • 1
  • 9
4
votes
1 answer

Why are shadows stepping across my materials in three.js?

I have a three.js scene which renders a 3D model. I am using a DirectionalLight to cast a shadow on that model. What I am seeing happen is a gradient stepping effect against the model, as if the model is made up of lots of submodels each with its…
Mike
  • 8,767
  • 8
  • 49
  • 103
4
votes
2 answers

Android - turn off hardware key lights

Inside my app, I need a way to turn off the lights on the standard Android phone keys (Home, Menu, Back, and Search) - how can I do this programmatically?
John
  • 41
  • 1
  • 1
  • 3
4
votes
3 answers

Creating 'laserlights' with Java3D/other 3D API

Yesterday I decided to start my new simulator project with Java and Java3D. Since I already programmed Java before it was a big plus and I could directly start with the simulator. Now I was a bit thinking about how I was going to approach this, and…
wvd
  • 1,189
  • 2
  • 12
  • 23
4
votes
1 answer

Specular reflection is not correct

I'm trying to make a little 3D engine for my master degree (and for my skill). I have a problem on the specular reflection. (I'm sorry for the link for the illustration image but I haven't enough reputation yet). All sources is available on my…
Zethzer
  • 59
  • 1
  • 7
4
votes
1 answer

Android BLE peripheral device data receiving

This might sound really basic but I'm a beginner at Android BLE Development. So far I am able to Create my Nexus 9 device as a peripheral device and Moto G as Central. Plus i'm connecting the devices successfully. But i cant figure out that when i…
sajawalsz
  • 91
  • 7
4
votes
1 answer

Get light sensor value in iOS without private API?

I need to get a concrete value from a sensor in lux. So no other substitute ways are appropriate for me, such as screen brightness. It seems IOKit contains everything I need but it is private API and I will not be able to post my app on the app…
user3798020
  • 75
  • 1
  • 10
4
votes
1 answer

Threejs: Visible light for spotlight

In my current project I need to make a visible spotlight, just like one which calls batman. I mean that cone of light, that you can see on a night sky. I haven't any graphical or 3d experience and I just can't make light visible. Would be nice if…
Elfrey
  • 41
  • 1
  • 4
4
votes
1 answer

How do Get the specific values of Light Sensor

I have just started learning android. I have develop a program named Android Light Sensor that measure the Intensity of Light. Here is my code: package com.AndroidLightSensor; import com.example.andriodlightsensor.R; import…
Devesh Garg
  • 83
  • 1
  • 1
  • 9
4
votes
2 answers

Light coming out of a lamp model in three.js

I've developed a 3D lamp model in blender and loaded it on to a web using three.js. The model is pretty basic, but what matters to me is that I would like somebody to give me an idea of how produce a light in three.js that should give the illusion…
Pamplones
  • 85
  • 1
  • 2
  • 7
4
votes
1 answer

have no light on my three.js scene

i have a problem. i have wrote some code on three.js, it consists of scene, 2 objects, renderer and camera. but when i added the light i didnt see the it! i tried some options..but nothing helped me my code there -…
user1128677
  • 479
  • 2
  • 11
  • 18
1 2
3
43 44