POV-Ray : Newsgroups : povray.binaries.images : city buildings-- WIP 2 Server Time
17 Jul 2025 13:03:06 EDT (-0400)
  city buildings-- WIP 2 (Message 14 to 23 of 85)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Kenneth
Subject: Re: city buildings-- WIP 2
Date: 5 Aug 2017 16:15:01
Message: <web.5986268c54c85aac883fb31c0@news.povray.org>
Another test-image post-- hopefully my final gamma test... ;-)

This PNG render is post-processed in Photoshop, but I CHANGED my usual 2.2 gamma
there (in PS) to 1.0. *IF* this image shows up correctly here-- in both small
and large previews-- then I will at least have solved the major part of my *own*
problem...

[The thing is, the image looks WRONG in Photoshop with a gamma of 1.0 there--
it's washed out, as I would expect-- but I'll let that pass for now.]

** keeping my fingers crossed **


Post a reply to this message


Attachments:
Download 'ps_gamma_1_test.png' (1786 KB)

Preview of image 'ps_gamma_1_test.png'
ps_gamma_1_test.png


 

From: Kenneth
Subject: Re: city buildings-- WIP 2
Date: 5 Aug 2017 17:30:01
Message: <web.5986384754c85aac883fb31c0@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> Another test-image post-- hopefully my final gamma test... ;-)
>
> This PNG render is post-processed in Photoshop, but I CHANGED my usual 2.2 gamma
> there (in PS) to 1.0. *IF* this image shows up correctly here-- in both small
> and large previews-- then I will at least have solved the major part of my *own*
> problem...
>

Success!! Both preview sizes here look identical, and correct--well, with maybe
a *very slight* washed-out appearance in both-- but that could be from a number
of reasons on my end, and is unimportant in the bigger scheme of things ;-)

SO... it seems that my use of Photoshop-- at its *typical* gamma setting of
2.2-- was introducing a gamma change into the POV-Ray PNG image. I have aways
assumed 2.2 to be the correct gamma in PS, for any/all PNG images that I've
downloaded from the 'net, and even for Photoshop-created PNG images. But it's
NOT correct for post-processing a POV-Ray PNG render: a PS gamma of 1.0 is
necessary (at least for both of the newsgroup's two preview sizes to show up
correctly!) So, *something* is amiss somewhere-- either a flaw in my version of
Photoshop, OR in how the newsgroups treat preview images.

By the way, these are my POV-Ray render settings:
A) assumed_gamma 1.0 in the scene file
B) Display_Gamma of 'srgb' in my .ini file
C) File_Gamma of 'srgb' in my .ini file


Post a reply to this message

From: Kenneth
Subject: Re: city buildings-- WIP 2
Date: 5 Aug 2017 18:20:01
Message: <web.5986436754c85aac883fb31c0@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
> > With a little bit of fog thrown in-- smog, or city pollution.
>
> This is a nice project, looking good. What happens if the fog is too dense to
> see the ground? :)

Answer: Too much fog! ;-) I spent hours trying to get a combination of regular
and groud fog that looked reasonably correct-- but it's still not right. (I may
do away with it altogether; some New York City aerial photos I've seen are
crystal clear, all the way to the horizon!)
>
> You could also try to group buildings in blocks, alley-distance apart, with
> blocks separated more widely. Maybe vary the height distribution using a
> large-scale pigment to select the maxima - you tend to get clusters of tall
> buildings in many cities.
>
I hadn't thought of that-- and you're absolutely right. For example, Manhattan
definitely has various-size cluters, mainly because of the depth of bedrock in
various parts of the city. Some areas just can't sustain the heavier loads, even
with pilings. That's a detail for my own city that I completely neglected-- and
it would add to the realism. Thanks!


Post a reply to this message

From: Ive
Subject: Re: city buildings-- WIP 2
Date: 5 Aug 2017 18:35:22
Message: <5986482a$1@news.povray.org>
Am 8/5/2017 um 23:27 schrieb Kenneth:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>> Another test-image post-- hopefully my final gamma test... ;-)
>>
>> This PNG render is post-processed in Photoshop, but I CHANGED my usual 2.2 gamma
>> there (in PS) to 1.0. *IF* this image shows up correctly here-- in both small
>> and large previews-- then I will at least have solved the major part of my *own*
>> problem...
>>

actually this PNG image has a embedded gamma of 2.0 and the image you 
did post earlier (the dark one) has a gamma chunk of 4.4 - and this 
doesn't make any sense at all.
>
> Success!! Both preview sizes here look identical, and correct--well, with maybe
> a *very slight* washed-out appearance in both-- but that could be from a number
> of reasons on my end, and is unimportant in the bigger scheme of things ;-)
>
> SO... it seems that my use of Photoshop-- at its *typical* gamma setting of
> 2.2-- was introducing a gamma change into the POV-Ray PNG image. I have aways
> assumed 2.2 to be the correct gamma in PS, for any/all PNG images that I've
> downloaded from the 'net, and even for Photoshop-created PNG images. But it's
> NOT correct for post-processing a POV-Ray PNG render: a PS gamma of 1.0 is
> necessary (at least for both of the newsgroup's two preview sizes to show up
> correctly!) So, *something* is amiss somewhere-- either a flaw in my version of
> Photoshop, OR in how the newsgroups treat preview images.
>

