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 / 9033
9032  |  9034
Subject: 
Re: Mirrored parts and studs
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 2 Jul 2003 19:14:19 GMT
Viewed: 
1864 times
  
In lugnet.cad.dev, Travis Cobbs wrote:
I don't actually do any transformations in LDView to get the logos
right.  I just detect the mirroring (by tracking negative
determinants and flipping the mirrored bit every time I see one) and
modify my texture coordinates to un-mirror (horizontally) if the
stud has been mirrored.  You can take a look at the genTextureCoords
method in TGLStudLogo.cpp if your interested, but I don't think it
will really help you.

Actually that does help a bit.  It looks like you aren't concerned
with whether the logo faces the same direction as on the actual part,
you're just ensuring that it's readable.  That makes me feel better
about my solution.

By the way, why do you bother to track all the mirroring steps?  Can't
you just look at the final matrix?

Don



Message has 1 Reply:
  Re: Mirrored parts and studs
 
(...) Correct. There's no way to know if they actually face the right direction, so I just figured that horizontal mirroring was more likely to be correct than vertical (although I could be wrong). (...) You can, but my code that decides which (...) (21 years ago, 2-Jul-03, to lugnet.cad.dev)

Message is in Reply To:
  Re: Mirrored parts and studs
 
(...) I don't actually do any transformations in LDView to get the logos right. I just detect the mirroring (by tracking negative determinants and flipping the mirrored bit every time I see one) and modify my texture coordinates to un-mirror (...) (21 years ago, 2-Jul-03, to lugnet.cad.dev)

25 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