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 / 4392
4391  |  4393
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: Some Words To BFC
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 7 Apr 2000 14:47:17 GMT
Viewed: 
2556 times
  
Steve Bliss wrote:

As someone pointed out once, it's not a big deal to get all windings the
same before passing the data to OpenGL.  Just swap the order of the
points.  For quads, switch points 2 and 4.  For triangles, switch points
2 and 3. This could/should be done while parsing the input files.  For
LeoCAD, I guess that would be when you convert them to your binary
format.

  I don't mind that because I preprocess the files anyway and anyone who
wants to get a good speed increase should do the same. But it's not a
good idea to turn on/off BFC several times and in some cases, it's nicer
to have the faces reversed. Imagine a file like this:

4 16 1 1 1 1 1 1 1
0 INVERSE
4 16 1 1 1 1 1 1 1
4 16 1 1 1 1 1 1 1
4 16 1 1 1 1 1 1 1
0 INVERSE
4 16 1 1 1 1 1 1 1

  It would be nicer to have the quads reversed, this could be done by a
program if a person finds it easier to add 0 INVERSE statements.

Leonardo



Message has 1 Reply:
  Re: Some Words To BFC
 
On Fri, 7 Apr 2000, Leonardo Zide wrote: [...SNIP...] (...) Actually I think you missunderstood something (or maybe I did), but the 0 INVERSE meta command is to be used ONLY with file references, that is: 0 INVERSE 1 16 x y z a b c d e f g h i (...) (25 years ago, 7-Apr-00, to lugnet.cad.dev)

Message is in Reply To:
  Re: Some Words To BFC
 
(...) As someone pointed out once, it's not a big deal to get all windings the same before passing the data to OpenGL. Just swap the order of the points. For quads, switch points 2 and 4. For triangles, switch points 2 and 3. This could/should be (...) (25 years ago, 6-Apr-00, to lugnet.cad.dev)

61 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