Which PS version do you use? Adobe changed the handling of various image 
file format between different versions a lot and especially Photoshop's 
handling of PNG in anything older than CS6 is known to be flawed.

I usually do recommend to open images in PS that do not include an ICC 
profile in a way that that PS does NOT assign a "working colorspace"
and also does NOT assign a color profile.

-Ive


Post a reply to this message

From: Kenneth
Subject: Re: city buildings-- WIP 2
Date: 5 Aug 2017 20:20:01
Message: <web.59865f6154c85aac883fb31c0@news.povray.org>
Ive <ive### [at] lilysoftorg> wrote:
> Am 8/5/2017 um 23:27 schrieb Kenneth:
> >
> > Another test-image post-- hopefully my final gamma test... ;-)

>
> actually this PNG image has a embedded gamma of 2.0 and the image you
> did post earlier (the dark one) has a gamma chunk of 4.4 - and this
> doesn't make any sense at all.

WOW, that's... crazy. I don't even know what to make of it. *Thanks* for
checking this out. One idea that occurs to me (which could be wrong, of course)
is that posting a PNG to the newsgroups changes the gamma... perhaps twice, for
the two different-sized previews. ?? Otherwise, it's a mysterious problem with
several interrelated causes, my Photoshop being only one of them.

If you don't mind doing so, would you check the gamma chunk in the 'raw' POV-Ray
PNG image I posted, the one that begins with this:
"One more image test, again for my own purposes: This PNG is *directly* from
POV-Ray (and NOT post-processed in Photoshop.)..."

I'm curious to know what *that* turns out to be.
>
> Which PS version do you use? Adobe changed the handling of various image
> file format between different versions a lot and especially Photoshop's
> handling of PNG in anything older than CS6 is known to be flawed.
>

Version 5.0, I'm embarassed to say. And yes, I also read somewhere that such
'older' versions had some kind of flaw in their handling of PNGs... although I
don't know the technicalities.


Post a reply to this message

From: Kenneth
Subject: Re: city buildings-- WIP 2
Date: 6 Aug 2017 06:40:00
Message: <web.5986f04454c85aac883fb31c0@news.povray.org>
"BayashiPascal" <Pas### [at] BayashiInJapannet> wrote:
> That's really nice.
> I think you should also make different photos for the 1st floor of the
> buildings. At least to give them an entrance.

YES, I've been thinking the same; it's on my to-do list now. A ground
floor/lobby would add a LOT to the look of the rather boring facades. I'm not
yet sure how I'm going to go about it, though-- with (more) photos, or maybe
with some kind of fancy procedural pigment instead, that has some randomness to
it.

> Do you plan to add people, vehicles and traffic signs in the street ? It looks
> like an endless project ! :-)

I'm thinking of adding some moving cars at least-- as soon as I get around to
making some ;-) Yeah, this city project has taken on a life of its own. But I
discover some new techniques every time I add or change something, so it
continues to be a nicely challenging coding exercise.


Post a reply to this message

From: Ive
Subject: Re: city buildings-- WIP 2
Date: 6 Aug 2017 06:40:26
Message: <5986f21a$1@news.povray.org>
> WOW, that's... crazy. I don't even know what to make of it. *Thanks* for
> checking this out. One idea that occurs to me (which could be wrong, of course)
> is that posting a PNG to the newsgroups changes the gamma... perhaps twice, for
> the two different-sized previews. ?? Otherwise, it's a mysterious problem with
> several interrelated causes, my Photoshop being only one of them.
>

There *is* a problem with the web interface as the code that creates the 
downsampled preview always assumes an input image with 2.2 (or sRGB) 
gamma. It takes the original image data, resamples it and does tag the 
output as sRGB regardless of the original gamma information.
On the other hand, how the image itself appears solely depends on the 
way the browser handles it. And luckily we live in 2017, 10 years (or 
so) ago literally EVERY browser did handle it differently.
And BTW the problem is not limited to PNG images, it would also happen 
when you use for instance a JPEG with an ICC profile stating a non 2.2 
gamma.


> If you don't mind doing so, would you check the gamma chunk in the 'raw' POV-Ray
> PNG image I posted, the one that begins with this:
> "One more image test, again for my own purposes: This PNG is *directly* from
> POV-Ray (and NOT post-processed in Photoshop.)..."
>
> I'm curious to know what *that* turns out to be.

As expected - this one has a sRGB chunk.
(Rendered with POV-Ray 3.7.1-beta.9 at 22:22, 2017-08-04)


