Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Hightmap generator

Author
Message
pavel_sv_1982
10
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 30th Aug 2020 01:41 Edited at: 30th Aug 2020 01:43
Where error?
Why do I get a disfigured map? Thanks.

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Aug 2020 04:00
pav,

did you write that code yourself or find it somewhere? what is it attempting to do or mtehod is it utilizing?

IE, what kind of "heightmap" is to be generated?

otherwise, i don't see a purpose for all of the iterations unless the goal is to pound the CPU as hard as it can?

i let it beat mine up for a minute while i was reviewing the code before i pulled the plug on it so any explanation would be appreciated.
[My Itch.io Home] | [#LowRezJamAGK2020]
[AGK Resource Directory] | [TGC @ GitHub]
[CODE lang=AGK] Your Code Here [/CODE] | [VIDEO=youtube] VideoID [/VIDEO]
pavel_sv_1982
10
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 30th Aug 2020 08:37 Edited at: 30th Aug 2020 09:38
I wrote this code myself.
It should generate a map and save the image.
It draws heights in the array and on the screen.
After the image is drawn, it saves the image.
But the image is broken. It's striped. This shouldn't be the case.
[edit]
last update. It is worked

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Aug 2020 13:40 Edited at: 30th Aug 2020 13:41
This post has been marked by the post author as the answer.
Quote: "it worked"

congrats.

that's an interesting resultt. it looks organic, like some martian cheese or something
[My Itch.io Home] | [#LowRezJamAGK2020]
[AGK Resource Directory] | [TGC @ GitHub]
[CODE lang=AGK] Your Code Here [/CODE] | [VIDEO=youtube] VideoID [/VIDEO]

Login to post a reply

Server time is: 2024-03-28 23:43:10
Your offset time is: 2024-03-28 23:43:10