|
Re: (WIP) Better Shadowmapping
[Re: Slin]
#451049
04/27/15 18:48
04/27/15 18:48
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
sivan, I know that you used that old snippet, but it had some issues I fixed in this version. And I know that the stencil buffer approach sucks, but it has the advantage of just working good enough for most people here. Everything else needs too much of a custom rendering approach for most people to handle.
Ch40zzC0d3r, in vp_depth.fx and also in vp_pssm.fx at the top is an uncommented #define BONES, just make sure that define in set in both shaders and it should work fine with bone animations. The difference is that the DoBone will apply the bone transformations in the vertex shader to each vertex, to actually make the model animate. So without it, it will generate depthmaps and shadows as if the models would not be animated. Wow Im stupid to oversee it. Thanks alot Is there a faster way then passing NOWORLD flag to the splitviews to not render shadows of the world but shadows of other models ON the world? Removing those 2 lines has no effect:
while(!level_ent) wait(1);
level_ent->flags |= SHADOW;
Last edited by Ch40zzC0d3r; 04/27/15 20:44.
|
|
|
Re: (WIP) Better Shadowmapping
[Re: Slin]
#451120
04/28/15 19:14
04/28/15 19:14
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Well NOWORLD still lags hard on big maps even when there are no shadows at all. But when I look at the debug panels only shadows for my shadow entities are drawn.
level_ent->flags &= ~SHADOW;
Doesnt work too, the level is drawn with shadows and FPS is still decreasing Im out of ideas then, might have to disable it for big maps o:
Last edited by Ch40zzC0d3r; 04/28/15 19:17.
|
|
|
Re: (WIP) Better Shadowmapping
[Re: Slin]
#451191
04/29/15 20:48
04/29/15 20:48
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
So with NOWORLD it is slower than without!? Because that doesn't seem to make any sense, since NOWORLD is supposed suppress rendering of the world which should improve CPU und GPU performance... No, it doesnt change the speed at all (or only like 2 FPS) and is as slow as drawing shadows of the whole map, thats what Im talking about. On a heavy map I activated the splitviews and stuff but dont draw any shadows, but the FPS is still decreasing by like 30 frames until I turn off all the views, even if they dont render a single thing
Last edited by Ch40zzC0d3r; 04/29/15 21:14.
|
|
|
|