Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Question about lighting

anonymous
Guest
Quote
2021-08-14 17:36:02

Is it possible to blend realtime shadows with lightmaps like Unity's shadowmask?


anonymous
Guest
Quote
2021-08-16 14:08:31

???


jabyfish
Registered User
Quote
2021-08-17 18:57:50

I don't think so. The only way to get Realtime shadows in Coppercube is with a directional light. And you can only have one per scene.


Newbee
Guest
Quote
2021-08-18 14:12:32

Yes you can...
🔎︎


but imo...that will be nice to have a new realtime shadows (soft shadows)...


anonymous
Guest
Quote
2021-08-18 17:26:21

@Newbee i wasn't talking about having both dynamic lighting and static lighting on the same scene, i'm talking about using lightmaps for environments and projecting realtime shadows on these static environments, But thanks for the feedback


.
Guest
Quote
2021-08-31 23:53:03

.


just_in_case
Moderator
Quote
2021-09-01 05:42:16

There is a way to have both static lighting on objects and real-time shadows, but it will eat up more resources and the trick is very simple.

Light map your objects and then use dynamic plane mesh or dual model with transparent texture. So that your scene will still be lightmapped and the transparent model textures will receive shadows them.

Hope that helps! But its not the recommended way.



anonymous
Guest
Quote
2021-09-01 15:58:28

@just_in_case I've already tried that trick before, but it just doesn't work properly, a transparent (alpha channel) texture only receives shadows on non-trasparent areas of the texture, and i've tried adding a transparent (add) texture above the floor, but it makes the floor look brighter and you have to set shadow opacity to higher levels to make the shadows more visible on the plane, but looks ugly on other dynamic objects because the shadows are darker, which kinda ruins the lighting. The only way i can think of mixing realtime and baked shadows is by externally baking the lightmaps onto textures and then using dynamic lighting on the lightmapped model, but it's just not very optimal on the performance.


jabyfish
Registered User
Quote
2021-09-04 03:47:51

Like I said, it is probably not possible


Girik1234
Guest
Quote
2021-09-08 10:27:44

Thats not possible, atleast right now. But I hope they will add feature that in later versions.


easara
Registered User
Quote
2021-10-03 12:22:08

When I create a terrein or other any thing it doesn't make shadows 😢


just_in_case
Moderator
Quote
2021-10-03 14:46:25

@Anonymous yeah, you are right transparent add will make the texture goes brighter and hence the shadows will appear differently, and it's a tedious job to edit the texture for this task by making the texture darker manually in an image editor. so yeah we can say that we can't do it right now in CC.

@easara you need to make sure that the real-time shadows option is turned on, in the attributes of the root scenenode, and your model, that will receive the shadows has dynamic lighting turned on, and there is a directional light in the scene.


Robo
Guest
Quote
2021-10-06 00:13:04

Might help, might not - but I decided not to use any shadows in my game as causes a considerable hit on performance.

Also I use outdoor directional lighting and indoor dynamic lighting (with normal maps) at the same time to have the effect to brighten the outside of the vehicle but darken the interior (directional light have no effect on normal mapped textures) which works well and if I need some light in there from a window then add a point light to do that instead.
Limitation to this method is that can only use max 4 point lights with normal mapped textures....


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (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