Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Unity Go Kart Demo - Web Playable

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
16 replies to this topic

#1 fatboxsoftware   Members   


Posted 14 June 2012 - 08:42 PM

Posted Image

So I've have some updates:
As of today I finally gotten a small LCD tach and speedo on the steering wheel working. As of right now it's not reading out RPMs. The MPHs are not rounding off properly (bad math code or something) so they jitter a bit on the panel. The track is standing in for the final path, it's textures and UVs are not complete either so you'll see some parts of the track where the grass/dirt blend is not broken up. Also all of the GUI elements on screen are not the final game UI. They are stand-in debugging items.

Integrated new speed-based vehicle handling (not sure how accurate it is yet)..but basically your steering becomes less sensitive the faster you go. I've also got a new sound manager working. You have engine sounds based on RPMs, you have a wind passing by you sound based on velocity. The sounds are not fully looped yet in Audacity, so you will hear some pops. I've also implemented a camera shake animation on the cameras based on velocity as well. The camera shake has been polished up in the latest build which isn't up tonight.

I've gotten feedback about implementing a handbrake for sliding through turns and feedback about adjusting the slip when taking turns and such. I'm working on, the physics calculation stuff is a little more complex so I usually tackle easier things first.

Next task is to get some raycast AI working in the scene (one's that can avoid obstacles dynamically, etc.). So not just the simple "follow a spline" fellows.

Anyways here's a link: HOME - James Arndt Portfolio

This is where I will host the game (so I will test it this way as well)....hit the button at the bottom called "Kart Race Experiment". It will take you directly to the current build.

#2 fatboxsoftware   Members   


Posted 14 June 2012 - 08:43 PM

Decided to start doing a daily video log (2-3 minute videos max) describing what I accomplished in the build that given day.
Also a good spot to share info, scripts and any implementation specifics with other folks.

#3 fatboxsoftware   Members   


Posted 15 June 2012 - 04:46 PM

Posted Image

Worked on the HTML for the web page interface for the game. Also I've worked more on the main menu interface, trying to get it closer to representing something useful. Today was mostly HTML and main menu work for the buttons, etc. I've also got a splash page working (with the fatbox logo) as the game menu loads.

As usual here's the link, go check it out! http://dl.dropbox.com/u/16956434/Kart_Race_Demo/Kart_Race.html

#4 Eigen   Members   


Posted 18 June 2012 - 03:33 AM

I really wanted to try this out but I can't seem to get past the main menu. I tried clicking "Go Race" several times but nothing happens. I also reloaded the page a couple of times. Also, in kart selection menu I only see the smoke (from the exhaust I presume) but not the kart itself. It looks like there is something flickering below the main menu graphics, but I'm not really sure. I only see a few pixels on the outer edges.

Oh, hmm, okay. I pressed "Go Race" now and it works. Maybe it hadn't loaded all of the stuff yet?

Also, could you make the camera changing buttons to something else than the Function keys. I'm on a Mac and these keys are used by the OS to do stuff, so the game doesn't get a chance.

The kart itself doesn't seem quite right. Even when doing flat out and turning as hard as possible, the kart doesn't drift or slide or anything. It actually feels like a totally different vehicle, like a car almost. Karts are supposed to be very light and agile and tailhappy of sorts. This needs a lot of work I think. I think it should be something like when you accelerate and turn, the backside should start to drift out pretty easily.

The kart model itself is very nice. As is the track texture, really beautiful :)

Keep up the good work, I like it so far!

#5 fatboxsoftware   Members   


Posted 18 June 2012 - 08:59 PM

I've migrated all of the HTML code to run embedded on a new web site now. It's a site purely dedicated to my Unity development work.

Posted Image

You can find the current builds of the Kart Demo at this link (got a proper URL and all now):


This is where I'll be updating the build each night with updates as I progress.

#6 fatboxsoftware   Members   


Posted 18 June 2012 - 09:00 PM

