To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 17127
    LDForge - dev. plans and call for help —Santeri Piippo
   Hi folks, over the latter half of the year 2009 I've been planning and experimenting on the thought of a good CAD program for part authors. Now I'm unveiling my thoughts to the public, but this is not an announcement. It's too early for such. (...) (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
   
        Re: LDForge - dev. plans and call for help —Michael Heidemann
     (...) SNIP (...) -SNIP- At present I can not see the reason to sort polygons if you only want to display them. cu mikeheide (...) (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
    
         Re: LDForge - dev. plans and call for help —Santeri Piippo
     (...) The polygons have to be painted on the screen in the correct order in order to have the part displayed correctly. It's not handled automatically. So I need an algorithm to sort the polygons.. and my current one doesn't work right. -Santeri (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
   
        Re: LDForge - dev. plans and call for help —Travis Cobbs
     (...) The only polygons that LDView sorts are transparent ones. Everything else is handled by the OpenGL depth buffer (glEnable(GL_DEPTH_TEST), followed by glDepthFunc(GL_LEQUAL)). Transparent polygons need to be sorted before being drawn, and (...) (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
    
         Re: LDForge - dev. plans and call for help —Don Heyse
      (...) If you prefer not to sort at all you can use glEnable(GL_POLYGON_STIPPLE) for transparent polygons. It doesn't look nearly as good, but it's really easy to code. Have fun, Don (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
     
          Re: LDForge - dev. plans and call for help —Roland Melkert
      (...) If you want a visual example on stipple, look at my LD4DStudio, it uses it for transparent stuff. In combination with depth buffer you don't need to sort anything just push the triangles and/or quad cords using glDrawElements and optionally (...) (14 years ago, 1-Apr-10, to lugnet.cad, lugnet.cad.dev, FTX)
    
         Re: LDForge - dev. plans and call for help —Timothy Gould
      --snip-- (...) Out of interest which centroid do you use? I would have thought that the bounding box center was better than the centre of all corner points (since these cluster around areas of high detail) but you've presumably tried different (...) (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
     
          Re: LDForge - dev. plans and call for help —Travis Cobbs
      (...) For transparency, LDView sorts triangles, and only triangles, not parts. So the centroid of each triangle is (p1 + p2 + p3) * (1/3). All transparent geometry in the whole model goes into one big list of triangles. While I'm at it, I calculate (...) (14 years ago, 31-Mar-10, to lugnet.cad.dev, FTX)
    
         Re: LDForge - dev. plans and call for help —Santeri Piippo
     (...) I see.. but problem is that if I use glEnable(GL_DEPTH_TEST) then my polygons won't render at all. Tutorials related to OpenGL explicitly told not to use GL_DEPTH_TEST because of this.. how did you avoid it? (14 years ago, 31-Mar-10, to lugnet.cad, FTX)
    
         Re: LDForge - dev. plans and call for help —Travis Cobbs
     (...) In order for GL_DEPTH_TEST to work, you have to clear the depth buffer at the same time you clear the rest of the screen: glClearDepth(1.0); glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GLCOLORBUFFERBIT GLDEPTHBUFFERBIT); (Note: the (...) (14 years ago, 31-Mar-10, to lugnet.cad.dev, FTX)
    
         Re: LDForge - dev. plans —Santeri Piippo
     (...) Ah, thank you Travis! I got depth buffering working now. :) No more problems with polygon sorting.. -Santeri (14 years ago, 1-Apr-10, to lugnet.cad.dev, FTX)
   
        Re: LDForge - dev. plans and call for help —Philippe Hurbain
   (...) Perfectly OK! now I wonder what could be a correct user interface for that... Philo (14 years ago, 1-Apr-10, to lugnet.cad)
 

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