To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 2036
2035  |  2037
Subject: 
Re: Virtual locomotive MOC
Newsgroups: 
lugnet.cad.ray
Date: 
Mon, 1 Dec 2003 22:55:15 GMT
Viewed: 
2282 times
  
In lugnet.cad.ray Chuck Kabesh wrote...
When I run POVRay on the L3P AddOn file I get two errors when I use LGEO pats:

#declare _6081_dot_dat_clear = #if (QUAL = 0) box { <-40,0,-30>, <40,32,10> }
#else object {
// Brick  2 x  4 x  1 & 1/3 with Curved Top
lg_6081_clear
matrix <0,0,-20/LG_BRICK_WIDTH, -20/LG_BRICK_WIDTH,0,0,
0,-24/LG_BRICK_HEIGHT,0, 0,0,0>
}
#end
This errors our with 'undeclared identifier lg_6081_clear. I can only resolve it
by deleting the declaration.

This is a known error in the LGEO part.
Open lg_6081.inc in a text editor. You will see that there are two lines like:
   #declare lg_6081 =
Change the second instance into
   #declare lg_6081_clear =

#declare _3650a_dot_dat = #if (QUAL = 0) box { <-32.98,-32.98,-8>,
<32.98,32.98,12> } #else object {
// Technic Gear 24 Tooth Crown
lg_3650
matrix <0,0,-20/LG_BRICK_WIDTH, -20/LG_BRICK_WIDTH,0,0,
0,-24/LG_BRICK_HEIGHT,0, 0,0,0>
}
#end
This errors out with undeclared identifier lg_3650
I can correct this by adding the 'a' after 3640.

In my lg_3650.inc I have added these lines a the end of the file:
   /* temp fix for shortcoming of suffixed part names in L2P_ELMT.TAB */
   #declare lg_3650 = lg_3650a;
   #declare lg_3650_clear = lg_3650a_clear;

When rendering MLCad part 32009 (Technic  Liftarm 1x11.5 Double Bent) using
LGEO, I get a completely different part. It is still a double bent liftarm but
rather than having 1 axle hole and 6 holes on the long axis, it has 1 axle hole
and 7 holes. On the short axis, it has 1 axlehole and 3 holes rather than 1
axlehole and 2 holes.
I could only resolve this by cutting and pasting all of the non-LGEO part files
into the file. Any suggestions?

The lg_32009.inc has 2x4 errors, repeat this twice:
Change
   #declare LENGTH = 6-4*MIR
into
   #declare LENGTH = 5-4*MIR
Change
   matrix <-1,0,0,0,1,0,0,0,1,-4*LG_BRICK_WIDTH,0,0>
into
   matrix <-1,0,0,0,1,0,0,0,1,-3*LG_BRICK_WIDTH,0,0>
Change
   translate <-8*LG_BRICK_WIDTH,0,0>
into
   translate <-7*LG_BRICK_WIDTH,0,0>
Change
   translate <8*LG_BRICK_WIDTH, 0, 0>
into
   translate <7*LG_BRICK_WIDTH, 0, 0>

Finally, I would appreciate any tips for improving the lighting. The camera and
lighting settings for the front view follow:

You can add lights to your scene by inserting light.dat into the model,
or by specifying -lg/-lc options to L3P. It's trial and error to get good lighting...
/Lars



Message has 1 Reply:
  Re: Virtual locomotive MOC
 
Lars, many thanks for your assistance. Greatly appreciated. (21 years ago, 3-Dec-03, to lugnet.cad.ray)

Message is in Reply To:
  Virtual locomotive MOC
 
On Remberance day, I sat right here, watching the ceremonies at the Cenotaph from my 13th floor perch in New Westminster. When the skirl of bagpipes gave way to silence, I thought of my dad. And that always brings me to trains. Crunching through the (...) (21 years ago, 23-Nov-03, to lugnet.cad.ray, lugnet.build)

3 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