You guys know i'm fucking around with unity to make my own core for a game.. I figured I'd update you as to what I'm doing with it so far... My Turn signals are totally fucked (have to re-write the shit to be compatible with the new system) and a few bugs abound that are visually annoying but generally not a problem as gameplay goes... Â Here's where I'm at with Traffic sim: startout! Â I've got the pathing network created; what this network does is "simulate" traffic patterns on the roads like you normally see in the real world; it allows my minions to roam around the map on the path without a pre-set pathing.. Meaning the little fuckers go where/how they want to in order to get around, including random lane changes set to happen randomly.. which is pretty cool, it basically means you need less spawners to populate the map since they can literally come from anywhere and "join" the road traffic. Â I have a few bugs in it that I don't like, easy enough to fix most of em just takes time.
For now though, I have a fully operational nav system, which includes the ability to pre-determine path options for the road segment (not the vehicle), spawners and destroyers on the map to kill vehicles and create them. Â My vehicles (except buses) run on a fully "random" nav system, I have no control over where they go, they will just go till they find an end point.. Their detection arrays work fairly well (have to tweak it for side-swiping one another) when my hit one another they do not do em4 style "stop" and AI dead, instead they try to ram thru the obstruction if the detector array doesnt get em (one of ze bugs I have to fix).
The Player vehicle aside from being drivable now also has the ability to re-direct in multiple fashions, so you can turn em around, close down just the lane your in, or stop them if you don't want the traffic to move at all. Â Each one triggers a different light setup, which is purely visual. Â I still have to find a good way to give them dynamic lighting, right now i've got poly lighting only on them so that they don't fuck up performance. Â Real-time dynamic lighting is something that makes unity go to total shit. Â I have to tweak out the few minor bugs (most of em are visuals, none are "system breaking") and my vehicle nav system will be perfectly operational, it doesnt seem to consume all that much in resources so that's a good thing. Â
The good thing is the very same network that makes shit happen in the rear can be used on the front, meaning you can force cars into an "alternative" lane (so long as one exists and is available to them) using pretty much the same system I already have in place.
After that I have to come up with a way for the player (me) to move around the chick to see if i can't make all the required anims for her to do her thing, she walks and sits now but i want to have her do more dynamic shit, to do that i really need control over her, not just programming it (which is what she currently does, her movement is scripted).
After I have that sorted it's onto path finding for a point-and-click interaction, so instead of driving or manually walking the person you just click on them and click elsewhere to send em there... That part scares me b/c it's going to take some serious cleverness to make it stay on the paths heading to the primary tgt (where you clicked). Â I can designate "primary" and "secondary" pathing options for the thing, I just have no idea how I'm going to make it get the path it wants to take in real-time without chewing tons of resources to create that path. Â This part really worries me because of how complex it will be. Â I can code it, of that I have no doubt, i worry far more about whether or not the CPU load will skyrocket as a result of how it has to find it's paths... We'll see I guess
So that's essentially where I'm at with this project, imo not terrible progress but I'm trying to make my shit as "bulletproof" against crashes and major defects as well as keep the performance in check, in unity that is no small matter to do since it will let you do damn near anything you can come up with.. Only at a serious cost to performance if you push it's limits too far. Â So far everything that I've intended to do, I've been able to make work in a pretty clean fashion. Â Once I finish the ped/vehicle nav systems and get the chick doing her thing right I get to move onto the actual game aspect and change it from a physics/AI simulator into more of a game.. I kinda wanted to get all the "core" shit worked out before I moved into more shit since these systems are kinda critical to the "core" of the game.
Anywho, heres some pictures of what i've got going on atm.. Note: I removed most of the traffic vehicles from the spawners b/c this is a test of the network (the turn signals are still fucked up so i need to fix that before i put all the other shit back in). Â So no trans ams, no minivans, no pickups, no tractor trailers, no mustangs etc. will be visible in the screens, they still exist I just have to change their systems over from the old to the new one once I get the kinks out of it.
IMO not terrible progress for a lone guy working on it in his spare time;) Once again thank you potty for helping me out with anims, without it I'd still be struggling with that bs instead of working on the shit I really need to get sorted (AI behaviors).
You guys know i'm fucking around with unity to make my own core for a game.. I figured I'd update you as to what I'm doing with it so far... My Turn signals are totally fucked (have to re-write the shit to be compatible with the new system) and a few bugs abound that are visually annoying but generally not a problem as gameplay goes... Â Here's where I'm at with Traffic sim: startout! Â I've got the pathing network created; what this network does is "simulate" traffic patterns on the roads like you normally see in the real world; it allows my minions to roam around the map on the path without a pre-set pathing.. Meaning the little fuckers go where/how they want to in order to get around, including random lane changes set to happen randomly.. which is pretty cool, it basically means you need less spawners to populate the map since they can literally come from anywhere and "join" the road traffic. Â I have a few bugs in it that I don't like, easy enough to fix most of em just takes time.
For now though, I have a fully operational nav system, which includes the ability to pre-determine path options for the road segment (not the vehicle), spawners and destroyers on the map to kill vehicles and create them. Â My vehicles (except buses) run on a fully "random" nav system, I have no control over where they go, they will just go till they find an end point.. Their detection arrays work fairly well (have to tweak it for side-swiping one another) when my hit one another they do not do em4 style "stop" and AI dead, instead they try to ram thru the obstruction if the detector array doesnt get em (one of ze bugs I have to fix).
The Player vehicle aside from being drivable now also has the ability to re-direct in multiple fashions, so you can turn em around, close down just the lane your in, or stop them if you don't want the traffic to move at all. Â Each one triggers a different light setup, which is purely visual. Â I still have to find a good way to give them dynamic lighting, right now i've got poly lighting only on them so that they don't fuck up performance. Â Real-time dynamic lighting is something that makes unity go to total shit. Â I have to tweak out the few minor bugs (most of em are visuals, none are "system breaking") and my vehicle nav system will be perfectly operational, it doesnt seem to consume all that much in resources so that's a good thing. Â
The good thing is the very same network that makes shit happen in the rear can be used on the front, meaning you can force cars into an "alternative" lane (so long as one exists and is available to them) using pretty much the same system I already have in place.
After that I have to come up with a way for the player (me) to move around the chick to see if i can't make all the required anims for her to do her thing, she walks and sits now but i want to have her do more dynamic shit, to do that i really need control over her, not just programming it (which is what she currently does, her movement is scripted).
After I have that sorted it's onto path finding for a point-and-click interaction, so instead of driving or manually walking the person you just click on them and click elsewhere to send em there... That part scares me b/c it's going to take some serious cleverness to make it stay on the paths heading to the primary tgt (where you clicked). Â I can designate "primary" and "secondary" pathing options for the thing, I just have no idea how I'm going to make it get the path it wants to take in real-time without chewing tons of resources to create that path. Â This part really worries me because of how complex it will be. Â I can code it, of that I have no doubt, i worry far more about whether or not the CPU load will skyrocket as a result of how it has to find it's paths... We'll see I guess
So that's essentially where I'm at with this project, imo not terrible progress but I'm trying to make my shit as "bulletproof" against crashes and major defects as well as keep the performance in check, in unity that is no small matter to do since it will let you do damn near anything you can come up with.. Only at a serious cost to performance if you push it's limits too far. Â So far everything that I've intended to do, I've been able to make work in a pretty clean fashion. Â Once I finish the ped/vehicle nav systems and get the chick doing her thing right I get to move onto the actual game aspect and change it from a physics/AI simulator into more of a game.. I kinda wanted to get all the "core" shit worked out before I moved into more shit since these systems are kinda critical to the "core" of the game.
Anywho, heres some pictures of what i've got going on atm.. Note: I removed most of the traffic vehicles from the spawners b/c this is a test of the network (the turn signals are still fucked up so i need to fix that before i put all the other shit back in). Â So no trans ams, no minivans, no pickups, no tractor trailers, no mustangs etc. will be visible in the screens, they still exist I just have to change their systems over from the old to the new one once I get the kinks out of it.
IMO not terrible progress for a lone guy working on it in his spare time;) Once again thank you potty for helping me out with anims, without it I'd still be struggling with that bs instead of working on the shit I really need to get sorted (AI behaviors).
Â