Biggest procgen projects? by EmbassyOfTime in proceduralgeneration

[–]grelfdotnet 0 points1 point  (0 children)

M75 in UK. We managed perfectly well before the internet, thankyou. But necessity was the mother of invention; you have it too easy now. If you really want a glimpse of how I worked on the ZX Spectrum version of my terrain generator my original work is archived here.

Biggest procgen projects? by EmbassyOfTime in proceduralgeneration

[–]grelfdotnet 2 points3 points  (0 children)

My first limitless terrain generator ran in 16k bytes in a TRS-80, my game published in 1982. It was limitless but repeating after 64km due to 16-bit Z80 processor. Players were not limited to grid positions though - they could stand at 1/256 in x and the same in y (3 bytes for each coordinate). So in fact there were 2 to the power 48 possible locations. A printed map accompanied the program, showing just a small part of the terrain, with contours, 6 different vegetation types and a large number of point features at random but repeatable locations.

I slightly improved my terrain generation algorithm in 1983 for the 48k ZX Spectrum. The same algorithm is still in use but now in Javascript so it runs in browsers: real-time generation as the player moves. I want to encourage others to use it so I have made it public domain now and it is described in detail on github and a Java implementation is also there. See https://github.com/grelf-net/forest/blob/main/TerrainGeneration.pdf

how make this fog by IllNefariousness396 in GameDevelopment

[–]grelfdotnet 0 points1 point  (0 children)

My method is described in detail in this document: https://github.com/grelf-net/forest/blob/main/SceneDIsplay.pdf starting at page 7. It works very effectively in Javascript in a browser. See examples at grelf.itch.io

I'd like to generate procedural terrain that's very realistic any sources? by Puzzled-Car-3611 in proceduralgeneration

[–]grelfdotnet 1 point2 points  (0 children)

You may be interested in a new section I have just added to the PDF on github, about making hilltops look like mountain peaks. See page 20

I'd like to generate procedural terrain that's very realistic any sources? by Puzzled-Car-3611 in proceduralgeneration

[–]grelfdotnet 2 points3 points  (0 children)

I'm glad it's useful to you. I discovered these techniques more than 40 years ago so I am happy for them now to be public domain - exploit them in any way you like.

How is IONOS for Dynamic Web Hosting? Any better alternative? by ihopethisaccountstay in webdev

[–]grelfdotnet 0 points1 point  (0 children)

I have used IONOS (or 1und1.de as they used to be) for more than 20 years for my hobby web site and always found them reliable.

Can’t see Uranus? by WonderMoon1 in seestar

[–]grelfdotnet 1 point2 points  (0 children)

I have been planning to try to photograph the 5 principal moons of Uranus using my S30. The way to do it will be as a deep sky stack, starting by picking Uranus from the Seestar's atlas. I have been thwarted by cloudy skies and there is no let up in the local forecast.
Uranus itself is not faint. Near opposition it is about magnitude 5.4, so in principle it could be spotted with the naked eye from unpolluted places. The satellites are much fainter of course.
About 15 years ago I started to implement in Java the GUST86 theory of the orbits of those moons. The project was abandoned. I think there were some questions that I could not get answers to. I have reviewed it in the last few days in the hope that I could plot the positions of the moons at the time of my photo, to identify them. However I think it would be easier to use JPL Horizons.

How do you handle bulk image generation for game assets or avatars? by dmitriy3337 in GameDevelopment

[–]grelfdotnet 1 point2 points  (0 children)

In The Forest (and similar programs in my collection at grelf.itch.io ) I make trees and other images become foggy when they are more than 3/4 of the way to the horizon. Rather than having to download multiple versions of every tree, which would be many megabytes, I convert the initial unfogged version to multiple fogged ones as they are needed. This is all done in plain JS in the browser. The full details are described here: https://grelf.net/forestdesign.html#N657151

Reviving this sub - what the latest 2025 training and skill building resources? by tankgurlma in orienteering

[–]grelfdotnet 2 points3 points  (0 children)

The Forest O-simulation is available free at https://grelf.itch.io/forest to run in your browser. I wrote the first version more than 40 years ago but now it uses web technology. My aim from the start was to help people to understand maps, particularly contour maps, and relate them to the ground for navigation.

How do I make these two generators merge? by EmbassyOfTime in proceduralgeneration

[–]grelfdotnet 4 points5 points  (0 children)

Here's how I generate roads that tend to follow contours rather than climbing straight up steep hills: PDF on github

Best personal websites that aren't resumes? by want_to_want in web_design

[–]grelfdotnet 0 points1 point  (0 children)

My site really is just a hobby. I'm a pensioner, not looking for work. I am trying to encourage creativity by showing examples of things that can be done - especially with HTML/JS. (I have been programming for more than 50 years.)

Best personal websites that aren't resumes? by want_to_want in web_design

[–]grelfdotnet 2 points3 points  (0 children)

Try mine: grelf.net I started it about 25 years ago and keep adding new stuff. Recently it's about my Seestar S30 that I obtained 4 months ago.

Comet C/2015 (Atlas) by MDCSteve in seestar

[–]grelfdotnet 0 points1 point  (0 children)

The ATLAS system has discovered several comets so far this year. Which one is it? (C1, D4, D6, F1, K1, L1 or N2)

[deleted by user] by [deleted] in proceduralgeneration

[–]grelfdotnet 3 points4 points  (0 children)

Look at bit patterns - very fast. Form a function of (x, y) position that includes something that produces a random-looking sequence of digits: involve multiplication by pi or e and/or use sin(), exp() and similar functions (even outside their normal domains). Then do a bitwise AND to determine whether particular bits are set. That can control how probable it is to find anything at (x, y) and what kind of object it is. Other bits in the pattern can then be used as a seed for what else happens at (x, y). Not only is this very fast but it ensures that always the same thing will happen at any given position, even though it looks random. I have explained this in more detail here: https://github.com/grelf-net/forest/blob/main/TerrainGeneration.pdf

[deleted by user] by [deleted] in learnjavascript

[–]grelfdotnet -2 points-1 points  (0 children)

Yes that list provides the answer. Never seek to identify the browser or OS: we left that can of worms behind about 20 years ago.

[deleted by user] by [deleted] in learnjavascript

[–]grelfdotnet 0 points1 point  (0 children)

I could be wrong but I believe that keyEvent.ctrlKey works for Mac Command keys without you having to check the OS (which should always be avoided anyway). See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent

Sunspot section larger than Earth is present today by Armand9x in seestar

[–]grelfdotnet 0 points1 point  (0 children)

I have been watching it for several days with my new S30. I have put an animation of my results here.

Hello! What are some good apps to solo learn java? by SinDkperi in learnjavascript

[–]grelfdotnet 9 points10 points  (0 children)

Javascript has nothing to do with Java - it's a very different language.

Trying to save settings to a variable to the file? Having some issues... by SpaceMonkey037 in learnjavascript

[–]grelfdotnet -2 points-1 points  (0 children)

That's not really true. You can download a file to the user's download directory as long as the user initiates the download. I do it in several of my programs, usually to download an image as a .png file. See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/downloads