POV-Ray : Newsgroups : povray.binaries.images : Ball of rings Server Time
12 Aug 2024 05:30:39 EDT (-0400)
  Ball of rings (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Shay
Subject: Re: My bounding problem?
Date: 1 Dec 2003 17:31:47
Message: <3fcbc153$1@news.povray.org>
"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3fcbb4b6$1@news.povray.org...
| > You or I could write a meshing algorithm specifically for snow
|
| Would probably be a good idea ...

I really don't have the time, but I am tempted to give it a shot. Out of
curiosity, what algorithm did you use to determine the location and size
of your snow blobs? I've never seen snow.

On the original topic of this thread. That is a quite nice ball of
rings, but it would have been pretty simple and faster rendering as a
mesh also.

 -Shay


Post a reply to this message

From: Hugo Asm
Subject: Re: snow
Date: 1 Dec 2003 17:55:15
Message: <3fcbc6d3$1@news.povray.org>
> what algorithm did you use to determine the location and size
> of your snow blobs? I've never seen snow.

You've never seen snow? I probably shouldn't take this literally.

Well, I used Gilles Tran's "makesnow.inc" at first, then modified it to
speed up parsing but the idea is still a very simple approximation:

I declare a direction vector that simulates wind and gravity, such as
 <-1, -1, 0>  which would tend to cover the top and right side of an object
(assuming y is height). The size of each particle is random but has a
minimum & maximum limit. I use the "trace" feature to shoot rays at an
object, which in my case is an imported mesh2... Gilles' macro can be found
here: http://www.oyonale.com/ressources/downloads/makesnow.inc

I know you're skilled when it comes to handling triangles - so good luck -
the project is interesting - but feel free to stop when you want to.

Best wishes,
Hugo

PS: we should probably continue the thread somewhere else.


Post a reply to this message

From: Jim Charter
Subject: Re: snow
Date: 2 Dec 2003 02:03:52
Message: <3fcc3958$1@news.povray.org>
Hugo Asm wrote:
>>what algorithm did you use to determine the location and size
>>of your snow blobs? I've never seen snow.
> 
> 
> You've never seen snow? I probably shouldn't take this literally.
> 

Saw the first snow for the year this morning.  They were filming 
something or other on the corner and had snowmaking equipment out to put 
snow in the scene.


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: My bounding problem?
Date: 2 Dec 2003 03:06:29
Message: <Xns94455C9FC5321raf256com@204.213.191.226>
hua### [at] post3teledk news:3fcbb4b6$1@news.povray.org

> Would probably be a good idea ... maybe even an isosurface would be
> quicker. 

No, mesh is quicker. I.e. inside my wax figures are over 200.000 particles. 

-- 
#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: Shay
Subject: Re: snow
Date: 2 Dec 2003 09:50:53
Message: <3fcca6cd$1@news.povray.org>
"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3fcbc6d3$1@news.povray.org...
|
| You've never seen snow? I probably shouldn't take
| this literally.

I meant it literally. It has snowed a handful of times here, but it
melts as soon as it touches the ground.

|
| the project is interesting

I put something together last night. I guess it looked like a blob mesh
would on a little isosurface mauntain range I made. That is, it looked
like white, puffy grass. The parse was about half an hour, but the
render time is measured in minutes, not days. I took a look at Gilles
website and saw that he had noticed the same problem, that the algorithm
only produces good results in small patches on tree limbs and such. I
built the mesh so that it can be further refined (within the limits of
fp precision) so the with enough memory, an acceptable snow might be
made on a jagged enough mountain. I would guess that mountains don't get
snow-covered in one pass anyway, so it might be that this algorithm
would never produce realistic results on a large object.

|
| PS: we should probably continue the thread somewhere else.

I set followups to p.gen if you have any further comment.

 -Shay


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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