4
$\begingroup$

I'm not 100% sure if I'm using the right terminology since I'm fairly new to 3D model editing. Please try to go easy on me :)

I am currently writing a program in OpenGL. I'm using Blender to edit my models, and I'm exporting to OBJ (Wavefront) before loading them into my program. It turns out that all the vertex normals are the same as the face normals; that is, the vertex normals along two triangle edges might look something like in this image: (ignore the text; I'm borrowing these images from opengl-tutorial.org because they clearly illustrate my question)

spiky.png

I have some shapes that I would like to render smoothly (my shaders interpolate between normals, if that pertains to the question), so I would rather the normals look something like this: (where the arrow pointing up is actually two overlapping normals from the same vertex) badmooth.png

Probably the simplest way to get these "curve normals" would be to average the two normals for each face connected to a vertex. Does anyone know how to do this in Blender?

$\endgroup$
  • 1
    $\begingroup$ A branch of Blender which has custom normal editing has just been posted to GraphicAll.org a day or two ago. Maybe this will help with what you want to do. $\endgroup$ – MarcClintDion Aug 3 '14 at 1:21
1
$\begingroup$

The smooth button does it for you.
(Left side) Object Tools -> Smooth (under Shading),
Then when you go File -> Export -> Wavefront (.obj),
make sure you click on the Include Normals checkbox.

$\endgroup$
  • $\begingroup$ Wow, it really was that simple... thanks! $\endgroup$ – Mahkoe Aug 7 '14 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.