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 / 1043
1042  |  1044
Subject: 
RE: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 21 Nov 2001 19:43:42 GMT
Reply-To: 
<BRAM@PO.ihatespamCWRU.EDU>
Viewed: 
1627 times
  
Joel Hoornbeek writes:
I'm still enough of a novice to not know how to do that.  Is
it something you do in the .dat file stage?  Do in the .pov
file?  I seem to lear the best by example, so if you know of
someone who has posted a file which demonstrates this, I'd
like to look at it. Thanks!

In general, improved results for any rendering are accomplished by
editing the POV file.  Each LDRAW part gets converted to a POV 'object'
when you run L3P.  If you use -lgeo, then the object is simply a
transformation of the LGEO object for the part stored in an INC
(include) file.  Every time a part gets used in a model, it is called,
using a line something like this:
object { _3626b_dot_dat transform <...> material { Color14 } }
If that's the minifig head you want to add a face to, then change it to:
object { _3626b_dot_dat
         material {
           Color14
           texture {
             pigment {
   image_map {
                 gif                 // gif,tga,iff,ppm,pgm,png
                 "myface.gif"        // extension must match to keyword
above
                 map_type 2          // cylindrical map
               }
               scale <1,24,1>      // scale to the height of the head
             }
           }
         }
         transform <...>
       }

You may have to add rotate statements after the scale to get the face to
face the right direction.  For more on image maps see:
http://nucwww.chem.sunysb.edu/povray_doc/pov298.html
http://nucwww.chem.sunysb.edu/povray_doc/pov355.html
HTH,
--Bram


Bram Lambrecht
bram@cwru.edu
www.bldesign.org



Message has 2 Replies:
  Re: Minifig Heads
 
Which version of pov are you useing? 3.1 or 3.5? I'm getting a few errors with that. Gary Bram Lambrecht <bram@cwru.edu> wrote in message news:000301c172c4$d3...1681@bl... (...) (23 years ago, 22-Nov-01, to lugnet.cad.ray)
  Re: Minifig Heads
 
(...) I'm using POV 3.1, but I didn't check the code either. There may be an issue with using Color14 *and* the image_map in the same material. Also, make sure the image exists in the correct location and that the '...' in 'transform <...>' is an (...) (23 years ago, 22-Nov-01, to lugnet.cad.ray)

Message is in Reply To:
  Re: Minifig Heads
 
I'm still enough of a novice to not know how to do that. Is it something you do in the .dat file stage? Do in the .pov file? I seem to lear the best by example, so if you know of someone who has posted a file which demonstrates this, I'd like to (...) (23 years ago, 21-Nov-01, to lugnet.cad.ray)

7 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