Using displacement surfaces as room curves

Using displacement surfaces as room curves

Re: Using displacement surfaces as room curves Posted by Imbrifer on Tue Jul 26th 2005 at 2:11am
Imbrifer
32 posts
Posted 2005-07-26 2:11am
Imbrifer
member
32 posts 363 snarkmarks Registered: Dec 11th 2004
I am getting into using displacment surfaces for indoor
architecture. I am replacing curves in corners of rooms with
displacement surfaces (1 displacement surface instead of 8 brushes that
form a concave curve). From what I've read, using one
displacement surface is much easier on the fps than making those 8
brushes into one func_detail.

Question 1: Is it easier on the fps to do 2 displacement surfaces each with a power of 2 instead of one with a power of 3?

Question 2: For convex curves, is it better to have a single
detail brush with 10 sides (8 for a curve, 2 to give it a backing) or
to make one displacment surface with a power of 3, or two displacement
surfaces with a power of 2?

Just trying to figure out how much better for fps speeds displacments are relative to func_details...
Re: Using displacement surfaces as room curves Posted by French Toast on Tue Jul 26th 2005 at 3:00am
French Toast
3043 posts
Posted 2005-07-26 3:00am
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Hey Imbrifer, are you the same Imbrifer from FF?
Re: Using displacement surfaces as room curves Posted by DrGlass on Tue Jul 26th 2005 at 8:28am
DrGlass
1825 posts
Posted 2005-07-26 8:28am
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
Displacmets will help with FPS, but I doubt you'll notice unless there are lots of curves in a small area.

2.) first of all, you dont need the two extra brushes to back the
curved wall, but if you do want to use that method (I assume so you can
make the curve a detail brush) you can use two world brushes with the
nodraw texture on them.

and

2 displacements to the power of 2 would be 2<sup>2</sup> = 4 and one displacement
to the 3rd power would be 1<sup>3</sup> = 3, if that is how they work, then the 1
to the power of 3 is best.
Re: Using displacement surfaces as room curves Posted by Leperous on Tue Jul 26th 2005 at 8:04pm
Leperous
3382 posts
Posted 2005-07-26 8:04pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
<DIV class=quote>
<DIV class=quotetitle>? quoting DrGlass</DIV>
<DIV class=quotetext>one displacement to the 3rd power would be 1<SUP>3</SUP> = 3</DIV></DIV>

Er, what?! 1<SUP>anything</SUP> = 1 (well, anything greater than 1).

I don't know how displacements are meant to (if they do) "save on FPS", but logic dictates that a 3rd power surface has the same number of triangles as 2 2nd power surfaces (2 x 2<SUP>2</SUP> = 2<SUP>3</SUP> = 8). To be honest, with such a low power being used you shouldn't get any noticeable improvement in performance over using a func_detail/brush, unless there are hundreds of these things in the same room. As ever, the best way is to try it and see :razz:
Re: Using displacement surfaces as room curves Posted by DrGlass on Tue Jul 26th 2005 at 8:27pm
DrGlass
1825 posts
Posted 2005-07-26 8:27pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
DrGlass said:
one displacement to the 3rd power would be 1<sup>3</sup> = 3
Er, what?! 1<sup>anything</sup> = 1 (well, anything greater than 1).
ouch, no wonder I'm an artist.
Re: Using displacement surfaces as room curves Posted by SaintGreg on Wed Jul 27th 2005 at 4:18am
SaintGreg
212 posts
Posted 2005-07-27 4:18am
212 posts 51 snarkmarks Registered: Dec 3rd 2004
Lep, you forget that it is 2<sup>power</sup> in both x and y directions. So
2 2<sup>2</sup> disps = 2*(2<sup>2</sup>)*(2<sup>2</sup>)*2 = 64 tris, and 1 2<sup>3</sup> disp =
1*(2<sup>3</sup>)*(2<sup>3</sup>)*2 = 128 tris. Naturally it would be easier to
create the 2 power-2 disp since there are less nodes to deal with in
manipulation. But I doubt it would improve fps by much if any
considering that even 64 tris is four times what you would have used
just doing simple func_detail's. Plus doing the func_detail is
1,000,000 times easier.
To get something to work, sometimes you just have to beat your head against the wall longer; the skin grows back, but the brick doesn't.

Source hates soup!
Re: Using displacement surfaces as room curves Posted by Leperous on Wed Jul 27th 2005 at 9:09am
Leperous
3382 posts
Posted 2005-07-27 9:09am
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Whoops, good point :redface: The difference will be in the width then, but again there's not that much in it (unless you've got loads of these around), so it's down to what's easiest. In fact, having all these displacement surfaces mean there are more 'actual' surfaces in your map, and if you use a special texture on them (e.g. with bump mapping or reflections) that could possibly kill FPS (swap buffers?); I'd just stick with many-sided cylinders and the like personally :smile:
Re: Using displacement surfaces as room curves Posted by Agent Smith on Wed Jul 27th 2005 at 9:29am
Agent Smith
803 posts
Posted 2005-07-27 9:29am
803 posts 449 snarkmarks Registered: Aug 30th 2003 Occupation: Uni Student Location: NSW, Australia
Also I believe displacements don't VIS block, so you'd probably get fps
drops in those area's because you can see into other area's of the map.

Take Lep's advice, stick with the solid brushes.
Ham and Jam Contributor
http://www.hamandjam.org

'Get your stinking paws off me, you damned dirty ape!'
Re: Using displacement surfaces as room curves Posted by Andrei on Wed Jul 27th 2005 at 10:19am
Andrei
2455 posts
Posted 2005-07-27 10:19am
Andrei
member
2455 posts 1248 snarkmarks Registered: Sep 15th 2003 Location: Bucharest, Romania
Also I believe displacements don't VIS block
No, no they don't. I know a fool who made a cave out of displacements
thinking they could block VIS and then had to cover the whole thing with a
box which took ages and killed the fps. Guess who the fool was?

