≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Point light cast no shadow?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Ah, okay, now I have something. The direction property actually returning Vec3 with that in mind, this code sort of works: [code]var sun = ccbGetSceneNodeFromName("sun"); var direction = ccbGetSceneNodeProperty(sun, "Direction"); direction.x += 0.01; ccbSetSceneNodeProperty(sun, "Direction", direction.x, direction.y, direction.z);[/code] But once it get dark, it remain dark. So the light doesn't actually seem to rotate around on the X axis as I hoped... I'm trying to debug what is going on by displaying the value of direction.x but I cannot. I tried alert(), console.log() but it is not displaying. Anyone could tell me please how to display something in the CopperCube debug window? Thanks[/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