• Tutorial: Displacements and Subdivision
    122 replies, posted
[b]Note: Subdivision by default can look really bad. [/b] However, there's some tricks to it. Were going to practice with a 256^3 cube, converted into a displacement and set to a power of 3: [img]http://i34.tinypic.com/118jgip.jpg[/img] Right now we could pull this around, make it bulgy, etc. But what if we wanted to round the corners? Well there's a tool called Subdivision. Go ahead and hit that. It probably just turned into this: [img]http://i36.tinypic.com/2h7nol0.jpg[/img] This is obviously NOT Ideal. (Unless you like giant random spheres? So to fix this, we add extra "edgeloops". ([highlight][url=http://www.facepunch.com/showpost.php?p=17543288&postcount=55]Click here for a better description of edgeloops.[/url][/highlight]) It's technically a modeling term but it's the same process. [img]http://i33.tinypic.com/n1cfhh.jpg[/img] As you can see i've merely selected the cube, gone in 32 units from edge, clipped it and done that for all the edge. Subdivided, it now looks like: [img]http://i38.tinypic.com/24fg3gm.jpg[/img] Suddenly, we have rounded corners that don't look horrible, and aren't a ball. If we wanted bigger curves, you could clip in more: 16 unit clips: [img]http://i37.tinypic.com/2u61pwi.jpg[/img] 64 unit clips: [img]http://i33.tinypic.com/az9dvn.jpg[/img] You get the idea. Some practical uses: [img]http://i34.tinypic.com/2mhhmko.jpg[/img] [img]http://i36.tinypic.com/34glg93.jpg[/img] [img]http://i37.tinypic.com/rsziuo.jpg[/img] [highlight][b]As you can see, it's not perfect. There's still gonna be texture streaching (That can be fixed with [url=http://developer.valvesoftware.com/wiki/$seamless_scale]$seamless_scale[/url]), and misplaced verts. This can be fixed by not having the edges aligned. It's something you'd have to play around with.[/b][/highlight] [b]What else can this do?[/b] With the right textures and enough time... [img]http://www.littlelostpoly.co.uk/devblog/wp-content/uploads/2009/09/seasky.jpg[/img] [highlight]Oh and one other displacement trick: While in Paint Geometry mode, instead of using left/right click to move, you can hold shift and left click which lets your mouse drag up/down determine the move distance.[/highlight] [b]In addition: Alt + left click (and drag) changes the radius size).[/b] Hope this helps someone. =) (Thanks to Robert Briscoe's blog post about it. I wouldn't have thought about the extra edgeloop)
Oh wow, I had no idea you could do that. Nice tut Ned
Cool tutorial, very useful.
How'd you get those waves on the water?
[QUOTE=Penguiin;17522778]Cool tutorial, very useful.[/QUOTE] very very awesome tut!! i'm looking for thiis
[QUOTE=ZestyLemons;17522786]How'd you get those waves on the water?[/QUOTE] I'm not Robert :p. Anyways; He used an animated material on a displacement that is curved to fit the water line. Ingenious idea really.
Also, be wary of using a lot of subdivisions/displacements because they add a lot to the final filesize of your map.
[QUOTE=ZestyLemons;17522786]How'd you get those waves on the water?[/QUOTE] A custom texture with an animation on top of the water? I guess it's the same metod that valve uses for their sewer in L4D, water, then the slime texture on top to make it act like water, and look like slime. Anyway, nice tut! Good for beginners, and more advanced users that haven't used subdivision on a regular basis. :smile:
[QUOTE=Penguiin;17522810]Also, be wary of using a lot of subdivisions/displacements because they add a lot to the final filesize of your map.[/QUOTE] You have to pay for quality somewhere.
[QUOTE=Penguiin;17522810]Also, be wary of using a lot of subdivisions/displacements because they add a lot to the final filesize of your map.[/QUOTE] Well, it's the same with lightmaps. I don't have a problem with the file being 60MB, as long as it's detailed and has quality.
[IMG]http://i293.photobucket.com/albums/mm48/Esrande/000wtf.jpg[/IMG] :gonk: Did i do something wrong?
Yes. I can't help without seeing the 2d screens.
I did what you said, all it was was a square block. [IMG]http://i293.photobucket.com/albums/mm48/Esrande/0dgfgdg.jpg[/IMG]
OH JESUS CHRIST WHAT IS THAT Delete it! Oh my god oh god oh god
Erm... I'd suggest trying it with a 256 block like I had. Also: When you clip it up into smaller chunks, you may need to remove a centerpiece.
hmm. can i do ur tut's way for this? [url]http://www.facepunch.com/showthread.php?t=820468[/url]
You can try. You'd be hard pressed to do that shape with a model even.
Never made the connection between displacement subdivisions and modeling subdivisions until today.
Lots of the pictures are missing for me...
that last pic made my draw drop through both floors of my house. and very nice tut :D
[QUOTE=TH3_L33T;17523985]Lots of the pictures are missing for me...[/QUOTE] Tinypic blocked for you? [img]http://i35.tinypic.com/2hrlkci.jpg[/img] Takes forever to get a cliff that can be sub-d'd without it spazzing vertexs out.
[QUOTE=Lord Ned;17524087]Tinypic blocked for you? [img]http://i35.tinypic.com/2hrlkci.jpg[/img] Takes forever to get a cliff that can be sub-d'd without it spazzing vertexs out.[/QUOTE] No, I don't know why but for some reason tinypic pictures don't show up for me.
[QUOTE=Lord Ned;17524087]Tinypic blocked for you? [img]http://i35.tinypic.com/2hrlkci.jpg[/img] Takes forever to get a cliff that can be sub-d'd without it spazzing vertexs out.[/QUOTE] can u show me the brush before u turn it on displacements? tnx
Can you spell words out? [img]http://i35.tinypic.com/2uzdru0.jpg[/img] [img]http://i38.tinypic.com/2s0n4w3.jpg[/img]
[QUOTE=Lord Ned;17522702] [highlight]Oh and one other displacement trick: While in Paint Geometry mode, instead of using left/right click to move, you can hold shift and left click which lets your mouse drag up/down determine the move distance.[/highlight] [b]In addition: Alt + left click (and drag) changes the radius size). [/QUOTE] I never knew that :saddowns:
Wow. So that's how they make the cliffs in TF2 easily?
[QUOTE=Fippe;17528760]Wow. So that's how they make the cliffs in TF2 easily?[/QUOTE] More or less. Great tut Ned. Was hoping for another video from you. But text + media is well done too.
[QUOTE=esrande;17523079][IMG]http://i293.photobucket.com/albums/mm48/Esrande/000wtf.jpg[/IMG] :gonk: Did i do something wrong?[/QUOTE] I thought real men carved, esrande.
[QUOTE=Lord Ned;17524331]Can you spell words out? [media]http://i35.tinypic.com/2uzdru0.jpg[/media] [media]http://i38.tinypic.com/2s0n4w3.jpg[/media][/QUOTE] Ned are you working with Dear Esther mod group? I'm kind out of my mind today, got sick and cold.
Whats a edgeloop?
Sorry, you need to Log In to post a reply to this thread.