Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Blog: "Tech feature: Terrain geometry"
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#1
Blog: "Tech feature: Terrain geometry"

Starting on terrain!

http://frictionalgames.blogspot.com/2010...metry.html
11-04-2010, 07:36 PM
Find
TheLittleGarfield Offline
Member

Posts: 120
Threads: 2
Joined: Dec 2009
Reputation: 0
#2
RE: Blog: "Tech feature: Terrain geometry"

Hmmm... Deserts, cool.

Meh...
11-04-2010, 08:06 PM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#3
RE: Blog: "Tech feature: Terrain geometry"

Although most of the technical bits of that articles goes over my head, it's very interesting to read anyway. Please keep us updated with more articles like this!
11-05-2010, 03:19 AM
Find
WindexGlow Offline
Posting Freak

Posts: 1,108
Threads: 70
Joined: Mar 2007
Reputation: -5
#4
RE: Blog: "Tech feature: Terrain geometry"

The jpeg conversion didn't seem fair - looks like you added a ton of noise to it. In the slightest the lack of accuracy would have caused blocky formations, not total erratic values.

Please -REP me.
Honestly, please do. I want to see how low I can go!!
Ignore that error message too. Just ignore it and keep going to give me -rep.
11-06-2010, 12:02 AM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#5
RE: Blog: "Tech featuTerrain geometry"

(11-06-2010, 12:02 AM)WindexGlow Wrote: The jpeg conversion didn't seem fair - looks like you added a ton of noise to it. In the slightest the lack of accuracy would have caused blocky formations, not total erratic values.

well it was fair Smile the way it is saved jpeg just does not work. I am not sure any lossy image format would.
11-06-2010, 01:03 AM
Find
WindexGlow Offline
Posting Freak

Posts: 1,108
Threads: 70
Joined: Mar 2007
Reputation: -5
#6
RE: Blog: "Tech featuTerrain geometry"

(11-06-2010, 01:03 AM)Thomas Wrote:
(11-06-2010, 12:02 AM)WindexGlow Wrote: The jpeg conversion didn't seem fair - looks like you added a ton of noise to it. In the slightest the lack of accuracy would have caused blocky formations, not total erratic values.

well it was fair Smile the way it is saved jpeg just does not work. I am not sure any lossy image format would.

Yes, but how do you go from
http://1.bp.blogspot.com/_QfesHslH-uc/TN..._24bit.jpg

to
http://1.bp.blogspot.com/_QfesHslH-uc/TN..._24bit.jpg

I understand (been making procedural terrain my self, 32bit RGBA. 8bit caused odd steps on my terrain, too few bits) that jpeg will lose data over time with saves & messes color up, but all that will do is make it blocker looking - not completely invert colors.

I'm not denying the fact that jpeg is a poor choice for heightmaps. I'm just curious as to *how* you could make a jpeg like that without putting noise in.

Please -REP me.
Honestly, please do. I want to see how low I can go!!
Ignore that error message too. Just ignore it and keep going to give me -rep.
11-06-2010, 05:52 AM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#7
RE: Blog: "Tech feature: Terrain geometry"

That's because it's RGB packed.
11-06-2010, 04:04 PM
Find
WindexGlow Offline
Posting Freak

Posts: 1,108
Threads: 70
Joined: Mar 2007
Reputation: -5
#8
RE: Blog: "Tech feature: Terrain geometry"

Here is a 1024x1024 perlin I generated. In photoshop I resized it (billinear) to 64x64.
I than resized it (billinaer) to 1024x1024
I than saved it as jpeg at 20% (Very shitty quality, very small filesize)

It didn't create drastic changes. It looks blocky. But it doesn't have noise to it.
http://img526.imageshack.us/img526/6449/24725462.jpg

Please -REP me.
Honestly, please do. I want to see how low I can go!!
Ignore that error message too. Just ignore it and keep going to give me -rep.
11-06-2010, 05:58 PM
Find
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#9
RE: Blog: "Tech feature: Terrain geometry"

Again, it's because the RGB packed image was encoded to JPEG. What is shown in the corner of this screenshot is the unpacked image.

If you opened the JPG image in a normal image editor it would show up as noise of various colors because it was RGB packed.
(This post was last modified: 11-06-2010, 06:40 PM by nofsky.)
11-06-2010, 06:38 PM
Find
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#10
RE: Blog: "Tech feature: Terrain geometry"

Yeah, the reason for noise is the the packing.

R contains the 8 highest most influential bits in a 24 bit decimal number, G the 8 next and so on.

So when R is not the same as the orginal (as happens in jpeg compression) there are vast changes in the final value, leading to the noise.

I expected this, but was not 100% sure, so figured might as well test Smile
11-06-2010, 10:20 PM
Find




Users browsing this thread: 1 Guest(s)