POV-Ray : Newsgroups : povray.binaries.images : hilbert2d utility Server Time
2 May 2024 12:25:00 EDT (-0400)
  hilbert2d utility (Message 21 to 30 of 42)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: jr
Subject: Re: hilbert2d utility
Date: 10 May 2018 14:46:09
Message: <5af49371@news.povray.org>
hi,

On 10/05/2018 06:33, Kenneth wrote:
>> which got me thinking, not hedge - building.  could your system be used
>> to "drape" a suitably scaled building shaped like in the attached
>> image*?  30+ floors, ideally.
> 
> (I had to brush-up on my miniscule knowledge of Hilbert curves!)
> Is this what you have in mind, as the general idea?

that must be some brush.  :-)  very cool image, in essence what I have
in mind.  more below.

> This test image doesn't actually use height_fields for the vertical building
> faces; in fact, it's just a POV-Ray + Photoshop mock-up!

you use HFs to get balconies and such?

> Like you, I've been thinking about how to use my HF idea to make buildings with
> 'indented' sections. Not particularly in the shape of Hilbert curves, but the
> same general idea. *In theory*, it should be easy. The trick is to 'slice and
> dice' (and then rotate) the many vertically-oriented HF faces so that they all
> match up with no seams-- AND so that only full window sections are used. That
> particular problem is apparent in this mock-up image: some of the windows are
> cut off prematurely at the various building edges.

cannot comment really since I've no idea of details, but am curious to
learn more.  can I read slicing + dicing as using a tile-based method?

> But it should be easy to do; I just haven't gotten to that stage yet. (Real life
> keeps intruding.) Even a Hilbert-curve variety looks do-able; the equations for
> that could be used in some way to do the proper slicing/dicing of the HFs.

again, curious to find out a little more about the tool(s) in use.


On 10/05/2018 07:50, Thomas de Groot wrote:
> [shudder]
> I do not want to imagine what it would be like to live in a building
> like that! ;-)

oh dear.  :-)

it may get worse.  the setting I have in mind is in part inspired by
your scene with the house by/in the water.  ;-)

think science fiction. the building is not really that, it is the whole
city.  if the grid unit is 1km and the construction is, say, 400m wide
and 1600m tall, there's enough room for everything:
fishing/shipping/light industry, public + civil service stuff, internal
transport systems, and residential.  it stands just offshore, in shallow
waters.

jr.


Post a reply to this message

From: Kenneth
Subject: Re: hilbert2d utility
Date: 10 May 2018 17:20:00
Message: <web.5af4b6afff7db64ca47873e10@news.povray.org>
jr <cre### [at] gmailcom> wrote:
>
> can I read slicing + dicing as using a tile-based method?
>

Yes, and in two different ways.

The INITIAL 1X1-unit (horizontal) height_field is made from some Photoshop
artwork-- which is derived from a building-face photo I snatched from the
internet. (LOTS of those!) The photo will generally show a good number of
windows.

That photo (and its HF derivitive) are first trimmed to be a repeating tile,
with a certain number of window units (which actually varies from photo to
photo, depending on the photo itself and on my own whim.)

The initial height_field is then repeated (or 'assembled') into a much more
expansive HF-- lots of repetitive tiles, and all still horizontal. (The actual
windows photo is then applied to this as a repeating pigment, in a likewise
way.)

This is the main HF 'template' -- which is then flipped vertically (as a
building face), then trimmed down to any particular width and height that I want
for a particular building shape. For a typical 'boxy' building, it's just a
matter of making four of those building faces and rotating/translating them
correctly-- with the caveat that the chosen face widths should not 'slice
though' any actual windows.

For a building with *indents* in the faces -- like the Hilbert example (OR
protrusions)-- the HF template needs to be 'sliced' into smaller widths for
those sections. My 'Hilbert Towers' example image looks like it would need 28(?)
different faces-- but could make use of identical repetitions to reduce that.

>
> you use HFs to get balconies and such?

Well, to a limited extent. So far, I've used the HFs only to get *recessed*
windows, and also some slightly protruding shapes (like window lintels and the
occasional air-conditioner that sticks out a window.) I think actual balconies
would require a different(?) approach-- only because of the balcony railings.
They don't look right as part of the HF.


Post a reply to this message

From: jr
Subject: Re: hilbert2d utility
Date: 10 May 2018 19:30:40
Message: <5af4d620$1@news.povray.org>
hi,

On 10/05/2018 22:16, Kenneth wrote:
> This is the main HF 'template' ...

a lot of detail, thanks.  there's one thing I'd like to clarify straight
away, before "cogitating" and reply.

suppose you had used the method described to make the HilbertTower
image, the template would be a "strip", ie the windows/facade for a
single floor, and would have been applied 20 or so times?  thanks.

