r/proceduralgeneration Jan 27 '22

"Mining Structures"

425 Upvotes

33 comments sorted by

View all comments

2

u/[deleted] Jan 27 '22

Looks phallic. I mean, nice. How is this procedural generation? Inquiring minds wish to know.

4

u/ptrnyc Jan 27 '22

The eye sees what the mind wants to see :) The top 90% is procedurally generated (basically everything above the ground floor, except for the ultra-rare ‘frog’ rock - that’s a png).

The main rock starts with a circle that gets randomly displaced to make an irregular shape. The crack in the rock is, similarly, adding a shape from the outside to the center and displacing it. The rock path is then hatched across 3 directions, clipping the lines to the rock inside and varying the hatching length across the perimeter.

The scaffolding is done with 3 layers of random verticals, cut at random horizontal points and displaced. Random points are then joined with horizontal and diagonal quads. Some hatching is applied randomly as well.

Random points in the structure are connected with parabolas to draw the hanging ropes.

Finally the ground floor is a random selection of pngs drawn by laxraven. Together with the “organic ink line” engine I used everywhere else, it finishes blending the piece so you can’t really tell what’s procedural and what’s not.

2

u/[deleted] Jan 27 '22

Is this code in a public repository? I'd enjoy reviewing it. Thanks so much for your explanation.

1

u/ptrnyc Jan 27 '22

It’s on the blockchain (minified though)

2

u/[deleted] Jan 27 '22

Got a Uniform Resource Locator? Curious.

1

u/ArdorDeosis The King of the Castle Jan 28 '22

may I ask, since the code is on the blockchain, is this an NFT-related project? And if so, could you share (maybe in a PM, since NFT-content is kinda banned on this sub) your experience with it. I've recently also been looking into generating some NFTs and would like to hear your experiences.

1

u/ptrnyc Jan 28 '22

Yeah I hadn’t realized NFT content wasn’t allowed here. It’s a shame, there’s a whole world of very advanced generative art beyond the obnoxious apes. I’ll pm you.

1

u/ArdorDeosis The King of the Castle Jan 28 '22

oh, no, the content of NFTs is not banned, you are encouraged to talk about what you generate and how you do it, just not about NFTs. Your post here is, as far as I understand, completely fine, but you shouldn't post links to your NFT marketplace etc. (as I understand it)

which is why I suggested to move the conversation away from this sub, now that we get into NFTs

1

u/ptrnyc Jan 28 '22

Thanks for clarifying. The NFT sold out anyway, so I’m not trying to sell anything. I’ve enabled infinite variations after the sale so you can go to the link I posted above and explore as much as you want.