To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9578
    surface normals and vertex normals for OpenGL —Brian Durney
   Hello, I have some LDraw animation projects in mind and am starting by making a simple viewer using OpenGL. I have a program that will read a file and display it, but I run into problems with the shading because it only does flat shading. I think I (...) (21 years ago, 7-Mar-04, to lugnet.cad.dev)  
   
        Re: surface normals and vertex normals for OpenGL —Travis Cobbs
   (...) I suspect this has been talked about in this group before, but probably not all in one thread. I'll try to summarize the things to look out for. First of all, you are correct in that any files that aren't BFC-certified have polygons with (...) (21 years ago, 7-Mar-04, to lugnet.cad.dev)
   
        Re: surface normals and vertex normals for OpenGL —Brian Durney
     (...) <SNIP> (...) That does help a lot. Thanks much. Brian Durney (21 years ago, 9-Mar-04, to lugnet.cad.dev)
   
        Re: surface normals and vertex normals for OpenGL —Wayne Gramlich
   (...) [snip] (...) [snip] (...) It is neither impossible nor particularly hard. I will snip the rest of the post here and explain. There is an interesting property of closed surfaces that can allow you to determine the normals for all polygons (or (...) (21 years ago, 11-Mar-04, to lugnet.cad.dev)
   
        Re: surface normals and vertex normals for OpenGL —Don Heyse
     (...) I don't know about that goal. I think it's better to make it easy to assemble the various primitives into parts. That way we get more people volunteering to make the parts. I don't think the primitives *can* be closed. I also think it's much (...) (21 years ago, 11-Mar-04, to lugnet.cad.dev)
    
         Re: surface normals and vertex normals for OpenGL —Wayne Gramlich
     (...) All: It is dangerous to write technical arguments at 1:30 in the morning, and I made some serious mistakes in my post above. 1) You are correct that most LDRAW parts are not closed and probably never will be. Optimizing for ease of part (...) (21 years ago, 11-Mar-04, to lugnet.cad.dev)
    
         Re: surface normals and vertex normals for OpenGL —Travis Cobbs
     I won't argue with your clarification, but I will point out that it would be more difficult for a renderer to perform this feat, particularly one that is designed as a real-time renderer, and therefore presumably has rather serious limitations on (...) (21 years ago, 12-Mar-04, to lugnet.cad.dev)
    
         Re: surface normals and vertex normals for OpenGL —Wayne Gramlich
     (...) With the use of a point hash table, it should be possible to do all of the analysis in linear time proprotional to the number of points in the object. So, I guess I disagree with you. Not that it particularly matters, until somebody actually (...) (21 years ago, 13-Mar-04, to lugnet.cad.dev)
   
        Re: surface normals and vertex normals for OpenGL —Jason S. Mantor
   I'm working on just such a utility right now. I hope to have some beta code in a few days : ) (...) (21 years ago, 11-Mar-04, to lugnet.cad.dev)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR