|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Chris B" <nom### [at] nomailcom> schreef in bericht
news:49ad0a9e$1@news.povray.org...
>
> I have an old hair growth macro that tracks individual hairs, following
> the contours of an anatomy and responding to gravity. If I can get it to
> work properly with the generated mesh objects then my plan is to load it
> onto the Object Collection so that it can be used in conjunction with any
> generated MakeHuman models. This may be rendered a little redundant if the
> MH hair solution is really good, but might still give POV-Ray users some
> interesting options. For example it should work with any body part (hands,
> face etc.), whereas I suspect that the MakeHuman hair generator is likely
> (at least in the early releases) to only work with the head.
>
If that could also work with Poser figures exported to POV, that would be
very interesting. My guess is that it should work.
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
news:49ad2eb5$1@news.povray.org...
>
> "Chris B" <nom### [at] nomailcom> schreef in bericht
> news:49ad0a9e$1@news.povray.org...
>>
>> I have an old hair growth macro that tracks individual hairs, following
>> the contours of an anatomy and responding to gravity.
>
> If that could also work with Poser figures exported to POV, that would be
> very interesting. My guess is that it should work.
>
I think you'd get a problem with figures exported from Poser, because I
think you just get a mesh object. So working out where the various relevant
bits are positioned and how they are oriented, so that you can use a POV-Ray
macro to grow hair out of particular parts of the mesh, is probably very
tricky.
Regards,
Chris B.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Chris B" <nom### [at] nomailcom> schreef in bericht
news:49ad3410$1@news.povray.org...
>
> "Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
> news:49ad2eb5$1@news.povray.org...
>>
>> "Chris B" <nom### [at] nomailcom> schreef in bericht
>> news:49ad0a9e$1@news.povray.org...
>>>
>>> I have an old hair growth macro that tracks individual hairs, following
>>> the contours of an anatomy and responding to gravity.
>>
>> If that could also work with Poser figures exported to POV, that would be
>> very interesting. My guess is that it should work.
>>
>
> I think you'd get a problem with figures exported from Poser, because I
> think you just get a mesh object. So working out where the various
> relevant bits are positioned and how they are oriented, so that you can
> use a POV-Ray macro to grow hair out of particular parts of the mesh, is
> probably very tricky.
>
What if you already have the (dynamic) hairs from Poser available, and
exported as lines by Poseray? Would that help?
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
news:49ae4e0c$1@news.povray.org...
>
> "Chris B" <nom### [at] nomailcom> schreef in bericht
> news:49ad3410$1@news.povray.org...
>>
>> "Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
>> news:49ad2eb5$1@news.povray.org...
>>>
>>> "Chris B" <nom### [at] nomailcom> schreef in bericht
>>> news:49ad0a9e$1@news.povray.org...
>>>>
>>>> I have an old hair growth macro that tracks individual hairs, following
>>>> the contours of an anatomy and responding to gravity.
>>>
>>> If that could also work with Poser figures exported to POV, that would
>>> be very interesting. My guess is that it should work.
>>>
>>
>> I think you'd get a problem with figures exported from Poser, because I
>> think you just get a mesh object. So working out where the various
>> relevant bits are positioned and how they are oriented, so that you can
>> use a POV-Ray macro to grow hair out of particular parts of the mesh, is
>> probably very tricky.
>>
>
> What if you already have the (dynamic) hairs from Poser available, and
> exported as lines by Poseray? Would that help?
>
I'm not sure. I've never used that.
The macro just needs a couple of objects and a couple of vectors to tell it
how the object is positioned and oriented. The main object is a shell that
it can trim to shape to form the hairline object. This can actually just be
a slice of the main object or just the difference between two spheres to
give a shell that fairly closely maps to the skull. It uses trace to
randomly find hair starting positions on this object. The other object is
the real anatomy object that it uses to trace the hairs down over. It
follows some simple rules to respond to gravity, curl and stuff, then it
uses trace to make sure it doesn't penetrate the surface of the anatomy
object.
It's the same basic hair macro that I used to generate a couple of
animations back in 2006.
http://news.povray.org/povray.binaries.animations/thread/%3C457d2bfb@news.povray.org%3E/?ttop=261005&toff=50
Regards,
Chris B.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Chris B" <nom### [at] nomailcom> schreef in bericht
news:49ae61ce$1@news.povray.org...
>
> The macro just needs a couple of objects and a couple of vectors to tell
> it how the object is positioned and oriented. The main object is a shell
> that it can trim to shape to form the hairline object. This can actually
> just be a slice of the main object or just the difference between two
> spheres to give a shell that fairly closely maps to the skull. It uses
> trace to randomly find hair starting positions on this object. The other
> object is the real anatomy object that it uses to trace the hairs down
> over. It follows some simple rules to respond to gravity, curl and stuff,
> then it uses trace to make sure it doesn't penetrate the surface of the
> anatomy object.
Hm. Maybe even simpler then. A Poser figure's hair is provided with a skull
cap which closely follows the shape of the head where hairs should be. This
can also be made quite easily for other body parts, e.g. for growing a
beard. Using this skull cap (which exports to POV as a mesh2 object, just
like the rest of the Poser figure) your macro could grow the hair just like
you describe, and use trace on the main figure to find the collision points.
Seems feasible to me :-)
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
news:49aea1c6$1@news.povray.org...
>
>
> Hm. Maybe even simpler then. A Poser figure's hair is provided with a
> skull cap which closely follows the shape of the head where hairs should
> be. This can also be made quite easily for other body parts, e.g. for
> growing a beard. Using this skull cap (which exports to POV as a mesh2
> object, just like the rest of the Poser figure) your macro could grow the
> hair just like you describe, and use trace on the main figure to find the
> collision points. Seems feasible to me :-)
>
Yes that does sound quite feasible then. So long as it gives you something
to tell you the position and orientation of the skull cap on a posed figure?
Regards,
Chris B.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Chris B" <nom### [at] nomailcom> wrote:
> I'm still enhancing the POV-Ray export functionality, so if anyone has any
> spiffing ideas, or wants to help, let me know.
>
Okay, one thing that I did notice was that I had to create a "texture.tga"
image-- I made it all pink-- in order to get the files to render. Did I miss
something about the intended use of an include, or was this an oversight.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"gregjohn" <pte### [at] yahoocom> wrote in message
news:web.49aef23ffea29af834d207310@news.povray.org...
> "Chris B" <nom### [at] nomailcom> wrote:
>> I'm still enhancing the POV-Ray export functionality, so if anyone has
>> any
>> spiffing ideas, or wants to help, let me know.
>>
>
> Okay, one thing that I did notice was that I had to create a "texture.tga"
> image-- I made it all pink-- in order to get the files to render. Did I
> miss
> something about the intended use of an include, or was this an oversight.
>
Sorry about that, the texture.tga file was replaced by the file texture.tif
and I noticed a couple of hours too late to get it in the build used for
this pre-release:
To fix this there are two references, one in each of the generated 'pov' and
'inc' files to 'tga "texture.tga"'. These need changing to 'tiff
"texture.tif"' and the file "texture.tif" needs to be copied from
"data/textures/" to "pov_output/".
Regards,
Chris B.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Chris B" <nom### [at] nomailcom> schreef in bericht
news:49aeb089$1@news.povray.org...
>
>
> Yes that does sound quite feasible then. So long as it gives you something
> to tell you the position and orientation of the skull cap on a posed
> figure?
>
Well, it does I suppose, the skull cap being part of the figure's union{} or
do I understand you wrongly here?
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message
news:49af8daa@news.povray.org...
>
> "Chris B" <nom### [at] nomailcom> schreef in bericht
> news:49aeb089$1@news.povray.org...
>>
>>
>> Yes that does sound quite feasible then. So long as it gives you
>> something to tell you the position and orientation of the skull cap on a
>> posed figure?
>>
>
> Well, it does I suppose, the skull cap being part of the figure's union{}
> or do I understand you wrongly here?
>
You'd need to be able to get a position vector and an orientation vector
from somewhere. Once an object is defined as a POV-Ray object it can be
difficult to ascertain those things, particularly on a pre-posed model,
where the hairline could be just about anywhere and at any angle.
If you get a mesh or mesh2 object where the head is tilted forwards and
maybe a bit sideways, maybe covered by the figures hands, then all you can
really tell from the hairline and body objects themselves is their minimum
and maximum extents. There's nothing available to POV-Ray to tell it the
orientation of the hairline object or the position of the hair growth centre
(or where a parting has to go etc.).
On the other hand, if Poser gives you anything that fixes the skull position
in 3 places, then that can be used to deduce the orientation of the
hairline. E.g. the positions of the eyes and the top of the spine. These
values could also then be used to get an approximate position for the hair
growth centre point etc.
Regards,
Chris B.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |