Procedural generated environments.

Discussion in 'TZT GameDev' started by xanontz, Jan 2, 2018.

  1. xanontz

    xanontz Juggalo Gang Member

    Post Count:
    7,678
    Anyone here with experience? Thoughts on day dreaming idea.

    The idea would be taking GPS data, routes from garmin/phones etc (.gpx files from popular recording apps like MapMyRun, Strava, Nike/Garmin watches etc etc) and then creating a virtual world off that file.

    It would be aimed at the fitness world, which means near unlimited income potential since fucking no one spends more money uselessly than people trying to pay to look healthy. Could make it actually worth what likely would be a ton of work.
    The biggest option out there for something similar to this is Zwift, skyrocketing from 200,000 subscribers end of 2016 to nearly half a million at end of 2017.



    They created 3 maps using real GPS data from a few spots (london, richmond, a random volcano island in a pacific) and created 3d worlds out of them, with some semi-related scenery/buildings but mostly just relatively generic forest/mountain scenery to fill out the views. Nothing spectacular, but not ugly.


    You just get on a treadmill or exercise bike/trainer and it BT feeds the data to the equipment that adjusts resistances accordingly to changes in incline. (much more popular for bikes since for a few hundred bucks you can buy a trainer you just set up any bike on, just a few people using it for running since treadmills are pricey and ones that can change inclines is even pricier)
    Now I actually know someone with extensive experience in that end, programming exercise computers and wireless protocols.


    We just thought about the idea of adding a little more interesting visuals to the idea. When using this program you get on and you have very little option of what you want to experience.

    What about a program that you select from any work out you've already done and it just creates the world you see?


    There's a subdivision by me that has is a square box, 3 miles around, with the top end being about a 100' higher elevation than the bottom end. So it forms this perfect interval work out, 100' climb, 5 min rest circling around downhill back to the road that climbs back up.
    Or there's a pretty set 100km flat loop that's sort of a default go to route for a ton of people in the area.

    Thinking it would be fun for winter/rainy days to hope on trainer and go 'hmm, i feel like that interval loop today, lets ride that, and lets set it for a urban themed environment'
     
  2. Agrul

    Agrul TZT Neckbeard Lord

    Post Count:
    48,117
    I dicked around with a procedural dungeon generator a bit ago on here and Searyx built/is building a dungeon creator for his game.

    Do the .gpx files have height data in them? I've tried using open street map to get height data before but it's hit-or-miss depending on whether someone has mapped out the area you want.

    Do you need 3d or just 2d? i.e., do you need tunnels? Tunnels/overhangs/cliffs/etc are considerably harder (require more complex algorithms like marching cubes) than just generating a landscape based on a heightmap or generating a procedural heightmap.

    If you already have a height map you can easily convert it directly into a 2d polygonal surface in Unity or something and procedurally texture it with Perlin noise and a bunch of interpolated repeating textures or something to make it look nice. If you don't have a heightmap you can still pretty easily use Perlin noise etc to generate one.
     
  3. Agrul

    Agrul TZT Neckbeard Lord

    Post Count:
    48,117
  4. xanontz

    xanontz Juggalo Gang Member

    Post Count:
    7,678
    Some good stuffs, Will have to do a little dabbling, way out of my league though, but seems like it's not a crazy idea that would be silly to even try.

    The typical gpx files definitely have elevation data, probably even more important than a map, how many feet you've climbed can be more important than miles you've rode haha.

    3D definitely over 2d. Even though 2d maps would be pretty bad ass looking and could be really coolly stylized (and probably still be in a 3d environment naturally but just 2d looking models, cell shading or something like that.) For mass appeal 3D would be where to start. But the general idea here is the whole user created content thing and if it took off naturally the option to set to a 2d style environment would be there down the line.
     
  5. Agrul

    Agrul TZT Neckbeard Lord

    Post Count:
    48,117
    landscape.png here's a simple 2d blender example just using noise, took like 30 seconds