me :sad:
Re: Using displacement surfaces as room curves Posted by French Toast on Wed Jul 27th 2005 at 2:41pm
French Toast
3043 posts
Posted 2005-07-27 2:41pm
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Yeah I kinda called that one from the start Andrei :smile:
Re: Using displacement surfaces as room curves Posted by Dark_Kilauea on Wed Jul 27th 2005 at 8:42pm
Dark_Kilauea
629 posts
Posted 2005-07-27 8:42pm
629 posts 123 snarkmarks Registered: Apr 15th 2005 Occupation: Fast Food Location: USA
I think just go with displacement, sence they are better optimised in Hl2 than world brushes.

Until Later...
Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/
Re: Using displacement surfaces as room curves Posted by Agent Smith on Thu Jul 28th 2005 at 2:15am
Agent Smith
803 posts
Posted 2005-07-28 2:15am
803 posts 449 snarkmarks Registered: Aug 30th 2003 Occupation: Uni Student Location: NSW, Australia
I think just go with displacement, sence they are better optimised in Hl2 than world brushes.
You obviously don't read the other posts before posting. You are incorrect.
Ham and Jam Contributor
http://www.hamandjam.org

'Get your stinking paws off me, you damned dirty ape!'
Re: Using displacement surfaces as room curves Posted by Dark_Kilauea on Thu Jul 28th 2005 at 2:39am
Dark_Kilauea
629 posts
Posted 2005-07-28 2:39am
629 posts 123 snarkmarks Registered: Apr 15th 2005 Occupation: Fast Food Location: USA
of course I read, I also read somewhere that valve did a lot of
optimization of displacements... I dunno, could be worng.

Until Later...
Dark_Kilauea
DVS Administration
http://www.dvstudio-production.com/
Re: Using displacement surfaces as room curves Posted by Agent Smith on Thu Jul 28th 2005 at 2:53am
Agent Smith
803 posts
Posted 2005-07-28 2:53am
803 posts 449 snarkmarks Registered: Aug 30th 2003 Occupation: Uni Student Location: NSW, Australia
They are optimized, which is what makes them great for outdoor area's
since they are easy to compile because they aren't compiled like
brushes during VIS. However their drawback is that they do not block
VIS, hence the need for blockers behind the displacement surfaces. If
your just making a corridor with a curved edge use brushes, the engine
is so frickin powerful I doubt they are going to make that much of an
impact on the fps.
Ham and Jam Contributor
http://www.hamandjam.org

'Get your stinking paws off me, you damned dirty ape!'
Re: Using displacement surfaces as room curves Posted by zombie_computer on Thu Jul 28th 2005 at 8:37am
zombie_computer
28 posts
Posted 2005-07-28 8:37am
28 posts 3 snarkmarks Registered: Feb 15th 2005 Location: Netherlands
its true displacements render faster than world-brushes, but that is compared to their equivalent shapes.

say you have a displacement made out of 24 triangles, then that will
render faster than 24 world-brush-triangles. but it wont render faster
than 3 world-brushes. (more or less than 3)

you should just stick to detail brushes, they not only render faster
(as long as you keep their number down as i already explained above),
but you also can get the benefits of smoothing groups (allowing for a
nicer rounder look)
Re: Using displacement surfaces as room curves Posted by Imbrifer on Sun Aug 7th 2005 at 12:20am
Imbrifer
32 posts
Posted 2005-08-07 12:20am
Imbrifer
member
32 posts 363 snarkmarks Registered: Dec 11th 2004
Hmm, I think I understand. So if I have a power-of-3 displacment
(112 triangles) and one func_detail which is 8 five-sided brushes (40
triangles), it would be better to go with the func_detail?

Careful mapping can avoid the 'seeing-into-other-areas' problem.
The last map I made I didn't know displacements don't block VIS - so
the bastard took 12h+ to compile with sloppy VIS work - I'm working on
my optimizing skills and I'll go back to it next week or so.

I have a map with a whole bunch of displacements (it's a remake of
2morfort1_1) and I have just a bit of detail left and the damn thing
compiles in under 5 minutes with a batch file - no joke

And yes, I am the Imbrifer on the FF forums. There is only one Imbrifer. :smile:
Re: Using displacement surfaces as room curves Posted by SaintGreg on Sun Aug 7th 2005 at 6:33am
SaintGreg
212 posts
Posted 2005-08-07 6:33am
212 posts 51 snarkmarks Registered: Dec 3rd 2004
Why you would have a situation where you are replacing displacements
with 5 sided brushes is beyond me, and its 128 not 112, but yes the
func_detail will most likely render faster. But since they will
probably both take very little time, the displacement may have other
benefits like ease of editing.
To get something to work, sometimes you just have to beat your head against the wall longer; the skin grows back, but the brick doesn't.

Source hates soup!
Re: Using displacement surfaces as room curves Posted by Imbrifer on Sun Aug 7th 2005 at 7:29am
Imbrifer
32 posts
Posted 2005-08-07 7:29am
Imbrifer
member
32 posts 363 snarkmarks Registered: Dec 11th 2004
What I'm doing with displacements is making the 'inside' of
arches. The five sided brushes are eight wedges which all meet in
a corner, while the displacement is a surface molded to be the arch
which the wedges create (think 1/4 of the outside of a cylinder).

So the way I see it, the benefits of detail brushes are ease of
editing, and faster rendering. The benefits of using a
displacement surface are... well.. the lighting looks better, but you
can always use smoothing groups on the detail brushes...