Notices

Best way to use cylinders?  Thread Tools Reply
Old 12-21-2007, 05:09 PM   #1
Earl
L4: Senior Member
 
Earl's Avatar
 
Earl is offline
Posts: 284
Thanks: 20
Thanked: 37

Default Best way to use cylinders?


Hi, I am making a map that will have a bunch of large cylinders as main geometry (grain silos to be exact), and I was wondering if any of you had some insight as to the best way to construct them.

These are large cyliders (>400 units in diameter), with 32 faces and they will be placed in a semicircle with players able to move between the gaps. I know from this guide: http://www.student.ru.nl/rvanhoorn/o...er=func_detail that making them world brushes would bring vis to its knees, so I am thinking the best way to go is to make them func_detail. However--is it a good idea to make such large objects func_detail? Also, what is the difference between func_detail and func_brush?

Thanks!
 
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 12-21-2007, 05:40 PM   #2
Shmitz
Old Hat
 
Shmitz's Avatar
 
Shmitz is offline
Posts: 1,261
Thanks: 238
Thanked: 735

Default Best way to use cylinders?


Do these structures significantly block a player's view to another area of a map, such that the other area of the map may not get rendered?

If no, then make them all detail, regardless of how large they are.

If yes, then plug the round "hole" with the square peg. Make a square nodraw brush so that it's corners are touching the cylinders sides. Then chop your cylinder up so that you're left with four rounded slices, one for each face of your square. Only the inner nodraw square would be world geometry. The rounded portions would all be detail.


Also, the difference between func_detail and func_brush, aside from being able to manipulate the func_brush in more ways, is that a func_brush does not block light, while func_detail is treated by rad as if it were world geometry.
 
Reply With Quote
Old 12-21-2007, 10:43 PM   #3
jakeparlay
L2: Member
 
jakeparlay's Avatar
 
jakeparlay is offline
Posts: 72
Thanks: 1
Thanked: 2

Default Best way to use cylinders?


another option, if you don't want to clip/split the cylinders, you can always function detail them and then bury rectangular nodraw brushes inside them. this will allow you to block visibilty without murdering the silos into pieces. granted, theres a graceful way to slice em up (shmitz's way), but this third method (illustrated below) is effective and not as 'messy' as it first appears

purple are regular buildings, tan are the silos, and yellow is your nodraw work.

and shmitz, not to be a know it all, but func_brushes can easily block light... it all depends on if enable shadows is checked.
 
Last edited by jakeparlay; 12-21-2007 at 10:46 PM.
Reply With Quote
Old 12-22-2007, 02:39 AM   #4
Earl
L4: Senior Member
 
Earl's Avatar
 
Earl is offline
Posts: 284
Thanks: 20
Thanked: 37

Default Best way to use cylinders?


Ok, cool, my first impression was correct. I was going to do the square-peg-in-a-round-hole thing to block visibility.

func_detail still clips player movement, right?
Edit: Yes it does.


Thanks!
 
Last edited by Earl; 12-22-2007 at 03:42 AM.
Reply With Quote
Old 12-22-2007, 07:37 AM   #5
Shmitz
Old Hat
 
Shmitz's Avatar
 
Shmitz is offline
Posts: 1,261
Thanks: 238
Thanked: 735

Default Best way to use cylinders?


Quote:
Originally Posted by jakeparlay View Post
and shmitz, not to be a know it all, but func_brushes can easily block light... it all depends on if enable shadows is checked.
Well, I was looking at it more from detail brushes always block light. Which is why in Portal the windows on the observation rooms are func_brushes, as they're nodrawed on the back and would block the light from the room if they were detail.

Are shadows from func_brushes dynamic, or are they lightmapped? Either way it seems like they'd be more expensive.
 
Reply With Quote
Old 12-22-2007, 12:52 PM   #6
jakeparlay
L2: Member
 
jakeparlay's Avatar
 
jakeparlay is offline
Posts: 72
Thanks: 1
Thanked: 2

Default Best way to use cylinders?


func_brush shadows would be lightmapped iirc... brush entities like phys_boxes go dynamic. but you're right, more expensive than your average func_detail
 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply

Previous Thread Next Thread
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 04:57 PM.