POV-Ray : Newsgroups : povray.binaries.images : Cell city (35 kbbu) Server Time
19 Aug 2024 18:28:59 EDT (-0400)
  Cell city (35 kbbu) (Message 1 to 5 of 5)  
From: Greg M  Johnson
Subject: Cell city (35 kbbu)
Date: 7 Nov 2000 13:46:25
Message: <3A084CA6.BFDE9405@my-dejanews.com>
Here is a city made entirely out of an isosurface based on the cells
pigment. I had presented the problem that in step functions, isosurfaces
tend to give diffuse==0 on the edges of the steps.  When I stumbled
across the web page of Makoto Mukui
(http://www.cs-w.com/~earth/material/isopattern.htm),  I found that he
solved the problem elegantly simply with use of the max_gradient.
(PeteC had shared with us some pretty cool code for making this out of
randomly placed boxes of triangles, but I find the looks of this
isosurface more appealing.)

Now to texture to look like actual buildings, al'a  Batman Beyond...

 #declare F = function { pigment { cells color_map { Map } scale 1/4 }}
    isosurface{
      function { (y-F-1) }
      contained_by{ box { -120, 120 } }
      max_gradient 50
      accuracy 1/100
      scale 2
      pigment { rgb <0.7,0.7,0.9>*0.8 }
    }


Post a reply to this message


Attachments:
Download 'cellcity.jpg' (35 KB)

Preview of image 'cellcity.jpg'
cellcity.jpg


 

From: Christoph Hormann
Subject: Re: Cell city (35 kbbu)
Date: 7 Nov 2000 14:18:36
Message: <3A08558C.EAD18045@schunter.etc.tu-bs.de>
"Greg M. Johnson" wrote:
> 
> Here is a city made entirely out of an isosurface based on the cells
> pigment. I had presented the problem that in step functions, isosurfaces
> tend to give diffuse==0 on the edges of the steps.  When I stumbled
> across the web page of Makoto Mukui
> (http://www.cs-w.com/~earth/material/isopattern.htm),  I found that he
> solved the problem elegantly simply with use of the max_gradient.
> (PeteC had shared with us some pretty cool code for making this out of
> randomly placed boxes of triangles, but I find the looks of this
> isosurface more appealing.)
> 

It looks quite good, but there are still a lot of typical errors (what you call
diffuse==0 is only one thing) like stair effects and thin lines.  

IMO similar shapes are also possible with smooth functions, of course not that
simple. I posted a regular grid of cubes some time ago:

Subject:  Re: tiling to infinity in 3d (~66K)
Date:     Thu, 05 Oct 2000 10:28:04

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Cell city (35 kbbu)
Date: 8 Nov 2000 13:20:06
Message: <3A0997FD.9153A981@my-dejanews.com>
Christoph Hormann wrote:

> It looks quite good, but there are still a lot of typical errors (what you call
> diffuse==0 is only one thing) like stair effects and thin lines.
>
> IMO similar shapes are also possible with smooth functions, of course not that
> simple. I posted a regular grid of cubes some time ago:

Did you release that code?  It would be neat to have a smooth iso/ triangle
solution that looks just like this.  PeterC was nice to show me code that could
make something similar, but even after I tinkered with it, it still did not have
this wonderful structured, city-like feel to it.  This structure is more than
simply boxes of random heights translated to random y values. Maybe the problem is
that I don't understand the math here as much as I think I do.....


Post a reply to this message

From: Christoph Hormann
Subject: Re: Cell city (35 kbbu)
Date: 8 Nov 2000 15:06:51
Message: <3A09B254.B34CC756@schunter.etc.tu-bs.de>
"Greg M. Johnson" wrote:
> 
> Did you release that code?  It would be neat to have a smooth iso/ triangle
> solution that looks just like this.  PeterC was nice to show me code that could
> make something similar, but even after I tinkered with it, it still did not have
> this wonderful structured, city-like feel to it.  This structure is more than
> simply boxes of random heights translated to random y values. Maybe the problem is
> that I don't understand the math here as much as I think I do.....

The function was displayed in the picture, it was:

function { (sin(x*3-1)-0.2) & (sin(y*3+2)-0.2) & (sin(z*3-1)-0.2) }

but it was just a regular grid, so it would take quite a lot of work to change
it into something like your pict.

I had a look at the 'cells' pattern source code and found it would not be very
difficult to "smooth" it for better use in isosurface functions. Of course the
result would differ from your picture. 

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: David Fontaine
Subject: Re: Cell city (35 kbbu)
Date: 8 Nov 2000 23:10:53
Message: <3A0A237F.8BD8B699@faricy.net>
Interesting render.
It seems to have some artifact that makes the boxes look bevelled.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

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