≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Dynamic lighting for sky boxes
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: [quote][b][/b] wrote: Do not understand! Can I now dynamically change or the type of lighting? what to say during the game? is the amb variable defined as? before checking if it's bigger than 50?[/quote] Yes, if you make a skybox with dynamic lighting (or select 'lighting' in irrLict properties) you can dynamically adjust its lighting using the code above. You could also use it for just changing the color only and use the default root scene node "AmbientLight" setting instead to do the lighting . I have this code "var color = (hex+hex+hex);" which makes the lighting change intensity only as all 3 RGB numbers are the same. To get the color you want instead then add another 2 lines I think (havent tested yet) to run the function and get each hex output to then input into the Emissive/Ambient section as the new hex color.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact