POV-Ray : Newsgroups : povray.general : Leaf : Re: Leaf Server Time
3 Aug 2024 14:16:35 EDT (-0400)
  Re: Leaf  
From: andrel
Date: 23 Jan 2004 15:51:26
Message: <40118904.6070908@hotmail.com>
Hi Rafal,

I understand that you have already solved your problem, so this
may not be relevant anymore. I am working on some algorithms
to create and modify meshes. Up to now that is only closed
surfaces, but I can see no real problem in extending that to
non-closed surfaces, like leaves. If you have these pig.png and
hf.pnf files for me, I could try to generate a mesh of, say,
200 triangles for you. No garantees, however, it is something
I want to do anyway someday, but time is scarce (and I have
apart from my work a number of POV related problems to work on),
so even if I can do it, it might be ready long after you finished
this image. On the other hand it could be ready by monday.
You never know ;)

	Andrel

Rafal 'Raf256' Maj wrote:
> I'm trying to make leafs falling of tree.
> I have pig.png - containing photo of a leaf, with background marked s 100% 
> transparent, and hf.png containing png grayscale height-map for leaf.
> 
> Now, how can I create a leaf? I'm using height_field, and results are quite 
> good, but how to:
> 
> 1) create an mesh from an height_field (do I have to build mesh manualy 
> i.e. as grid of say 200x200 points, height of each determinating by using 
> pigment_eval or simmilar? Bot still it would be hard to calculate normals 
> for smooth_triangle)
> 
> 2) how can I cut away this black (100% transparent) background - how can I 
> make it 100% transparent?
> 
> 
> about 1) - if ther isn't any macro doing so yet, I would like to try coding 
> it, hwo should I calculate normal for point P[x,y] when height of it's 
> neightbours are P[x-1,y] P[x,y-1] etc..., and distance between them is some 
> "h" vlue.
>


Post a reply to this message

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