| | | | |
| |
| 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
| | | | | | | | | | | | |
| |
| 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
>
| | | | | | | | | | | | | | | 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
| | | | | | | | | | | | | | | | | 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
>
| | | | | | |