> Version 5.0, I'm embarassed to say. And yes, I also read somewhere that such
> 'older' versions had some kind of flaw in their handling of PNGs... although I
> don't know the technicalities.
>

I've worked with all versions of Photoshop before they turned to CC and 
Adobe's handling of some image file formats was always a mess. But for 
PNG it was the worst of all as Adobe did - when switching versions -  do 
it wrong again, but in a different way. So e.g. a PNG file written with 
PS 5.0 will look unexpected different when opened in CS1.
Good news is, as a user you can work around these issues. But as I've 
used version 5.0 quite a long time ago (20 years ?) I cannot tell 
anymore how the settings are called and where to find them.
Look somewhere at Preferences->Settings->Color management. There should 
be somewhere a checkbox saying something like "always ask when profile 
differs" and make sure it is checked. When opening now e.g. a PNG file 
written by POV-Ray a dialog should pop up asking you if you would like 
to apply a color transform and you should say NO.
But as mentioned, I'm not entirely sure, maybe this was the way v6.0 did 
handle it.

-Ive


Post a reply to this message

From: Bald Eagle
Subject: Re: city buildings-- WIP 2
Date: 6 Aug 2017 11:20:00
Message: <web.5987327254c85aac80403a200@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

Kenneth, this is coming along really well!

I think Bill Pragnell already mentioned adding a mechanism by which to cluster
groups of similar-sized buildings - if you use a color-coded map to do something
like that, you could detail things like high-rises, small residential houses,
shopping areas with large parking lots, etc - but you could also then add in
landscape features like trees, rivers, parks, etc.

And just to stretch the imagination - I wonder if you could use such a scheme to
vary the atmosphere.

I'm always interested in your approach to handling this - and I'me sure new
users would be interested in seeing some of the magic behind making something
like this work, and others would find it easier to solve problems / suggest
improvements if they had an idea of what your [pseudo]code is.


How large can you make this?
This almost begs one to take on the challenge of a "world-building" scene like a
video game such as minecraft, etc.
(I have no idea how so much gets generated and handled with just a tablet or
cell phone)
I could envision adding a maze-solving algorithm to guide the camera along the
streets, and doing a very long fly-through animation to just show that it can
keep going, and going, and going...

Along those lines, perhaps add in "under construction" as a building type.

User "Architype" has his wonderful historic-style architectures --- I could
envision an interesting scene where the farther along in the animation one goes,
the more modern the architecture gets   :O

Maybe think about doing an old / odd building or two to serve as theaters /
museums / concert halls, etc.

This is really coming along spectacularly :)  I'm very glad you've been able to
make so much excellent progress and work out so many things on your to-do list.

Thanks for sharing!


Post a reply to this message

From: Cousin Ricky
Subject: Re: city buildings-- WIP 2
Date: 6 Aug 2017 16:31:43
Message: <59877caf@news.povray.org>
On 2017-08-05 06:15 PM (-4), Kenneth wrote:
> "Bill Pragnell" <bil### [at] hotmailcom> wrote:
> Answer: Too much fog! ;-) I spent hours trying to get a combination of regular
> and groud fog that looked reasonably correct-- but it's still not right. (I may
> do away with it altogether; some New York City aerial photos I've seen are
> crystal clear, all the way to the horizon!)

Probably because they chose the photo shoot date very carefully.  I have 
never seen a clear horizon when I've visited in NYC; usually, I could 
not see more than 10 miles (15 km) or so.

>> "Kenneth" <kdw### [at] gmailcom> wrote:
>> You could also try to group buildings in blocks, alley-distance apart, with
>> blocks separated more widely. Maybe vary the height distribution using a
>> large-scale pigment to select the maxima - you tend to get clusters of tall
>> buildings in many cities.
>>
> I hadn't thought of that-- and you're absolutely right. For example, Manhattan
> definitely has various-size cluters, mainly because of the depth of bedrock in
> various parts of the city. Some areas just can't sustain the heavier loads, even
> with pilings. That's a detail for my own city that I completely neglected-- and
> it would add to the realism. Thanks!

IIRC, the NYC code requires its skyscrapers to have some kind of recess 
or step architecture to minimize the wind effects at ground level.  This 
limits how close the actual towers can be to each other.


Post a reply to this message

From: Alain
Subject: Re: city buildings-- WIP 2
Date: 6 Aug 2017 18:13:27
Message: <59879487$1@news.povray.org>

> "BayashiPascal" <Pas### [at] BayashiInJapannet> wrote:
>> That's really nice.
>> I think you should also make different photos for the 1st floor of the
>> buildings. At least to give them an entrance.
> 
> YES, I've been thinking the same; it's on my to-do list now. A ground
> floor/lobby would add a LOT to the look of the rather boring facades. I'm not
> yet sure how I'm going to go about it, though-- with (more) photos, or maybe
> with some kind of fancy procedural pigment instead, that has some randomness to
> it.

Maybe make the ground floor very slightly larger than the rest.


dimentions.


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.