@Eigen - All very good critiques. You're right on the money with your observations. I'm working hard to tweak everything into a more realistic state. This is my first week of setting everything up.

#7 fatboxsoftware   Members   


Posted 19 June 2012 - 06:28 PM

Posted Image

Build has been updated today with actual updating GUI elements for lap counting and lap timing. It's rough right now, and not the final look of the text in the UI, but the functionality is working (only slightly buggy Posted Image. I've also implemented some nice UI graphics that slide in quick when you hit a checkpoint in the road. They ease in/fade in and ease/fade out when triggered onto the screen.

Check the latest build at www.fatboxsoftware.com

Edited by fatBOX Software, 19 June 2012 - 06:28 PM.

#8 fatboxsoftware   Members   


Posted 20 June 2012 - 10:45 PM

Posted Image

Nightly build again. I've tweaked the vehicle physics quite a bit (still not there yet)...speed based tire grip and steering sensitivity scripting today. I've also ditched the realtime shadows for now...until the AI are in and functioning under stress tests tomorrow. Also you may notice at this moment there are invisible barriers on the sides of the roads...it's only temporary.

You can can test and play at: http://www.fatboxsoftware.com

Edited by fatBOX Software, 20 June 2012 - 10:45 PM.

#9 fatboxsoftware   Members   


Posted 21 June 2012 - 07:20 PM

Posted Image

Visually you'll see some changes in tonight's build. You'll notice I've started to work on the environment and got some stuff in there. Maybe one more week and the entire environment will be complete. On the scripting side I've implemented some more blocks of code to handle slippage at higher speeds...this physics scripting is intense stuff. I'm starting to learn to wear the scripting hat. I spend all day coding/testing stuff and then I'm thinking "man I wish I had an artist to handle all of that silly environment art lol". I love it...it's why I do it.

So bullet point 1.) environment art update 2.) physics for higher speed slippage, etc. accomplished today. Oh and if you find you are interpenetrating art geometry it's because I haven't gotten around to opening up the collision file and updating it to match the new art. All in good time.

As usual you can test the updated build at: www.fatboxsoftware.com

Edited by fatBOX Software, 21 June 2012 - 07:21 PM.

#10 Eigen   Members   


Posted 22 June 2012 - 04:09 AM

I can't seem to get past the keyboard controls screen. It just hangs there. This was an issue with the previous builds as well, but then it would suddenly/occasionally bring up the actual game. Not any more. I've tried refreshing the game about ten times, just in case something hadn't been loaded yet or whatever.

The Unity loader doesn't stay visible for long either, only for a few seconds. Are you sure it's done loading this quickly?

I'm using pretty much the latest version of Unity WebPlayer with Safari on Mac OS X 10.7.3

I really want to try it out ... Posted Image

Once I was done writing this post I gave it one last go, and it actually started playing the engine sound but the graphics were all messed up and the whole system became unresponsive (it crashed the OS but the sound kept playing). I had to reboot. Dare I try again?

Edit: Okay, I waited a couple of minutes in the main menu before starting the race and now it seems to work.
Edit 2: Crossing side of the track seems to glitch up the physics. At one point I got stuck with the nose of the kart pointing towards the sky. No way to reset, right?

Posted Image

Edited by Eigen, 22 June 2012 - 04:19 AM.

#11 fatboxsoftware   Members   


Posted 23 June 2012 - 12:19 PM


Edited by fatBOX Software, 23 June 2012 - 12:21 PM.

#12 fatboxsoftware   Members   


Posted 23 June 2012 - 12:19 PM

DELETED - due to glitch in posting didn't show my posts in the thread so I kept retrying.

Edited by fatBOX Software, 23 June 2012 - 12:21 PM.

#13 fatboxsoftware   Members   


Posted 23 June 2012 - 12:20 PM

Posted Image

