Doom3world

The world is yours! Doom 3 - Quake 4 - ET:QW - Prey - Rage
It is currently Sun May 19, 2013 12:44 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Hide models behind walls?
PostPosted: Thu Nov 15, 2012 9:33 am 
Offline
has joined the game
User avatar

Joined: Fri Dec 02, 2011 11:20 am
Posts: 47
Location: California
Is there a way to program the game to hide a model if the player can't see it? Meaning, if any model is behind a wall then it won't be rendered?

I'm guessing this would need two things: A function that does a type of a trace from the player to every entity each frame, and some type of hide command that pulls the entity's model. I don't know if the second item is possible from editing just the game's code, is it?


Top
 Profile E-mail  
 
 Post subject: Re: Hide models behind walls?
PostPosted: Thu Nov 15, 2012 9:37 am 
Offline
Invisibility
User avatar

Joined: Fri Aug 13, 2004 4:39 pm
Posts: 3654
Location: Right there! Look!
The engine already does that for you, to an extent.
If the wall is visportaled, any entity will be hidden.

_________________
Check out GRIMM Quest for the Gatherer's Key!
Grimm's Youtube Channel

Follow Grimm Quest on Twitter!


Top
 Profile E-mail  
 
 Post subject: Re: Hide models behind walls?
PostPosted: Thu Nov 15, 2012 9:48 am 
Offline
has joined the game
User avatar

Joined: Fri Dec 02, 2011 11:20 am
Posts: 47
Location: California
I know. But I'm looking for a solution to "outdoor area" performance issues where visportals aren't possible.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group