Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TedMar, AndrewAMD), 1,344 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shadow Stencils that don't kill my framerate? #302235
12/17/09 19:51
12/17/09 19:51
Joined: Dec 2009
Posts: 217
Italy
PietroNifosi Offline OP
Member
PietroNifosi  Offline OP
Member

Joined: Dec 2009
Posts: 217
Italy
Hey folks, ok basically I got a level full polygons (mdl files), works fine with shade-c
The framerate is brilliant.
As soon as I add shadow stencils..


shadow_stencil = 3; // "3" is accelerated z-pass stencil shadows
shadow_threshold = 50; // only cast shadows in rooms lit by static lights
shadow_range = 10; // speed up rendering by displaying shadows only in a short radius
shadow_lod = 3; // lowest lod (if it exist)
stencil_blur(1); // activate blurred shadows <-- LITE-C only!


..everything dies.

I've tried shadow_stencil 1 to 4 nothing changes.

is there a smarter way out of this? like backing shadows before the game actually starts?

If yes, Can you post some links or code please?

Thank you laugh

PS = Mainly I'm looking for a shadow that is casted by an mdl upon itself and other mdls.

Last edited by PietroNifosi; 12/17/09 19:57.

Dear Fans, to celebrate our 500.000 downloads,
Evhacon 2 is now FREE TO PLAY on Amazon Underground!
HD Version: https://www.amazon.com/gp/product/B071FKSVG2
LD Version (Optimized for lower devices): https://www.amazon.com/gp/product/B0719TXFJN
Re: Shadow Stencils that don't kill my framerate? [Re: PietroNifosi] #302427
12/19/09 13:15
12/19/09 13:15
Joined: Dec 2009
Posts: 217
Italy
PietroNifosi Offline OP
Member
PietroNifosi  Offline OP
Member

Joined: Dec 2009
Posts: 217
Italy
I've found out that it's Shade-c that affecting the shadow stencils kills my framerate completely.
Probably the depth of field tries to blur the shadow stencils too and those calculations being done realtime are the reason for my fps being killed.
Is there a way out of this? Can I set shade-c not to interfere with shadow stencils? or even better can i set shadow stencils to be rendered once for static objects like a wall. while they continue to being rendered realtime for my player?

Last edited by PietroNifosi; 12/19/09 13:21.

Dear Fans, to celebrate our 500.000 downloads,
Evhacon 2 is now FREE TO PLAY on Amazon Underground!
HD Version: https://www.amazon.com/gp/product/B071FKSVG2
LD Version (Optimized for lower devices): https://www.amazon.com/gp/product/B0719TXFJN
Re: Shadow Stencils that don't kill my framerate? [Re: PietroNifosi] #302484
12/19/09 20:43
12/19/09 20:43
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline
Senior Member
MPQ  Offline
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
shadwo stencil is a realtime shadow that is updated for every entity while playing the game. So it is only useful for moving entities.

For static models use invisible blocks or a shader (wiki)


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: Shadow Stencils that don't kill my framerate? [Re: MPQ] #302498
12/19/09 22:42
12/19/09 22:42
Joined: Dec 2009
Posts: 217
Italy
PietroNifosi Offline OP
Member
PietroNifosi  Offline OP
Member

Joined: Dec 2009
Posts: 217
Italy
Nevermind, sorted. Thanks for the tip

Last edited by PietroNifosi; 12/20/09 00:32.

Dear Fans, to celebrate our 500.000 downloads,
Evhacon 2 is now FREE TO PLAY on Amazon Underground!
HD Version: https://www.amazon.com/gp/product/B071FKSVG2
LD Version (Optimized for lower devices): https://www.amazon.com/gp/product/B0719TXFJN

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1