Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Check if an Entity has been culled #353521
01/10/11 22:58
01/10/11 22:58
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline OP
User
BoH_Havoc  Offline OP
User

Joined: Jun 2004
Posts: 655
to your left
Hi,
I was wondering if there is a faster way than ent_pvs to determine if an entity has been culled or not.
I created a spotlight shader/script with dynamic shadows for shade-c which uses obb-obb and cone-sphere intersection tests to determine if the spotlight is inside the view frustum. It's all nice and shiny, but i'm still struggeling with the case of a spotlight beeing behind a wall and not visible to the camera.

I think using ent_pvs and going through a loop with all visible entities each frame just to get 1 out of X entities is a rather slow approach (?).
And if i remember correctly i already played around with entity visibility in the past and there was another way to do it, but i can't exactly remember. Maybe it was another engine or i dreamed it ... but i'm quite certain it was A7 laugh

Would be really nice if you could give me a hint here to speed up my spotlights even more laugh




Shade-C EVO Lite-C Shader Framework
Re: Check if an Entity has been culled [Re: BoH_Havoc] #353522
01/10/11 23:05
01/10/11 23:05
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
ENTITY objects get the CLIPPED flag assigned when they get culled.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Check if an Entity has been culled [Re: WretchedSid] #353523
01/10/11 23:13
01/10/11 23:13
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline OP
User
BoH_Havoc  Offline OP
User

Joined: Jun 2004
Posts: 655
to your left
Now why the hell didn't i find this in the manual or somewhere else in the forum.

I'm really getting old....

Thanks JustSid! laugh


Shade-C EVO Lite-C Shader Framework
Re: Check if an Entity has been culled [Re: BoH_Havoc] #353529
01/11/11 00:05
01/11/11 00:05
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Sorry for offtopic, but I cannot believe I've missed ent_pvs since v7.08. frown I've always looked for this feature.


"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

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