I have AI vehicles working in the build now! There are a few things to note. They both share the same Waypoint spline, so they follow the exact same path. That will be fixed later on as they all get unique paths. Their art wheels are not turning with the wheelcolliders, so no wheel movement (will be fixed as well in the future). Turning is not as mathematically smoothed out as it could be yet, so they will jerk the steering wheel each time they seek that next waypoint. Also I do have the variables scripted in to rubber band them..basically adjust their speed and aggression at specific points. These attributes are not honed in yet in this build, so you won't notice huge drops in speed (it's there though). Finally you'll noticed I implemented a neat little standard startup countdown. A script simply disables player and AI control, hides GUI textures and sound, until a yield WaitForSeconds function says they are enabled. Practical and simple.

The build can be tested at: www.fatboxsoftware.com

#14 fatboxsoftware   Members   


Posted 23 June 2012 - 12:29 PM

@Eigen - You are awesome. You're giving some of the best feedback I've gotten all along. Okay, well these issues are apparent to me as well. I noticed the Unity loader screen wips by, and it's a 24MB executable, so I think that's way too fast. I will have to track down that issue. If you have any insights into this by all means shoot me a response. Second about the collision glitches, yes those were to be expected as I'm constantly tweaking physics materials for the walls and car rigidbody. I'm still working each day on tweaking the sliding, the physics, etc. Some days wierd issues might end up in the build like that. I'm working every day to improve it and wipe out these issues and bugs though. The loading screen one...well it feels like when you click on the Go Race button it doesn't load the level properly or it hangs. The code is so simple. Once you click the "Go Race" button in the main menu it's an application.LoadLevel to the keyboard controls GUI scene. The keyboard controls scene has a yieldWaitForSeconds in it and then application.LoadLevel for the main racing level. So simple. Only thing I can think is maybe the level doesn't get loaded all of the way so it locks up?

Edited by fatBOX Software, 23 June 2012 - 12:30 PM.

#15 fatboxsoftware   Members   


Posted 23 June 2012 - 01:29 PM

I seemed to have completely fixed it by turning off "streamed" in the build settings. Now it all preloads up front. That was the issue...he world wasn't loaded in yet and because of the streaming you were able to get ahead of where it was actually loaded up to.

#16 fatboxsoftware   Members   


Posted 04 July 2012 - 02:59 PM

So I created the Kart Driver model, and today am in the process of rigging him in Maya. You’ll notice some odd deformations around the legs.
That’s because I’m right smack in the middle of adjusting the default weighting on the model. Looking forward to animating this guy to ride around in the Karts!

Posted Image

#17 fatboxsoftware   Members   


Posted 06 July 2012 - 08:26 PM

Posted Image

Okay so I've been busy working on another iPad project for myself, so the Kart Demo got neglected for a few days. I came back with a vengeance and smoothed out the physics on the player vehicle and the AI now path smoother (they also have turning wheels now!). Still need a new set of Waypoints for the blue AI. I've also implemented a new driver model (completed modeling, normal mapping, rigging and animations, etc.)...the same model has been applied to the AI. It was a bit tricky getting the AI models to play their animations without having any keyboard control input to trigger them.

I ended up hooking into the existing script for Waypoints that controls turning of the AI wheels/car ( I used it's wheelAngle variable to to set an "if-else"). This would readout a numeric degree of that variable, which I could read from and say, well if the degree number is +15 or greater play the "TurnRight" animation... else if the degree number is -15 or less play the "TurnRight" animation, else play the "Idle" animation (which is a static animation right now.)

I've also got the mini-map working in the build too. It's actually pretty solid right now. I may polish the little blip texture a bit, but it's pretty much completed. I used a second GUI camera in scene, set its viewport clipping so it only appears in a section of my game window. I set the camera depth for the mini-map to always render on top of the game camera, placed in a GUITexture for the map of the track, placed (3) 16x16 blip textures for AI and the player and created simple code that makes them follow their assigned transforms (i.e. player or AI vehicles).

I feel it's really coming along now, starting to look like something finally!

Check the latest build out at : http://www.fatboxsoftware.com/#/kart-demo/4565740225

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.