Re: [PyOpenGL-Users] Polygon Normal Smoothing?
Brought to you by:
mcfletch
From: Gary H. <gh...@is...> - 2008-01-16 01:20:53
|
Patrick Van Pelt wrote: > Hello! New user here, with a hopefully simple question. > > I'm currently writing an object/animation loader with PyOpenGL, using mostly what is presented in the python-adjusted Nehe tutorials (with some hackery to display calllists like a flipbook). I'm happy to say that it is all working great so far, however I just started to include some of the lighting code and its giving me some nasty polygon edges. Basically, it looks like the normals aren't smoothing across the surface of the object. See picture here: > > http://img212.imageshack.us/img212/5102/facetedgd8.jpg > > It was at this point that I realized the tutorials all use cubes, which of course have a sharp edge. Can anyone point me in a direction to get the surface to look like it is a nice smooth surface? Thanks for any and all help! > glShadeModel(GL_SMOOTH) will work if you model is defined correctly (i.e., shared vertices share normals). Gary Herron > PS: The model was a free one off of Turbosquid that I slapped some quick animation onto. > > _____________________________________________________________________ > The information contained in this message and its attachments is > confidential and proprietary to LAIKA, Inc. By opening this email > or any of its attachments, you agree to keep all such information > confidential and not to use, distribute, disclose or copy any part > of such information without the prior written consent of LAIKA, > Inc. If you are not the intended recipient of this message, any use, > distribution, disclosure or copying of such information is prohibited. > If received in error, please contact the sender. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |