How to change brightness and volume of the virtual environment?

38 views
Skip to first unread message

rocking...@gmail.com

unread,
May 1, 2017, 3:08:06 PM5/1/17
to CoSpaces
Hello,

I'm building a virtual environment that simulates a theater stage (360 img). The camera is on the stage. Is there a way to make the environment darker? Also, can I change the volume of background sound? Thank you so much!

Rich

Benjamin Singh

unread,
May 2, 2017, 5:11:18 AM5/2/17
to CoSpaces
Hi Rich,

I think the easiest way to make the environment darker is use an environment which allows you to select a night scene.


You can change the volume of a sound via JavaScript.

First you need to load a sound clip which is described here: https://cospaces.io/api/#sceneloadsound

And then you can control the volume of a sound clip described here: https://cospaces.io/api/#soundsetvolume

You can copy the example code into your code editor. Just replace the id of the sound clip in the code.


Benjamin


Reply all
Reply to author
Forward
0 new messages