Soft Edge Hard Edge

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Soft Edge Hard Edge

Post by iamcreasy »

Can blender make an edge soft or hard?

I know I can mark sharp edge and then use edge split modifier, but I was looking for something that's more suited towards game model design. Another solution I found is to make a face smooth, but that makes all of it's edges soft.

But I was looking for a way to smooth an edge even if it's shared between faces. Is it possible?

Thanks in advance.
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

Check out Mont's project:

http://mont29.wordpress.com/
I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:Check out Mont's project:

http://mont29.wordpress.com/
Thanks! Can't wait to get it on the next binary update.
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

I built mont's branch on windows and it's pretty cool, although available for VBO on only. Waiting for normal edit tools now :)
I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:I built mont's branch on windows and it's pretty cool, although available for VBO on only. Waiting for normal edit tools now :)
Awesome!

Can you upload the binary so I can make a short video to post at blendeartist? :)
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

i hesistate to update my build, as it got several modifications applied, and some add features which don't fully work or even crash blender instantly. Need to check if i can strip off the unrelated stuff (something like git's stash for svn).

Would 64bit ms vc build be ok?
I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:i hesistate to update my build, as it got several modifications applied, and some add features which don't fully work or even crash blender instantly. Need to check if i can strip off the unrelated stuff (something like git's stash for svn).

Would 64bit ms vc build be ok?
Well, I am on Windows 8 64bit. Sooo... :/
Aspiring Indie Game Developer

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

iamcreasy wrote:
CoDEmanX wrote:i hesistate to update my build, as it got several modifications applied, and some add features which don't fully work or even crash blender instantly. Need to check if i can strip off the unrelated stuff (something like git's stash for svn).

Would 64bit ms vc build be ok?
Well, I am on Windows 8 64bit. Sooo... :/
doh! I miss read you last post. Yes, 64bit ms vc build if just fine. :)
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:Ok, i fixed my Select Pattern 2-Step and here's the entire build:

Blender 2.69 VGroup Modifier branch + Vertex Paint VertMask + Select Pattern 2-Step + Hide object origins
Ok, now I am questioning the obvious. How do I smooth an edge? :)
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

you smooth faces (shade smooth), and make hard edges by marking them as "sharp". Note that you need VBO on to see mont's hard/soft edges stuff.
I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:you smooth faces (shade smooth), and make hard edges by marking them as "sharp". Note that you need VBO on to see mont's hard/soft edges stuff.
It's not working. I took four face and smoothed them. Then I selected their shared edge and mark them sharp. But, those edge are still soft. (I have VBO switched on)

I am attaching a picture of it,
Image
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

I forgot to say: you need to enable loop-normals in Properties sidebar (N), Item panel. Default value is fine. If you want hard edges for angles lower than 180° automatically, even if edges aren't marked sharp, decrease the value.

In editmode, N-panel > Mesh Display has an option to show loop normals (requires loop normals in Item panel to be enabled).
I'm sitting, waiting, wishing, building Blender in superstition...

iamcreasy
Posts: 0
Joined: Sat Nov 29, 2008 9:40 pm
Location: Dhaka, Bangladesh

Post by iamcreasy »

CoDEmanX wrote:I forgot to say: you need to enable loop-normals in Properties sidebar (N), Item panel. Default value is fine. If you want hard edges for angles lower than 180° automatically, even if edges aren't marked sharp, decrease the value.

In editmode, N-panel > Mesh Display has an option to show loop normals (requires loop normals in Item panel to be enabled).
Made it! :D

Image


One thing I don't understand is, what's an edge angle? How do you calculate it?
Aspiring Indie Game Developer

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX »

Tooltip says about the split_angle property:
Angle between faces' normals above which an edge is considered as sharp when computing loop normals
So it's not an edge angle, but angle between two faces. Two adjacent flat quads would enclose an angle of 180° i guess. If two faces form a peak, it's less (pretty steep e.g. 20°) - using the minimum angle (thus, max. angle between faces is 180°).
I'm sitting, waiting, wishing, building Blender in superstition...

Post Reply