Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Procedural 2d Space Ships  (Read 8676 times)
0 Members and 1 Guest are viewing this topic.
Offline andybennett
« Posted 2011-07-27 20:39:59 »

Hi all,

First post and first demo.

Looking to create a Full Thrust type game but with a lot more detail.

I love procedural content and this is what I have come up with so far to create unique looking spaceships - no two are alike!

http://dl.dropbox.com/u/36532713/ShipFactory.jar

Should work fine with the standard call 'java -jar ShipFactory.jar' - needs 1.6 or higher.

I am thinking that hull points, weapons systems, engines etc will be determined from the amount of colored pixels and set randomly. Players can then just keep generating these procedural ships until they find one they like, that fits within the current games point limitation and off they go.

Props go to Dave Bollinger - http://www.binarymoon.co.uk/2007/02/dave-bollingers-pixel-robots/ for putting me onto the idea.

UPDATE - New Ship Factory to sample - accessible via the dropbox link above.
Offline static_flashlight

Senior Newbie




Software Engineer


« Reply #1 - Posted 2011-07-27 22:20:20 »

Very nice!  The spacecraft architecture I'm seeing reminds me heavily of some of the Star Wars Mon Calamari cruisers.

Keep it up, can't wait to see a game using this technology!
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #2 - Posted 2011-07-27 22:40:25 »

Screenshots, please !
I bet some people are eager to see it, but not so eager to run the jar .

Don't forget: people are lazy as f*** .

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2011-07-28 00:47:21 »

You must be kidding, I'm currently on a project using prosedural graphics and you post this?! great! Cheesy

Offline andybennett
« Reply #4 - Posted 2011-07-28 06:51:18 »

Here we go some screen shots as requested...



Offline andybennett
« Reply #5 - Posted 2011-07-28 06:53:46 »

Very nice!  The spacecraft architecture I'm seeing reminds me heavily of some of the Star Wars Mon Calamari cruisers.

Keep it up, can't wait to see a game using this technology!

Thanks - it is interesting how changing the way the pixels are drawn i.e a vertical line vs a horizontal one vs a box etc changes the overall architecture
Offline andybennett
« Reply #6 - Posted 2011-07-30 12:38:19 »

Screenshot showing a generated fleet from fighter on the left to carrier on the right.

Offline michaels0620

Junior Newbie





« Reply #7 - Posted 2011-07-30 18:12:04 »

Ships look really good and also look good together as if they were constructed by the same species. Do you have plans to implement other algorithms to simulate ships by other species so they don't all look the same? For instance some ships with a less organic/more angular appearance?
Offline andybennett
« Reply #8 - Posted 2011-07-30 18:56:00 »

Ships look really good and also look good together as if they were constructed by the same species. Do you have plans to implement other algorithms to simulate ships by other species so they don't all look the same? For instance some ships with a less organic/more angular appearance?

I am experimenting all the time with the current algorithm and small changes do make large differences so distinguishing ships as if made by different species should definitely be possible. I seem to spend more time tweaking and generating ship after ship than actually getting on with the game development!

At the moment I am creating editors for each ship class which will provide options to change all the settings used in the algorithm, so it should allow endless possibilities.
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #9 - Posted 2011-07-30 21:55:45 »

Argh! I don't have a middle-mouse button Clueless

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 350
Projects: 3
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2011-07-30 22:21:44 »

Argh! I don't have a middle-mouse button Clueless
Do you not have a scroll wheel?!?!?!?

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #11 - Posted 2011-07-30 22:25:01 »


I do, but it's not easy to "click" with it, because of me buying an extraordinary special mouse that annoys me a lot. Cheesy

Offline ReBirth
« Reply #12 - Posted 2011-07-31 03:11:11 »

It's so funny that ppl buy something that annoy them. You can use a software to emulate that click, just google it.

Offline andybennett
« Reply #13 - Posted 2011-07-31 06:39:15 »