jr.


Post a reply to this message

From: Kenneth
Subject: Re: hilbert2d utility
Date: 13 May 2018 11:15:00
Message: <web.5af85647ff7db64ca47873e10@news.povray.org>
jr <cre### [at] gmailcom> wrote:

(Sorry that I'm not responding as quickly as I'd like; not much free time
lately.)
>
> suppose you had used the method described to make the HilbertTower
> image, the template would be a "strip", ie the windows/facade for a
> single floor, and would have been applied 20 or so times?  thanks.
>

It *could* be done that way-- floor by floor-- but the basic window photo tiles
I use are typically 3 or 4 window-units wide, and the the same in height. It
depends on the photo, or if there's some interesting subtle variation in it.
Some photos have lots more windows. But the underlying scene code does apply the
windows floor-by-floor (and in single-window widths, if that makes sense to
you.)

One small detail I left out: the horizontal rooftops. They have to be
constructed in a different way, because the final building is just a
multi-height_field 'shell' with no innards (and no top!) I haven't arrived at a
good method for that yet ;-) For a simple 4-sided 'box' building, the roof could
likewise be a thin box; but a 'Hilbert-style' building (i.e., one with indents)
would need something more complex.


Post a reply to this message

From: Stephen
Subject: Re: hilbert2d utility
Date: 14 May 2018 14:35:13
Message: <5af9d6e1$1@news.povray.org>
On 13/05/2018 16:14, Kenneth wrote:
> jr <cre### [at] gmailcom> wrote:
> 
> (Sorry that I'm not responding as quickly as I'd like; not much free time
> lately.)
>>

Hi Kenneth,
jr has asked me to ask you, to drop him an email on the subject. As he 
has lost access to the newsgroups.


-- 

Regards
     Stephen


Post a reply to this message

From: Kenneth
Subject: Re: hilbert2d utility
Date: 15 May 2018 17:25:00
Message: <web.5afb4f94ff7db64ca47873e10@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> [shudder]
>
> I do not want to imagine what it would be like to live in a building
> like that! ;-)
>

It's a very exclusive residence: a retirement home for mathematicians :-P


Post a reply to this message

From: Stephen
Subject: Re: hilbert2d utility
Date: 15 May 2018 18:02:54
Message: <5afb590e$1@news.povray.org>
On 15/05/2018 22:22, Kenneth wrote:
> Thomas de Groot <tho### [at] degrootorg> wrote:
>> [shudder]
>>
>> I do not want to imagine what it would be like to live in a building
>> like that! ;-)
>>
> 
> It's a very exclusive residence: a retirement home for mathematicians :-P
> 
> 

That would be Hilbert's hotel, then. "Always room for one more."

-- 

Regards
     Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: hilbert2d utility
Date: 16 May 2018 02:49:41
Message: <5afbd485$1@news.povray.org>
On 16-5-2018 0:02, Stephen wrote:
> On 15/05/2018 22:22, Kenneth wrote:
>> Thomas de Groot <tho### [at] degrootorg> wrote:
>>> [shudder]
>>>
>>> I do not want to imagine what it would be like to live in a building
>>> like that! ;-)
>>>
>>
>> It's a very exclusive residence: a retirement home for mathematicians :-P
>>
>>
> 
> That would be Hilbert's hotel, then. "Always room for one more."
> 

LOL. Am I glad that I am not a mathematician ;-)

I have seen apartment buildings like that. When you live, say, on the 
fifth floor and on the inner court, you live a dismal life with hardly 
any daylight. :-/

-- 
Thomas


Post a reply to this message

From: Kenneth
Subject: Re: hilbert2d utility
Date: 23 May 2018 16:05:01
Message: <web.5b05c952ff7db64ca47873e10@news.povray.org>
Stephen <mca### [at] aolcom> wrote:
>
> Hi Kenneth,
> jr has asked me to ask you, to drop him an email on the subject. As he
> has lost access to the newsgroups.
>

Just tried to contact him, but his email address is showing up here on the web
interface as
  jr <cre### [at] gmailcom>

I'm seeing ### after  cre   and they don't work. Apparently those hash marks are
substituting for something else. :-(  Maybe it's a web-interface vs. newsreader
difference?


Post a reply to this message

From: Bald Eagle
Subject: Re: hilbert2d utility
Date: 25 May 2018 16:40:01
Message: <web.5b087378ff7db64c10874a080@news.povray.org>
Just ran across a very interesting video about the Hilbert Curve.

https://www.youtube.com/watch?v=3s7h2MHQtxc

This actually suggests that since a Hilbert curve is a continuous function that
can fill 2D (3d?)  that it can be implemented as a pigment pattern.

Perhaps others with more free time can imagine other interesting uses.  :)


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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