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 / 8070
8069  |  8071
Subject: 
Re: True Type fonts and LDraw files
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 3 Dec 2002 12:28:35 GMT
Viewed: 
579 times
  
Thanks Jeroen,

  I guess there are multiple issues here.  My original thoughts were
primarily restricted to my LPub centric perspective, where we create step by
step building instructions with a fixed view angle, and use rotation steps
to virtually change the view angle.  The result is a list of POV-Ray
rendered images that are static in nature (you cannot change the view angle
of the already generated POV images.)

  Other less narrow minded people are looking across the LEGO CAD community.

  I originally saw two issues:
    1.  How can we express some text in the LDraw file format without having
        to add each letter as a part, and messing with placement and such.
        It would be nice to be able to place a memo box in the LDraw file,
        and not have to place each letter.
    2.  How do we control placement and orientation of said memo box.  I
        assumed maybe we could treat the memo box like any other part giving
        a color, a location and orientation matrix.

  In my narrow minded view, LPub assumes one fixed point of view, and
expects the writer to use rotation steps to turn the model. Given this, the
writer knows how to place and orient the memo box so that they get what they
want, so it seemed like what I really needed was just a memo box mechanism
that you could treat like any other part.

  In the bigger picture I can see that we'd like dynamic
placement/orientation of the memo box with respect to the view.  This makes
me think of the WRITE meta-command.  For the dynamic situation, can we
assume that "memo-box" capable programs treat the memo-box seperate from the
rest of the model, and display it next to the model in a different part of
the GUI? (in a panel adjacent to the model image window?)  This would solve
issues of placement and orientation. I suppose this breaks down if you have
more than one memo box per step.

  In the static image case LPub could honor placement and orientation of
memo boxes, by treating it like other parts.

Kevin



In lugnet.cad.dev, Jeroen de Haan writes:
Hmm, you could use the IFPOV and ENDPOV statements:

0 IFPOV
0 text { ttf "arial.ttf" // check your fonts directory for the proper names
0 "place your text here" // well, place your text there
0 1, // thickness of text (text will be 3D, dunno what happens if you choose 0
0 0 // spacing of characters
0 scale <24,24,1> // scale text to 1 brick high (approx)
0 rotate <0,0,0> // change <x,y,z> so your text will be readable
0 translate <0,0,0> // move it to a proper place
0 pigment { color rgb <0,0,0> } // choose your favorite color
0 } // end of text
0 ENDPOV

Maybe you should change one of the scale values to a negative number because
of the difference in x-y-z axes in LDraw and POV-Ray.
I haven't tested this, so if you end up with a formatted harddisk, don't
blame me ;-)
Oh, and let me know if it works!

Jeroen



Message is in Reply To:
  Re: True Type fonts and LDraw files
 
Hmm, you could use the IFPOV and ENDPOV statements: 0 IFPOV 0 text { ttf "arial.ttf" // check your fonts directory for the proper names 0 "place your text here" // well, place your text there 0 1, // thickness of text (text will be 3D, dunno what (...) (22 years ago, 3-Dec-02, to lugnet.cad.dev)

11 Messages in This Thread:



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

Custom Search

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