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 / 10127
10126  |  10128
Subject: 
Re: BFCFixer
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 4 Feb 2005 20:29:36 GMT
Viewed: 
2786 times
  
In lugnet.cad.dev, Ross Crawford wrote:
In lugnet.cad.dev, Chris Dee wrote:
In lugnet.cad.dev, Mark Tarrabain wrote:
Don Heyse wrote:
But wait, If you can make a program to fix winding on the fly then make
a tool for ldraw.org so it can be added to the part submission process.
Then we can run it on all the parts so nobody ever has to fix them on
the fly again.  That'll make *all* the renderers faster.

Well, I had some spare time today... so I wrote one.

I may be being dense here, but I dont understand how this can be done
programatically.

I think it can be done for simple objects, by choosing a random winding for 1
polygon, then processing all touching polygons so they're wound the same way
(when looking from the same side - out ot in). This would produce a result that
is entirely right, or entirely wrong (in which case it can be fixed by changing
the winding direction in the 0 BFC statement). It may even be possible to work
out which way is "out" on simple objects.

More complex objects may cause that algorithm to fail, as Mark alluded to, but I
think the main reason you wouldn't want renderers using such an algorithm is
speed - I think it would seriously slow down an already intensive process.

I would certainly be interested to see how this program handles some of the more
complex DATs out there.

ROSCO

Of course, it's that simple - thanks. Except some of the most basic LDraw parts
(regular bricks) fail this test because the studs are "stuck on" a complete
quad, rather than a surface peppered with stud-sized holes.

Chris



Message has 1 Reply:
  Re: BFCFixer
 
(...) Such components are handled correctly by BFCFixer as "detached" submodels, and are oriented consistently with the rest of the polygons in the file as long as each independant submodel is sufficiently enclosed that a correct winding can be (...) (20 years ago, 5-Feb-05, to lugnet.cad.dev)

Message is in Reply To:
  Re: BFCFixer
 
(...) I think it can be done for simple objects, by choosing a random winding for 1 polygon, then processing all touching polygons so they're wound the same way (when looking from the same side - out ot in). This would produce a result that is (...) (20 years ago, 3-Feb-05, to lugnet.cad.dev)

22 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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