ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator Superior shadows
person icon
guest_Robbo
Guest
Quote
2026-09-12 05:22:39

Took around 2-3 days but I have improved the default CC shadows a lot, I would say about 3-4 times better.

They look much more realistic , less hard edges, smoother and much less jitter or shimmering as plants and trees move.

I would say they look quite good but you check it out and let me know what you think.

They also run much faster now. Before was around 40-45% drop in max framerate which is quite heavy. Now its around 10% so about 4 times faster.

There is also a timer adjustment for performance if you dont have many trees or plants around can adjust it to run every X ms - by default its running every 30ms but every 60ms still looks quite ok.

you can adjust it with this:
ccbSetSceneNodeProperty(RootNode,"ShadowMapSpeed", 50);

See itchio:
https://robo25.itch.io/coppercube-apis-version-2

person icon
gazzauk
Registered User
Quote
2026-09-12 05:53:36

I've tested your latest API update with the suggested improved shadows
but I have lots of shadow flickering some with lines through the shadows.
I don't know what coppercube shadow settings you have used but shadows
are not working for me with your latest API update.

My coppercube shadow settings that give the best shadow quality without your API updates are as follows:

Shadow Opacity 0.4
Shadow DetailFactor 0.2
Shadow Bias1 0.0002
Shadow Bias2 0.05
Shadow BackfaceBias 0.6

I found the above settings provide much better shadows over the default coppercube
shadows for terrain scenes.

Also, I cannot use your latest API updates now as there is no way to disable your shadow mapping implementation.

person icon
gazzauk
Registered User
Quote
2026-09-12 05:55:42

I have had huge improvements with studiowired's shadow mapping API posted here:
https://www.ambiera.com/forum.ph...

person icon
guest_Robbo
Guest
Quote
2026-09-12 09:03:17

You dont need to change the default settings as they have been tested fine using these defaults and run very well so you should revert back to what they were:

Shadow DetailFactor - 0.2
Shadow Bias1 - 0.001
Shadow Bias2 - no longer used

this runs very well on my pc. check by resetting to the defaults and try again and let me know.

person icon
guest_Robbo
Guest
Quote
2026-09-12 09:22:18

Also, its not an API update, its the default CC shadows improved. Its not a post processing shader running.

https://postimg.cc/mt6b8z3K

person icon
guest_Robbo
Guest
Quote
2026-09-12 09:33:46

if your still having issues send me the ccb file you use for testing and can have a look...

person icon
guest_Robbo
Guest
Quote
2026-09-12 16:12:58

I had actually forgotten about studiorewired version of shadows but in any case the source is not available to get the best of both worlds together.

It turns out my version and studiorewired version have a lot in common, I have some features his doesnt and he has some features I dont. I went for a 4k texture size - up from 2k but dumped the 2 pass approach as was the most performance intensive thing. I could get what I wanted with just a single pass instead. I merge the current shadow buffer into the previous shadow buffer to remove movement jitter and it helps quite a lot. Also added PCF filtering as thats how they all do it.

Im not trying to be competetive here just sharing what I found between both approaches:

studiorewired version:
- the self shadowing system is good.
- the terrain and trees are shadowed much better
- still has shadow jitter and small plants shadows not always accurate and lower resolution.
- very long compile time, maybe could be pre-compiled and run from that instead.

my version:
- no self shadowing
- a lot less shadow jitter
- smoother with more detail
- much faster to compile and probably more performant also - unable to confirm but based on compile time I would expect it would be.

person icon
gazzauk
Registered User
Quote
2026-09-12 16:36:29

guest_Robbo wrote:
You dont need to change the default settings as they have been tested fine using these defaults and run very well so you should revert back to what they were:

Shadow DetailFactor - 0.2
Shadow Bias1 - 0.001
Shadow Bias2 - no longer used

this runs very well on my pc. check by resetting to the defaults and try again and let me know.


I revert back to the default shadow settings thatyou suggested and show some improvement but there is still flicker and moireing within the shadows.

Also your shadowing is part of the custom binary API so I can't use the default stock coppercube shadows with your custom binary.

I don't wish to debate on which shadow mapping API is better but studiowired's shadows are at the moment working ok for me and out perform the default coppercube shadows.

If I could use the best of both API's that would be nice but as you suggested there is no source code sharing at the moment which is strange as we and others have full access to the source code.

person icon
guest_Sam
Guest
Quote
2026-09-12 23:29:03

They do look better here, I didnt see any flickering. CC's light culling was a little more noticeable with it on but not that much different as if they were affected by light slightly more.

there was performance improvement I tried it on a intel, and my scene was getting 33, and went to 45. thats with AA on.

1650 mobile was 103 and went to 156

looks like about a 33% performance increase here.

Sam

person icon
guest_Robbo
Guest
Quote
2026-09-13 02:41:41

Thanks for the comment Sam. yes, I had no issues or flicker on my version, so think he must be doing something wrong - most likely one of the default settings is not actually default.

if you change the update speed to every 60ms it actually looks better apart from some jumping frames so would only do that if you didn't need super smooth results and wanted max performance.

The critical value in mine is "Shadow DetailFactor" - leave it at 0.2 as directly affects the resolution as well as the shadow coverage. Making it smaller gives very high quality shadows but low coverage which can be seen coming in/out which doesn't look good at lower values.

person icon
guest_Alireza
Guest
Quote
2026-09-13 03:21:23

Dear Robo, do you have a video demonstrating it?
By the way, I’d like to purchase your extensions, but I’m not sure how to use them.
Are they compatible with the official version of CopperCube, or do you have a custom version of the engine where your code runs?

person icon
gazzauk
Registered User
Quote
2026-09-13 04:04:57

Changing the default coppercube shadow settings does not affect studiowired's shadow mapping tecqnique.

I wonder why Robo's shadow mapping requires very specific shadow settings ??

Has it been tested with fog enabled and disabled ??

How do particles affect the shadow mapping ??

person icon
guest_Robbo
Guest
Quote
2026-09-13 12:20:34

my version of shadows is optimized for performance while still looking better - I mentioned previously its too demanding by default, so its very lean now so has less adjustments.

I notice some issues with fog , will take a look and get that fixed in next update.

person icon
gazzauk
Registered User
Quote
2026-09-13 23:32:41

guest_Robbo wrote:
my version of shadows is optimized for performance while still looking better - I mentioned previously its too demanding by default, so its very lean now so has less adjustments.

I notice some issues with fog , will take a look and get that fixed in next update.


Yeah, I think the shadow settings are a game of potluck IMO. I put in random numbers until they look good and don't drop the frame rate.

person icon
gazzauk
Registered User
Quote
2026-09-13 23:39:49

guest_Alireza wrote:
Dear Robo, do you have a video demonstrating it?
By the way, I’d like to purchase your extensions, but I’m not sure how to use them.
Are they compatible with the official version of CopperCube, or do you have a custom version of the engine where your code runs?


They should work with both free and pro versions. You need to rename your ccb file to app.ccb and place it into Robo's API folder. Then run the Launcher.exe instead of the app.exe depending on your version. If you have the pro version then the process is much simpler by setting the custom binary to LauncherPro.exe from within the settings page.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |