Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 410 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 6 of 15 1 2 4 5 6 7 8 14 15
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 Offline
Serious User
Dark_samurai  Offline
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 Offline
Serious User
gri  Offline
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 Offline OP
Member
Chris3D  Offline 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:

Code:
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: Chris3D] #260006
04/08/09 14:24
04/08/09 14:24
Joined: May 2008
Posts: 150
Switzerland
Hitsch Offline
Member
Hitsch  Offline
Member

Joined: May 2008
Posts: 150
Switzerland
I noticed that the leaves are still well light even when the sun is directly behind them.
Is that intention to simulate transparency? It looks a little odd when everything else is dark on the backside but not the tree tops.

Is it also normal that the frame count goes way down when I go close to the window or the door when they have shadows on them?
I loose about have...

Apart from that, it's absolutely amazing! This takes the Gamestudio graphics to the next level.

I just tried a forest of 250 palm trees and the performance loss is really not that bad. I'm still at about 40 frames.

My system (notebook):
Intel Core 2 Duo T9400 2,53 Ghz
GeForce 9650M GT (1GB)
4 GB Ram
Windows Vista

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 Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
Hi Hitsch, yeah the palmleaves, I hate them... wink 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:
Code:
palmleaves.attachname="alpha_leaves";

in the shadowdemo.c file.
Or you gave all entity NO groundshading:

Code:
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.:
Code:
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 Offline
Serious User
Dark_samurai  Offline
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 smile


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 Offline OP
Member
Chris3D  Offline 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 Offline
Serious User
Rackscha  Offline
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: Rackscha] #263754
05/02/09 01:01
05/02/09 01:01
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
for me not work?
I have a mobile hd3470 with shader 4.0 support
and windows vista
appear the problem is ATI card

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 Offline
Serious User
Dark_samurai  Offline
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
Page 6 of 15 1 2 4 5 6 7 8 14 15

Moderated by  aztec, Blink, HeelX 

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