- Home /
Cube object, slightly rounded edges? - shader?
Imagine a cube-rectangular object, say a brick-shape, made of plastic.
So, it's 20 cm long, say. You want each edge/corner to be slightly rounded (radius say 1/2 cm on that scale).
The only way I know to do this, is by making a mesh model like that with slightly rounded edges (you'd be talking a good 200-300 tris, I think).
You're going to be seeing the object from all sides. (Imagine the brick lying on the floor; occasionally it will rotate, flip, etc, so you can see other sides of it.)
Is there a better technology for this?
To repeat, perhaps using a shader, or ??
As Robert suggests, ingenious use of a bumpmap may be the answer -- anyone have any experience in this?
Cheers!
Your estimate of 200 - 300 tris appears to be right on. I pulled up a cube with rounded corners I had laying around and it was 184 verts and 292 tris. This is not an area that typically have to deal with, but normal maps come to $$anonymous$$d:
http://docs.unity3d.com/$$anonymous$$anual/HOWTO-bumpmap.html
robert dude - of course it's 200-300 tris - it's me dude :) you know unfortunately normal maps are one thing i've really never used much, annoyingly enough. i've got a feeling you're spot on and that's probably the awesome answer. the thing is, I'm looking for someone to give me the total solution on a platter you know :) seriously you know how the pipeline is, you just need someone who has that wrapped up, "yeah you do it exactly like this." otherwise there's 15 different things to extensively try :/
BTW for some reason I didn't get the emails saying you blokes had relplied, sorry for the delay
Answer by Scribe · Jul 26, 2014 at 11:52 AM
this may be of interest, though I'm not sure how efficient it would be implemented at runtime.
scribe - good one thanks, that's a lead on "shader that will bend the edges!" if only we could get more leads like this! where are the shader experts when you need them
Your answer
![](https://koobas.hobune.stream/wayback/20220613155023im_/https://answers.unity.com/themes/thub/images/avi.jpg)