Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 843 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Clipping and shadows #431972
10/27/13 17:08
10/27/13 17:08
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I'm having some troubles with clipping and object shadows.. Here few screens:
Quote:
First:

Second:
I would like to know, how to handle this situation (it happens seldom), the same happens with dynamic lights (looks ugly as hell).

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Clipping and shadows [Re: 3run] #431979
10/27/13 18:10
10/27/13 18:10
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use the clipfactor entity attribute (increase it to 2-3 or an even bigger value).
Concerning dynamic lights I am sure that they get clipped correctly because I've made some tests about that a few years ago. However, it could be that more lights come into the view frustum (i.e. more than the shader supports) and thus the light priority changes and the scene looks different. Use the light count material to prove/ disprove that.


"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: Clipping and shadows [Re: Superku] #431980
10/27/13 18:16
10/27/13 18:16
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Thank you man, but this is the ugliest solution, isn't it? frown There is no other way to handle this?
Cause I'll need to apply that for each entity (maybe cycle trow all of them) get rid of this shadow crap.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Clipping and shadows [Re: 3run] #431981
10/27/13 18:18
10/27/13 18:18
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
No, I'm not aware of another solution right now. I don't think the clipfactor method is ugly (I was the guy who requested it back then for the very same reason). As you've already stated, just cycle through all entities after level load and increase the clipfactor variable if the entity has its SHADOW flag set.


"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: Clipping and shadows [Re: Superku] #431985
10/27/13 20:12
10/27/13 20:12
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Ok, thank you man (for requesting for it also) laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Clipping and shadows [Re: 3run] #432529
11/07/13 15:57
11/07/13 15:57
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
There is another solution that I use. Throw some dummy vertices into your model that extend the corners of your model much bigger than it really is. This way the engine thinks your model is always in view.


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Clipping and shadows [Re: yorisimo] #432535
11/07/13 17:22
11/07/13 17:22
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
And your hitbox will be fucked up and you have to scale it yourself ...

Re: Clipping and shadows [Re: Ch40zzC0d3r] #432537
11/07/13 18:23
11/07/13 18:23
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158
light_view=NULL;
will harm performance though


Moderated by  HeelX, Spirit 

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