Questions tagged [ambient]
72 questions
14
votes
2 answers
Accessing the ambient light sensor in iOS
I'm working on a project in which it is really necessary to access the ambient light sensor.
I searched a lot in Google and Stackoverflow, but couldn't find any useful information. Is it even possible to do so?
I also tried to calculate the ambient…

Lukas
- 1,346
- 7
- 24
- 49
11
votes
1 answer
NRWL NX library typescript ambient declaration files
I have a basic setup in my new NX workspace
/apps/my-app (node type)
/libs/some-lib (node type)
Both created with nx cli commands:
i.e. nx g @nrwl/node:lib some-lib --simpleModuleName=true
For library I wanted to use ambient declaration files…

Pawel Miatkowski
- 141
- 5
9
votes
4 answers
how to measure ambient temperature in android
I want to measure ambient temperature on android device. but my device doesn t include thermometer sensor.
How can I measure it?
Thanks.

Furkan
- 428
- 3
- 5
- 19
8
votes
1 answer
Typescript declaration: Merge a class and an interface
I have two models Model and its subclass ClientModel an ambient module. Now I want to declare a set of attributes of ClientModel from an interface so called Client. How can I do it? I can imagine something like this:
interface Client {
name:…

Quang Linh Le
- 751
- 1
- 7
- 16
7
votes
1 answer
"Overload signatures must all be ambient or non-ambient" when using setTimeout in another function
I have a setTimeout callback but when i put this inside another function, I'm getting an error with tsc:
function delayedSnapshot() {
setTimeout( function() {
var filename = "/Users/dc/dump/heapdump.heapsnapshot";
…

dcsan
- 11,333
- 15
- 77
- 118
6
votes
1 answer
OpenGL shimmering pixels artifact
I'm trying to implement ambient occlusion on a voxel-based mesh and get these flickering white pixels at the edges of faces:
Here is my fragment shader:
#version 120
varying vec4 color;
varying vec4 normal;
void main(void)
{
float light =…

Reed G. Law
- 3,897
- 1
- 41
- 78
6
votes
1 answer
How to configure ambient framework within a Tridion CWA web app
I'm adding ambient framework within an existing Tridion CWA Java web application and I have some questions regarding the mapping of java filters (ambient framework filter vs CWA filters)
In the SDL CWA 2011 SP1 documentation (online portal) they…

Sébastien PRAT
- 439
- 4
- 12
6
votes
1 answer
Error in configuring ambient data framework for Content Delivery web Service
I am configuring ambient data framework for Content Delivery web Service it is throwing below error when I hit my service url in browser
Server Error in '/' Application.
Cannot find claim processor implementation class:…

chiku
- 383
- 1
- 12
5
votes
0 answers
Using Unity baked ambient occlusion for unlit shader
I am working on a mobile game in Unity, and we've reached the optimisation stage of development. We've been using realtime AA from the Post-Processing Stack, but I would like to switch to baked AA, because nothing except for the player moves in our…

user3033405
- 83
- 1
- 1
- 4
5
votes
1 answer
Overload signatures must all be ambient or non-ambient in TypeScript
Here's code.
filename is common.ts
module common{
export function commonInit(){
return true;
}
}
when i build eclipse Ant, it becomes
"Error TS2384: Overload signatures must all be ambient or non-ambient.".
Can…

arcs
- 51
- 1
- 8
4
votes
1 answer
Typescript ambient *.d.ts error TS2304: Cannot find name "*"
I'm trying to write a very simple ambient type in a *.d.ts file. The type (interface) is called "IField" and I'm trying to use it not from import, but as an ambient type. Somehow, I successfully used ambient types in an other projects, but I can't…

fred jean-germain
- 41
- 2
4
votes
2 answers
Crash loading WearableActivity
I am receiving a crash with the following message while migrating an AppCompatActivity to a WearableActivity.
Caused by: java.lang.IllegalStateException: Could not find wearable
shared library classes. Please add uses-library
…

juliusspencer
- 3,008
- 3
- 26
- 30
4
votes
1 answer
ERROR XMLConfigurationReader - Error while validating file 'cd_ambient_conf.xml' with schema 'schemas/cd_ambient_conf.xsd
I configured ambient data framework in my staging website for Tridion UI 2012. But in the log file it records below error -
2
012-11-08 11:42:20,095 WARN AmbientDataContext - There is no current ambient data context - the ambient data framework is…

chiku
- 383
- 1
- 12
3
votes
0 answers
Cocoa disable 'Automatcally adjust brightness' with kIODisplayAmbientLightSensorKey
My cocoa application needs to disable the display's setting for 'Automatically adjust brightness'. This is the checkbox that can be found in System Preferences -> Displays
While I have found some great resources on how to get/set the brightness…

Mary Martinez
- 314
- 5
- 12
3
votes
2 answers
three.js R71 - ambient removed, how configure to get same rendering results?
In three.js r71 the ambient property has been removed from THREE.Material.
Previously I used ambient to set correct rendering (lighting) effect of the materials that I used on my meshes. Now the appearance of all my meshes changed dramatically.
How…

Wilt
- 41,477
- 12
- 152
- 203