Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Real time shadows ?

falcon12
Registered User
Quote
2017-07-03 21:42:54

Hi,

I would like to simulate sun's shadows. So I built a directionnal light moving around my scene pointing to the center of the scene (0,0,0).

https://drive.google.com/file/d/0B_VAg-pGiiF6YlR5WGZrUGVLeGc/view?usp=sharing

Shadow is visible at edition.
No shadows at execution.

Help

Falcon


niko
Moderator
Quote
2017-07-04 08:25:46

Hi,

that's really strange, there is definately something strange going on. Thanks for uploading this, I'll investigate.


niko
Moderator
Quote
2017-07-04 08:42:31

Update: ah, it is actually not a bug. You have a script in there changing the direction of the light. Without the script everything looks correct. So somehow, I guess the scrupt doesn't seem to put out the correct directions. If you change this, it should work.


falcon12
Registered User
Quote
2017-07-06 23:32:29

Without the script, so without changing the light direction you see a changing shadows around the building at execution ?

Not me, and it seems correct because direction light has a light direction that is not dependant of light source's position.

????


falcon12
Registered User
Quote
2017-07-10 11:33:50

Niko ?


niko
Moderator
Quote
2017-07-11 10:10:24

Yes, there are shadows for me. Do you see shadows in other apps? Just not in yours?


falcon12
Registered User
Quote
2017-07-11 18:27:20

I see shadows on example physic.ccb .


Other informations :

I see building's shadow at edition session.

compiling to .exe :

I see no building shadows (fix ou moving) using JS directionnal light orientation or not. I see changing building's illumination using JS script and not if I don't use it.

Compiling to webgl :

I see fix building shadow if I don't use JS script. I don't see fix shadows (and no moving shadons too) but I see building changing building's illumination.


falcon12
Registered User
Quote
2017-07-22 21:52:13

Help !


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

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