POV-Ray : Newsgroups : povray.binaries.images : primate test 1 : Re: primate test 1 Server Time
12 Aug 2024 03:23:03 EDT (-0400)
  Re: primate test 1  
From: Jim Charter
Date: 16 Jan 2004 00:09:45
Message: <40077219@news.povray.org>
Jeremy M. Praay wrote:


> 
> I would like to hear more elaboration on how you did the hair, and how CPU
> 
Okay.

1. I used the trace macro to find a lines of points on the surface of 
the figure to describe the direction of the hair.  Splines are generated 
  from these points.  One spline alone the surface for the hair roots. 
One spline from points along the normals to place the end points of the 
hairs

2. The splines are sampled to get start, end, and midpoints, for each 
hair.  These points are use to create a spline.  Each hair is then built
by placing mesh along the spline

3. The hair spline can be modulated by sampling a smooth pattern such as 
bozo and using the values to rotate the midpoints slightly around the normal

4. The placement of each hair is also jittered

But the original method of tracing points to establish the hair 
direction was time consuming and cumbersome.  So going forward I plan to 
use the following method to establish the direction splines

5. In Wings, nine different materials can be assigned to nine selected 
points

6. With all nine points selected, they can be exported as a .obj mesh 
file.  In the mesh file, each polygon or 'face' is tagged with a 
separate material. e.g.

g cube1_1a
usemtl 1a
f 19//19 31//31 10//10 1//1
g cube1_1b
usemtl 1b
f 11//11 34//34 24//24 3//3
g cube1_1c
usemtl 1c
f 12//12 33//33 21//21 2//2
g cube1_2a
usemtl 2a
f 6//6 18//18 30//30 17//17
g cube1_2b
usemtl 2b
f 8//8 22//22 29//29 23//23
g cube1_2c
usemtl 2c
f 16//16 36//36 15//15 4//4
g cube1_3a
usemtl 3a
f 20//20 35//35 27//27 7//7
g cube1_3b
usemtl 3b
f 9//9 26//26 32//32 25//25
g cube1_3c
usemtl 3c
f 13//13 28//28 14//14 5//5

7. The obj mesh file can be parsed in a separate program and one of the 
four vertices and normals fo each face can be retrieved

8. These points can be used to generate the direction splines.


Post a reply to this message


Attachments:
Download '1.jpg' (35 KB) Download '2.jpg' (43 KB) Download '5.jpg' (72 KB) Download '8.jpg' (29 KB)

Preview of image '1.jpg'
1.jpg

Preview of image '2.jpg'
2.jpg

Preview of image '5.jpg'
5.jpg

Preview of image '8.jpg'
8.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.