Live data from Hacker News

Spaceship Generator

github.com

51–60 of 132 posts

Re: Spaceship Generator

#51

I love that the ships look more like "skyscrapers in space" then airplane like spaceships we usually see in tv shows/movies. This is most likely (according to multiple hard scifi authors) a much more realistic depiction of how spaceships are going to look like. Example given: The Expanse - "Flip and Burn" https://www.youtube.com/watch?v=X4EiW1bHwsQ

Some of the designs remind me of the Earthforce ships from Babylon 5, a few of the carriers in the Wing Commander games, or some of them in Sins of a Solar Empire.

Re: Spaceship Generator

#54
post #30
post #22

There is an error in script. seed = 'tweer' obj = generate_spaceship(seed) Python can't redefine functions as variables. Seed is a function.

i'm not the author but i frequently code in python and am unable to understand what you're saying from that snipped of code. 1. you can overwrite everything in python 2. seed has been set to a string 3. obj uses the value of previously set 'seed' variable, which should be a string at that point. its not a good idea, like overwriting the id variable, but it should work... and just in case somebody wonders: its still p…

'seed' is explicitly imported on line 18, then overwritten on line 736, and yet it's used as a function on line 526. As far as I can tell, that is an error.

    >>> from random import seed
    >>> def f(): return seed(10)
    >>> seed = 50
    >>> f()
    Traceback (most recent call last):
      File "", line 1, in 
        f()
      File "", line 1, in f
        def f(): return seed(10)
    TypeError: 'int' object is not callable
    >>> 
I haven't run the script, so take this with a grain of salt.

EDIT: Since generate_spaceship is always called with an empty random_seed parameter, this error won't happen when the script is run.

Re: Spaceship Generator

#55
Awesome stuff. Would love to see concept artists incorporating procedural generated assets in their workflow. Produce 100 samples like this, teach the computer which ones they prefer, produce 100 more, take a few and refine them by hand.

Re: Spaceship Generator

#57

Awesome stuff. Would love to see concept artists incorporating procedural generated assets in their workflow. Produce 100 samples like this, teach the computer which ones they prefer, produce 100 more, take a few and refine them by hand.

A lot of artists in various industries use Alchemy to generate ideas like this.

I like to use the ms reading on my stopwatch when I don't have anything else nearby. I'll draw up a few scales like inorganic organic, long short, heavily armed unarmed, and then get a 0-99 ms reading for each by pausing my stopwatch.

Edit: Example. https://www.instagram.com/p/BG0Gr5BRBs7/

The same can be done for character gen, scenario gen, life choices :), etc.

Re: Spaceship Generator

#58

Sadly it doesn't seem to generate UVs for the models. But using the cube projection in Blender seems to do an OK job. Add a skybox and a couple of simple particle effects in PlayCanvas. And we have some WebGL spaceships :-) https://playcanv.as/p/kZtPZpnH/

[deleted]

Re: Spaceship Generator

#60
post #2

Very cute, although the ships look samish (would probably be interesting to start with different base templates etc. Still, it's only a few steps away from "random British 1970s SF book cover".

Do you have a link to the book cover generator? Or is that a metaphor?

You might like this: http://thrilling-tales.webomator.com/derange-o-lab/pulp-o-mi...
Post reply on HN