|
Re: Shadows Plugin Beta Version and more...
[Re: Quad]
#259959
04/08/09 11:32
04/08/09 11:32
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
I'm still having a blue screen...
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Dark_samurai]
#259975
04/08/09 12:23
04/08/09 12:23
|
Joined: Dec 2003
Posts: 1,225 germany
gri
Serious User
|
Serious User
Joined: Dec 2003
Posts: 1,225
germany
|
hi,
1600 * 1200 in Fullscreen = 59 FPS with my Laptop.
what if an entity moves at runtime under the palmtree ? Does it get'in "shadowed" too or have I to check the groundtexture ? ,gri
"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: gri]
#259985
04/08/09 13:13
04/08/09 13:13
|
Joined: Sep 2003
Posts: 271 Germany
Chris3D
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 271
Germany
|
@ dark samurai: did you update to the latest directX version? you should also update your gpu driver. Do you have the latest a7 version? can you give me more details about your system, maybe we can fix the problem. @ gri, at the moment you can only cast shaodws of objects that have no animation, I want to implement this too! In the beta: if you activate the Render_navi() function and use the translation tool you can update the matrix of an object. But I will include a function, that can update the matrix of a single entity or all entities (for the shadows). Particles are not supported yet, but it is possible, I will try that soon. DOF and other stuff: you don't need to include the Render_navi() function ! you can also scroll down(in the shadowdemo.c file) and edit this function: function set_shadow_options()
{
var options[20];
//Main Setting:
options[0]=0; //Render Method: 0 = Multi, 1 = DX-level
options[1]=1024; //Texture Size (256-4096)
options[2]=3; //Splits (1-9)
options[3]=1; //Scene Focus
options[4]=0; //Visible Test: 0=High, 1=Low, 2=OFF
//Sun Setting:
options[5]=3; //Filter Types: 3="irregular PCSS";2="PCSS(Blurring)";1="5x5 EdgeBlur";0="simple PCF";
options[6]=2.0; //Smoothing
options[7]=0.03; //Blurring
options[8]=0; //Projection: 0="Orthographic";1="Perspective";
options[9]=0.001; //ShadowBias * 0.1
options[10]=0.75; //SplitsWeight
//Depth Setting:
options[11]=0; //Active
options[12]=0; //ShowDepth
options[13]=50; //Range
options[14]=40; //Focus
options[15]=0.02; //Soft * 0.1
SetShadowOptions(options);
}
my next plan is a lod system, this should as well give performance.
Last edited by Chris3D; 04/08/09 13:24.
website coming soon!
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Hitsch]
#260034
04/08/09 16:28
04/08/09 16:28
|
Joined: Sep 2003
Posts: 271 Germany
Chris3D
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 271
Germany
|
Hi Hitsch, yeah the palmleaves, I hate them... I still have a problem with alpha textures. When I gave them a groundshading they almost get black, because they are single sided. Therefore, I disabled the groundshading of the entity. you can change that when you delete this: palmleaves.attachname="alpha_leaves";
in the shadowdemo.c file. Or you gave all entity NO groundshading:
ENTITY * any_ent = ent_next(NULL);
while(any_ent){
any_ent.attachname="any_name_doesnt_matter";
any_ent = ent_next(any_ent);
}
But than you should write your own groundshading in the effect file of your entity or you get ugly artefacts(try to hide them with the shadbias value). You could use this function in your shaders e.g.:
float3 GroundShading(float3 vNormal)
{
return fAmbient * saturate(dot(-vecSunDir, normalize(mul(vNormal, (float3x3)matWorld))));
}
^^output this as a COLOR of your vertex shader and use it in the pixelshader. about the framecount: yes that is normal, i think that has something to do with the textures...well I will check this out, thanks for the hint. I will improve the alpha stuff as well ...the next beta is in process...
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Chris3D]
#260168
04/09/09 08:58
04/09/09 08:58
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ok the driver update did it! Man I love it! It's really fast and looks good especially when using the 5x5 Edge Blur. I hope that you can finish this soon. Great work
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Dark_samurai]
#263095
04/27/09 21:00
04/27/09 21:00
|
Joined: Sep 2003
Posts: 271 Germany
Chris3D
OP
Member
|
OP
Member
Joined: Sep 2003
Posts: 271
Germany
|
Hi, I will hopefully finish it in the middle of may!
website coming soon!
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Chris3D]
#263670
05/01/09 10:36
05/01/09 10:36
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
Oh year, Your Pictures Are looking very nice, At the moment i am updating my drivers, because i cant see shadows(on xp and vista). I have the Ati HD 4870
I'lll tell you later if it works in my system
Rackscha
Last edited by Rackscha; 05/02/09 09:47.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Shadows Plugin Beta Version and more...
[Re: Felixsg]
#263774
05/02/09 09:59
05/02/09 09:59
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
+ Update DX + Update your GFX driver
What doesn't work? Do you get a bluescreen, or are the shadows not displayed?
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|