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 / 1046
1045  |  1047
Subject: 
Re: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 22 Nov 2001 01:37:03 GMT
Viewed: 
1485 times
  
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$d30fa960$b7fb1681@bl...
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 is in Reply To:
  RE: Minifig Heads
 
(...) 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 (...) (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
    

Custom Search

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