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 / 1038
     
   
Subject: 
Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Tue, 20 Nov 2001 23:39:21 GMT
Viewed: 
1044 times
  

Hello,
I've been using ML-Cad, L3P, L3PAO, and Pov Ray for a while now, and I've
been wondering what the best way is to render minifig heads and/or helmets.
I've seen some beautiful renderings out there, with wonderful ROUND heads,
but I haven't been able to figure out how to do it.  I was hoping that using
the LGEO parts would do the trick, but I didn't have any luck.
If one of the rendering gurus out there would be able to help me, I'd
greatly appreciate it.  Thanks!

-Joel

   
         
   
Subject: 
RE: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 21 Nov 2001 05:13:53 GMT
Reply-To: 
<bram@po.cwru%Spamless%.edu>
Viewed: 
1098 times
  

Joel Hoornbeek writes:
I've seen some beautiful renderings out there, with wonderful
ROUND heads, but I haven't been able to figure out how to do it.

What you need to do is render a blank round head and then use an
image_map of the face for the pigment of the head.  You can change the
map type to a cylindrical wrap instead of rectangular if necessary.  A
slightly lower qualityway to do it would be to change the triangles in
the mesh for the head to smooth_triangle's using an outside utility.
--Bram


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

   
         
   
Subject: 
Re: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 21 Nov 2001 12:27:36 GMT
Viewed: 
1195 times
  

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!

-Joel

In lugnet.cad.ray, Bram Lambrecht writes:
Joel Hoornbeek writes:
I've seen some beautiful renderings out there, with wonderful
ROUND heads, but I haven't been able to figure out how to do it.

What you need to do is render a blank round head and then use an
image_map of the face for the pigment of the head.  You can change the
map type to a cylindrical wrap instead of rectangular if necessary.  A
slightly lower qualityway to do it would be to change the triangles in
the mesh for the head to smooth_triangle's using an outside utility.
--Bram


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

   
         
   
Subject: 
RE: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 21 Nov 2001 19:43:42 GMT
Reply-To: 
<bram@po.cwru.&Spamless&edu>
Viewed: 
1492 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

   
         
     
Subject: 
Re: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 22 Nov 2001 01:37:03 GMT
Viewed: 
1357 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


   
         
   
Subject: 
Re: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 22 Nov 2001 02:43:56 GMT
Viewed: 
1416 times
  

At 01:37 AM 11/22/01 +0000, Gary Blessing wrote:
Which version of pov are you useing? 3.1 or 3.5?
I'm getting a few errors with that.

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 actual correct matrix (the same one as in the
original object statement).  I can't correct your errors without seeing the
actual error message and the code, though.
--Bram



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

   
         
   
Subject: 
Re: Minifig Heads
Newsgroups: 
lugnet.cad.ray
Date: 
Thu, 22 Nov 2001 10:57:58 GMT
Viewed: 
1785 times
  

hehehe sorry I bothered you, it was a typo, too many 1s in a few spots.

Gary
(just learnig to hand code pov)

Bram Lambrecht <BXL34@po.cwru.edu> wrote in message
news:5.0.2.1.0.20011121213807.00a45d90@pop.cwru.edu...
At 01:37 AM 11/22/01 +0000, Gary Blessing wrote:
Which version of pov are you useing? 3.1 or 3.5?
I'm getting a few errors with that.

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 actual correct matrix (the same one as in the
original object statement).  I can't correct your errors without seeing • the
actual error message and the code, though.
--Bram



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


 

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