Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Spotlight has not dynamic shadow

Alireza
Guest
Quote
2019-05-29 16:35:39

In cc spot lights has not any shadow. Really why? Some times we need it. Can we add this features to sopt light? How?
I guess we need programming to this goal.:(( is it true ?


j9907
Registered User
Quote
2019-05-29 16:54:54

Even with programming via JavaScript this probably can't be done. A change like that would require the editor's source code, which isn't available to the general public (don't confuse the editor's source code with the "client" source code available in the Studio edition)


Alireza
Guest
Quote
2019-05-29 20:27:38

wrote:
Even with programming via JavaScript this probably can't be done. A change like that would require the editor's source code, which isn't available to the general public (don't confuse the editor's source code with the "client" source code available in the Studio edition)

Thanks for your guide.
And is'nt there any way to have 2 or more directional lights in one scene?


j9907
Registered User
Quote
2019-05-29 23:09:15

Multiple directional lights? hmm. No. By default the editor won't let you add more than one directional light per scene (it's a limitation). If you create a new CCB document and delete all scene nodes (default cube, skybox) and add a directional light and save that as a prefab, then you can add multiple directional lights. It didn't work for me all that well, sadly, but @srfstudio, a fellow user, said it worked for him so your mileage may vary...

Just curious: What are you using directional lights for? Realtime shadows? Depending on your level's design, you might be better off with using the built-in lightmapper which the editor has. It's capable of some very pretty results if you work at it! If you're extremely patient, use the "Global illumination" option. Beware though: it takes a very long time to calculate compared to the "Shadows" mode!


Alireza
Guest
Quote
2019-05-30 17:16:20

wrote:
Multiple directional lights? hmm. No. By default the editor won't let you add more than one directional light per scene (it's a limitation). If you create a new CCB document and delete all scene nodes (default cube, skybox) and add a directional light and save that as a prefab, then you can add multiple directional lights. It didn't work for me all that well, sadly, but @srfstudio, a fellow user, said it worked for him so your mileage may vary...

Just curious: What are you using directional lights for? Realtime shadows? Depending on your level's design, you might be better off with using the built-in lightmapper which the editor has. It's capable of some very pretty results if you work at it! If you're extremely patient, use the "Global illumination" option. Beware though: it takes a very long time to calculate compared to the "Shadows" mode!

I need multiple directional lights for my game. For some scenes. For example: I have a scene at night mode. And have a character with torch in hand.
So I need a directional light for background light( like moon) and one other as torch.
If use spot light has not realtime shadow, so if use it , my scene seems very factitious not realistic.
I try with way that you suggested ( put dir light and remove skybox and default box and save as prefab....)but It does not work and coppercube forced closed :(((


just_in_case
Moderator
Quote
2021-09-19 12:16:14

Ahh I know this is an old post, but while searching something on the forums I encountered this and Let me tell you, you can have multiple directional lights in your scene very easily without having to save it as prefab. Yeah you guys are right coppercube by default doesn't allow you to have more than one directional light but you can add as many directional lights as you want.

the easiest way is to use irredit/irrlicht tool. just attach a point light in your scene and go to irredit/irrlicht and change the light type to directional light from point light and you will have directional light in your scene.
you can add as many point lights in your scene as you wanted and convert them.

but they might not work as expected but it will be good to have them toggle on and off(visible /invisble) to make them work.


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