Will put some right click popups menus in the editors for those without scroll wheels.
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #14 - Posted 2011-07-31 07:47:54 »

It's so funny that ppl buy something that annoy them. You can use a software to emulate that click, just google it.

I'm well aware of that, but that's not really a viable solution Tongue 3DS Max is horribly hard to use with this

Offline andybennett
« Reply #15 - Posted 2011-07-31 09:20:13 »

Few screen shots of the editor screens I am currently working on...









I have designed them so that you can keep generating new designs but have made it possible to go back to previous ones. Where it says Ship X of X that will just keep increasing when new designs are made.

I have also been playing around with the algorithms used to generate the designs - mainly trying to make them more modular so that I can provide lots of config options in these screens. It's slow going - getting distracted far too easily!
Offline andybennett
« Reply #16 - Posted 2011-07-31 10:16:40 »

Examples of more angular ships



Offline andybennett
« Reply #17 - Posted 2011-08-01 19:53:56 »

Getting better I think...





More fill example



lol Whale ship!



and spiky ships

Offline krasse
« Reply #18 - Posted 2011-08-02 06:46:06 »

I also generate my ships procedurally but in a different way. These WIP videos might inspire or confuse Wink:

Textures
Basic Outline
Flying ships in action

Offline andybennett
« Reply #19 - Posted 2011-08-02 08:03:21 »

Nice work!
Offline andybennett
« Reply #20 - Posted 2011-08-02 19:50:45 »

I have a new update ready to try! - see the first post in this thread.

This update allows you to select a fleet of ships - Frigate, Destroyer, Cruiser, Battleship and Carrier.

On the Fleet Factory screen use the right click mouse button to access the menu.

Next - Will generate a new fleet if you are at the end of the list otherwise will move you one forwards.
Previous - Will take you back one step to a previously generated fleet.

Change X - This will take you to a separate ship factory for the selected ship type. From this screen you can generate new ships by right click menu or by using the mouse wheel. Find a ship you like then click Add To Fleet - this will replace the current ship type with one you have selected.

Edit Pixel Drawing Settings - Allows you to modify some of the settings that are used to generate the ships. Very much work in progress - if you try it I recommend you do small changes then generate a few ships then some more changes and so on. If you really mess up the settings just restart. Any changes you make to the settings on this screen will be in effect instantly.

Change Fleet Colour - Changes the colour of all ships to your choice.

On all screens you can save the window size and position via the Window menu - got fed up re-sizing and re-positioning the darn things every time I restarted. The application will store properties files in the same directory as the jar file.

I only have 4 stencils at the moment but I am going to add more when I get a chance. A mix of these, the length of the drawn pixels and the frequency should produce even more interesting designs.

Let me know how you get on!













Offline Abuse

JGO Knight


Medals: 13


falling into the abyss of reality


« Reply #21 - Posted 2011-08-02 20:10:03 »

We can play a game of 'name that space ship silhouette' later  Grin

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline andybennett
« Reply #22 - Posted 2011-08-02 20:14:23 »

Try these settings for more angular - straight looking ships

http://dl.dropbox.com/u/36532713/Update1/StraightAngluar.properties

Open the Drawing Configuration screen and Settings > Load

Offline andybennett
« Reply #23 - Posted 2011-08-02 20:17:24 »

We can play a game of 'name that space ship silhouette' later  Grin

Heh - I do get a bit excited when one of the generated designs reminds me of a vessel in a sci-fi program.

Very difficult to get Federation Star Trek shapes though as the algorithm is not really suited to having isolated sections like the nacelles. Might have to work on that.
Offline andybennett
« Reply #24 - Posted 2011-08-02 20:58:55 »

Full screenshot showing all windows open.

Offline Skarion
« Reply #25 - Posted 2011-08-15 18:24:03 »

Looks awesome!

If people wished to use this in their game, what would your requirements be? Smiley
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (35 views)
2014-10-15 16:18:58

TehJavaDev (66 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!