Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 972 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 8 of 15 1 2 6 7 8 9 10 14 15
Re: ShadeCEVO simple grass (OVERLAY) ? [Re: Reconnoiter] #461095
07/25/16 12:11
07/25/16 12:11
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I guess it's the shadow projected by the sun. Try setting a different sun angle


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: ShadeCEVO simple grass (OVERLAY) ? [Re: alibaba] #461096
07/25/16 13:45
07/25/16 13:45
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Originally Posted By: alibaba
I guess it's the shadow projected by the sun. Try setting a different sun angle
, yes its the shadow, but its kind of flickers when I change the sun angle instead of changing smooth. Kind of like an shadow artifact, e.g. like the left side of this pic but not as extreme and only for the roofs:


Could be I am to much looking at details though.

Last edited by Reconnoiter; 07/25/16 13:47.
Re: ShadeCEVO simple grass (OVERLAY) ? [Re: Reconnoiter] #461102
07/25/16 17:44
07/25/16 17:44

M
Malice
Unregistered
Malice
Unregistered
M



Blindly assuming ->> I'd wonder what pssm base the shadec-evo is using? I remember Slin haves posted a better and fix Pssm and it fixed flickers and issues with the older method... Might be worth comparing them or if Slin has time to reply to a PM he might know right off if we should be trying at change the shadow pssm set to his 'Improved version' Also Sivan did a lot of work with the Shadec package in the past, It might be worth a PM question to him.

Of course I hate to ask out to both as they are surely busy with things none 3dgs these days. But a short and quick PM just for clarity and then we can try and figure out the fixes ourselves. (Guess I don't want to bug anyone and surely not ask them to come and rework or reexamine the shader package.)

Re: ShadeCEVO simple grass (OVERLAY) ? [Re: ] #461124
07/26/16 11:06
07/26/16 11:06
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
I think I might have been to much looking at details. I will wait a bit till have a full scene to test it with.
The examples of shade-c have very good shadows so its probably something wrong on my part.
If it will become more noticeable, I will try to ask Sivan if he had any problems.

Quote:
I remember Slin haves posted a better and fix Pssm
, I tried that one, but the shade-c one seems to be better overal, but again maybe I did something wrong with the init settings etc.

Last edited by Reconnoiter; 07/26/16 11:07.
Re: ShadeCEVO simple grass (OVERLAY) ? [Re: Reconnoiter] #461133
07/26/16 15:09
07/26/16 15:09
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Anyone tried to create a tree with transparent leaves in shade-c? Suprisingly, the shadow for the leaves are good but either the whole tree including the leaves is transparent or everything is solid (/not transparent). (ps: I am using an alpha layer (haven't tried alpha channel yet), and deferred pipeline is set off cause I also use particles)

Re: ShadeCEVO simple grass (OVERLAY) ? [Re: Reconnoiter] #461134
07/26/16 15:14
07/26/16 15:14

M
Malice
Unregistered
Malice
Unregistered
M



check this value for your shadow problems
sc_screen_default.settings.lights.sunPssmSplitWeight = 0.7; //

and these will be the core one to play with
sc_screen_default.settings.lights.sunShadowResolution = 512; //reduce shadow resolution as we are manually setting the shadow range to 5000 and can therefor get away with a small shadowmap
sc_screen_default.settings.lights.sunPssmSplitWeight = 0.7; //high res near splits, low res far splits
sc_screen_default.settings.lights.sunShadowRange = 5000; //manually set the shadow range...we don't need realtime shadows in the far distant! If set to 0 (default) shadow range will be set to camera.clip_far
sc_screen_default.settings.lights.sunShadowBias = 0.001; //set the shadow bias

Re: ShadeCEVO simple grass (OVERLAY) ? [Re: ] #461135
07/26/16 15:19
07/26/16 15:19

M
Malice
Unregistered
Malice
Unregistered
M



Possible factors for clipping and control what is rendered by change a flag..

this
if(my.SC_SKILL != NULL) //entity has SC_SKILL
{
SC_OBJECT* ObjData = (SC_OBJECT*)(my.SC_SKILL);

if(ObjData.depth == -1) return(1); //clip from gBuffer
if(ObjData.pass != SC_PASS_GBUFFER) return(1); //only render entities which have the SC_PASS_GBUFFER flag set

But I'll have to read into more and test it all.

Re: ShadeCEVO simple grass (OVERLAY) ? [Re: ] #461136
07/26/16 15:20
07/26/16 15:20

M
Malice
Unregistered
Malice
Unregistered
M



Default if csc_skills not set

else //entity has no SC_SKILL
{
if(pEffect != NULL)
{
pEffect->SetFloat("clipFar", screen.views.main.clip_far);
//pEffect->SetFloat("alphaClip", 1-(my.alpha/100));
pEffect->SetFloat("materialID", 0);
pEffect->SetVector("vecEmissive_SHADEC", sc_vec4Null);
pEffect->SetVector("vecColor_SHADEC", sc_vec4Null);
}
return(0);
}
}

Re: ShadeCEVO simple grass (OVERLAY) ? [Re: ] #461139
07/26/16 16:20
07/26/16 16:20

M
Malice
Unregistered
Malice
Unregistered
M



Quote:
Anyone tried to create a tree with transparent leaves in shade-c? Suprisingly, the shadow for the leaves are good but either the whole tree including the leaves is transparent or everything is solid (/not transparent). (ps: I am using an alpha layer (haven't tried alpha channel yet), and deferred pipeline is set off cause I also use particles)
So as to not reinvent the wheel here, why not use 2 models tree and leaves and to materials then?

EDIT ->> the meat is in default.c shade-c version
Code:
#ifdef ALPHA
			#ifdef TRANSPARENT
				
				SKIN_ALPHA *= tex2D(stipplingMaskSampler, projCoord*vecViewPort.xy*0.5).g * fAlpha;
				#ifdef TRANSPARENTALPHACLIP
					clip(SKIN_ALPHA - fAlpha);
				#else
					clip(SKIN_ALPHA - ALPHACLIP);
				#endif
			#else
				#ifdef CUSTOM_PS_ALPHA
					clip(Custom_PS_Alpha(In, SKIN_ALPHA));
				#else
					clip(SKIN_ALPHA-(1-fAlpha));
				#endif
			#endif
		#endif



Would seem to point to the alpha map being used. I'd think no need for a TRANSLUCENT flag if being used.

Last edited by Malice; 07/26/16 16:44.
Re: ShadeCEVO simple grass (OVERLAY) ? [Re: ] #461158
07/27/16 13:16
07/27/16 13:16
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Ok I think got the transparency working but now shadows on the object act all weird, any solution to this? (ps ignore the ugly unwrapping of the tree skin grin ):


So far this what I did:
- create an alpha channel for the skin (note this is not the same as an alpha layer)
- add these lines to the shader .fx file you are using:
#define ALPHA //entity has alphamap?
#define TRANSPARENT //entity alpha should be interpreted as transparent/translucent?

Quote:
So as to not reinvent the wheel here, why not use 2 models tree and leaves and to materials then?
, yes this could be a possible alternative. The transparent leaves maybe can't give shadows, so the tree would have to have some dummy leaves for shadows or a alpha layer / png skin for shadows. Maybe I just create real 3d leaves for the model.

Last edited by Reconnoiter; 07/27/16 13:22.
Page 8 of 15 1 2 6 7 8 9 10 14 15

Moderated by  Blink, Hummel, Superku 

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