POV-Ray : Newsgroups : povray.binaries.images : Triangles and heightfields (also very early WIP) Server Time
11 Aug 2024 17:12:54 EDT (-0400)
  Triangles and heightfields (also very early WIP) (Message 1 to 3 of 3)  
From: andrel
Subject: Triangles and heightfields (also very early WIP)
Date: 25 Jan 2004 11:32:01
Message: <4013EF2B.9010303@hotmail.com>
Inspired by Rafal I decided to combine some imagemaps and heightfieds.
What I did is that I took a picture of a butterfly, separated it from
the background, approximated the contour with line segments and filled
up the interior with triangles. Then I generated a heightfield with
an approximately round body and slightly rotated wings. The heightfield
was used as an offset for my triangles and I used ofcourse UV mapping
for the texture. Attached are an image I used the butterfly in and
an image showing the triangular mesh (828 triangles because I wanted
a reasonably defined border and also small triangles for the body
because of the curvature there).
At least two things are still wrong. The image looks overexposed and
in the triangular mesh one of the edges seems missing.

Comments or remarks?

	Andrel


Post a reply to this message


Attachments:
Download 'bloemrad.jpg' (50 KB) Download 'vlinder_tri.jpg' (83 KB)

Preview of image 'bloemrad.jpg'
bloemrad.jpg

Preview of image 'vlinder_tri.jpg'
vlinder_tri.jpg


 

From: Rafal 'Raf256' Maj
Subject: Re: Triangles and heightfields (also very early WIP)
Date: 25 Jan 2004 11:45:51
Message: <Xns947BB44E2DD52raf256com@203.29.75.35>
a_l### [at] hotmailcom news:401### [at] hotmailcom

> Inspired by Rafal I decided to combine some imagemaps and heightfieds.
> What I did is that I took a picture of a butterfly, separated it from

Well nice :) I just was going to ask if somebody have ready butterfly 
object:)

How about we put efforts togeather and made some nice spring-summer scene, 
we still several months time, so... :)

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: andrel
Subject: Re: Triangles and heightfields (also very early WIP)
Date: 25 Jan 2004 11:56:20
Message: <4013F4EB.1040101@hotmail.com>
Rafal 'Raf256' Maj wrote:
> 
>>Inspired by Rafal I decided to combine some imagemaps and heightfieds.
>>What I did is that I took a picture of a butterfly, separated it from
> 
> 
> Well nice :) I just was going to ask if somebody have ready butterfly 
> object:)
I now have and even better I have the programs to generate any variety
as long as I have a picture.

> How about we put efforts togeather and made some nice spring-summer scene, 
Yes, why not. What more do you need?

> we still several months time, so... :)
actually less than 2, unless you are in the southern hemisphere


Post a reply to this message

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