Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, EternallyCurious, howardR, 1 invisible), 623 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 231 of 554 1 2 229 230 231 232 233 553 554
Re: What are you working on? [Re: Kartoffel] #412001
11/21/12 21:31
11/21/12 21:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
@Kartoffel: Very nice and useful, though Hummel already did this some years (?) ago with his bacterium.
I've had a look at the source and it's pretty simple and fast but could even be a little faster:

float zProj = pow(abs(dot(input.Normal, float3(0.f, 1.f, 0.f))), ProjectionPower);
is obviously the same as
float zProj = pow(abs(input.Normal.y), ProjectionPower);
which can be shortened to
float zProj = input.Normal.y*input.Normal.y;
as ProjectionPower = 2 apparently gives the best results (the same goes for zProjx/y, of course).

EDIT: Thanks for sharing!

Last edited by Superku; 11/21/12 21:31.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: What are you working on? [Re: Superku] #412003
11/21/12 21:34
11/21/12 21:34
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Quote:
I've had a look at the source and it's pretty simple and fast but could even be a little faster:

float zProj = pow(abs(dot(input.Normal, float3(0.f, 1.f, 0.f))), ProjectionPower);
is obviously the same as
float zProj = pow(abs(input.Normal.y), ProjectionPower);
which can be shortened to
float zProj = input.Normal.y*input.Normal.y;
as ProjectionPower = 2 apparently gives the best results (the same goes for zProjx/y, of course).

oh, of course... didn't see this crazy
Thx for pointing this out laugh

EDIT: about Hummel's 'Ehec' shader: I saw his shader but I didn't knew he was using the same technique smirk

Last edited by Kartoffel; 11/21/12 21:45.

POTATO-MAN saves the day! - Random
Re: What are you working on? [Re: Kartoffel] #412005
11/21/12 21:40
11/21/12 21:40
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Very cool and very useful. Thanks a lot!!! I'll guess I'll turn that into a terrain shader.

Re: What are you working on? [Re: HeelX] #412020
11/21/12 23:26
11/21/12 23:26
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Originally Posted By: HeelX
Very cool and very useful. Thanks a lot!!! I'll guess I'll turn that into a terrain shader.

looking forward to see the result laugh


POTATO-MAN saves the day! - Random
Re: What are you working on? [Re: Kartoffel] #412081
11/22/12 14:30
11/22/12 14:30
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
trying to get more FPS by using a lightmap for static objects and pssm for units only (it can never be perfect I know):


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: What are you working on? [Re: sivan] #412111
11/22/12 19:33
11/22/12 19:33
Joined: Apr 2008
Posts: 2,488
ratchet Offline OP
Expert
ratchet  Offline OP
Expert

Joined: Apr 2008
Posts: 2,488
for far awaya soldier you could use some simple Blob projection shadow, you'll gain lot of FPS.
Shadows are what east lot of power in 3D ! Some games you put them off/on and you can gain/loose half FPS sometimes.

Re: What are you working on? [Re: Kartoffel] #412121
11/22/12 22:37
11/22/12 22:37
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
@Kartoffel
Sounds cool. I have no clue of making shaders, iam happy i can use them grin

Hope ull find some time to work on that project.

edit:
@sivan
How much FPS do u have right now ?

Last edited by rayp; 11/22/12 22:39.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: What are you working on? [Re: ratchet] #412127
11/23/12 08:01
11/23/12 08:01
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
yes, with decal shadows it is much faster, but combining pssm with decal shadows is possible only by ent_decal that requires a short c_trace for each unit in every frame, which becomes also expensive as unit count increases. I want to use c_trace for units only when they are walking not on terrain, I mean normally they are using stored surface data. but maybe there is an optimal combination I have not tested yet. maybe pssm shadows should be somehow clipped over a certain distance, but until now I could not modify the pssm shader successfully, maybe I need a more simple shadowmapping system.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: What are you working on? [Re: sivan] #412144
11/23/12 12:59
11/23/12 12:59
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: What are you working on? [Re: sivan] #412145
11/23/12 13:06
11/23/12 13:06
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
sivan@ what is wrong with the tree shadows? no alpha support yet?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 231 of 554 1 2 229 230 231 232 233 553 554

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