Fred Never Had it so Fun – 1st Crack at Unity

Seems all the cool Flash Platform developers have been trying their hand at Unity these days, so I had to jump in and find out for myself what all the buzz was about.

So, after a week or so of trials and tribulations, I finally completed my first Unity project – a little driving game with a Flintstones style car. Why a Flintstones car? Well, I wanted to use my own models (or those provided by the Unity environment) and, the ugly truth be told, I pretty much suck at 3d modelling. At least a Flintstones car is just a bunch of simple primitives thrown together.

Some stuff I learned, experienced, or would like to learn:

  • Make liberal use of public variables and the Unity IDE. When I started, I found myself creating private vars and trying to define them with complicated and convoluted GameObject.Find() calls. Then I realized I could make the variable public and set its content with a dropdown box and suddenly life became a lot more fun.
  • Really not impressed with the Unity code editor. I’ve heard you can set your own, but haven’t yet taken the time to figure out how to do so.
  • For those of you like me who are both poor 3d modelers and just plain poor and have Swift3D, here’s a quick workflow tip. Create your models in Swift, export to .dae (export object to papervision3d), import the .dae into Blender (free and opensource 3d software) then save the file as a .blend in your unity project assets directory. Unity will import .blend files natively. Sure, I could just learn Blender and cut out the middle man, but the learning curve’s a bit steep and I wanted to focus on Unity not modelling. Don’t worry, it’s on my TODO list…
  • The worst experience: I’m not sure what happened – there was no crash or error logged, but halfway or so through the development process I closed Unity. When I opened it back up, it couldn’t read my project’s database. Thankfully, my models and scripts were still there, but I had to create a new project, recreate the terrain, reattach the scripts etc. Even for such a small thing as this, that was an extra day’s worth of re-work. If this had been a huge complex commercial project a disaster like that could have added weeks to the deadline potentially losing a lot of money. Makes me a bit weary shelling out the 1500 bucks on the pro version. But I guess weird shit happens all the time with all software. You pays your money and you takes your chances…
  • Still a bit unclear on WheelCollider physics. I’d really like to make a car that doesn’t drive up 90 degree angles. I’m sure it has to do with adjusting friction, but when I played around with it, I found I made the vehicle either undrivable or worse when it comes to climbing up terrains. A bit more research needed here.

While I can’t say I’d be willing to give up Flash for a career in 3d game development (I love the variety Flash offers – you may be making a game one day then a website, RIA, or mobile app the next – beautiful), I’m definitely digging Unity and look forward to doing some more with it.

For anyone who may have missed the link earlier, you can check out the experiment here. Of course you’ll need the Unity plugin. Oh, and make sure you work up a good head of steam going around that first corner – you’ll need it to make it over the Fiery Pit of Doom…

14 Comments »

  1. Abraham says:

    Nice :) I don’t exactly know why, but seeing someone else’s experiments with Unity just inspires me, even if they are just simple examples.

    I’m also learning Unity coming from the Flash World (I’m still very basic), it’s a really nice experience because it made me learn and use C# and, with that, Visual Studio (here’s a way to integrate them with Unity http://bit.ly/8lRnZc).

    I had problems with Unity too, when trying to “paint” trees on the ground, it always crashed… but it was fixed updating to latest version. Hopefully that bug happened to you won’t show up again in the next update.

  2. Devon O. says:

    Thanks for the comments, Abraham. I’m surprised, coming from the Flash world, you went with C# when Unity’s flavor of javascript is nearly identical to actionscript.

    I like the idea on your blog of connecting Flash to Unity via the browser (but your example isn’t working). I was thinking of doing something like that myself, but you just gave me a head start with the scripting.

    I’ve heard other complaints about Unity being a bit buggy, but it seems to be improved with each release. Looking forward to my next project already..

  3. Welcome to 3D heaven!!! I added your entry to Burn Rubber Beyottches- Tribute to driving in Unity. You can also find several references to driving tutorials in that entry including some WheelCollider Physics tips and tutorials. http://infiniteunity3d.com/burn-rubber-beiiyotches-a-tribute-to-unity-driving-games/

    I look forward to seeing what you build!

  4. [...] Fred never had it so Fun- First Crack at Unity creates a “Caveman driving game” In an early Unity experiment from a Flash developer’s point of view [...]

  5. Devon O. says:

    Thanks for the entry, IU3D! And for the link as well – lots of great stuff to get started digging through…

  6. [...] reading here : Fred Never had it so Fun- First crack at Unity Share and [...]

  7. [...] web.   Continue Reading Bullsh!t Unity Rant.   and compare it to a more pleased response from Fred Never had it so Fun1st Crack at Unity and share your feedback below about your Flash to Unity [...]

  8. samBrown says:

    I think Unity is an amazing tool to have in the toolbox of any Flasher.

    Dittos on the script editor in Unity, but I did find a decent alternative – UnityDevelop (cousin of FalshDevelop) thanks to the guys over at Blurst…

    http://technology.blurst.com/unitydevelop-javascript-editor/

  9. Greg says:

    Unity will forever be a terrible application in my eyes, until they release a Linux version of their authoring program, and their web plugin. I can’t even play your experiment because of this horrible fact.

    Why can’t they (Unity Developers) be more like ShiVa ( http://www.stonetrip.com ) ? The ShiVa web player, as well as their stand-alone desktop player, work perfectly fine in all three desktop operating systems – Linux, Mac, and Windows!

    They are also avidly developing an authoring tool that will be just as cross-compatible, and will be releasing that (ShiVa 2.0) sometime around Q4 2010 – Q1 2011.

    That’s a lot more than what I can say Unity is developing. I’ve talked to them about a Linux authoring tool, or even just a web player in a Linux flavor, but they have absolutely NO interest in pursuing this.

    I believe Stonetrip (the creators of ShiVa), will overtake them because of this. Stonetrip can clearly see the future and because they offer support for all operating systems, I have no doubt they will become the standard for 3D web applications.

    Linux is the most used operating system around the world (excluding U.S. and Europe) including developing countries such as India and China. When these developing countries become as advanced and technological as the U.S. and Europe, (which will occur in less than 10 years the way things are going) with the vast majority using Linux, what does that say for web application developers? That’s an entire untapped market of billions of people.

    Until Unity shows interest in Linux, I will not show interest in Unity. ShiVa offers more advanced features, and I will stick with them until (IF) something better ever comes along.

    ~ Greg

  10. Devon O. says:

    @Sam – thanks for that great editor link. I use FlashDevelop on a daily basis, so a modified version for Unity is exactly what I was looking for.

    @Greg – Have to admit, not being a Linux user myself, I rarely give it much thought. Some interesting points though. And I’m going to check out ShiVa. Surprised I haven’t heard of it before.

  11. AngryAnt says:

    Whenever you find a bug in Unity (especially one as severe as the one you found), please take a few minutes to try and recall what lead up to the incident and try if you can reproduce it. Then report it using the bug reporter tool.

    While we do a lot of automated as well as manual testig in house, we simply cannot cover all bases – like everyone else.

    We’ll try to get in as many bugfixes as possible on top of feature additions, but deal breakers such as the one you found ofcourse take priority.

    Oh and you can set up Unity to use your favourite code editor in the application settings. We merely include a standard one for those who have not made their choise yet. Personally I use TextMate on the mac – although MonoDevelop is showing a lot of promise.

  12. Good post.

    I pretty much switched to C# just because of how bad the unity script editor was (using visual studio express C#). Having code completion and better debugging tools was all it took. I am still a noob, but having good 3d assets with animations really adds to the production time with what I have done.

    I enjoyed the Flinstone ride.

  13. mellowMarco says:

    Well, without your post I would not been aware of unity… Anyway, I am probably not cool ;)

    I donwloaded it, amazing at first – but generally spoken – you are right: Flash is more versatile. Getting into some serious 3d game development requires a team. For instance: some guy with Blender experience for the models *wink*

    :)

    cheers,
    marco

  14. [...] Fred never had it so Fun- First Crack at Unity creates a “Caveman driving game” In an early Unity experiment from a Flash developer’s point of view [...]

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

Devon O. Wolfgang

Technical Reviewer of “The Essential Guide to Flash CS4 AIR Development”

Contributing Author of “Flash AS3 for Interactive Agencies”

Senior Flash Engineer PopCap Games, International Ltd.

Portfolio

UV Scrolling in Starling


Obviously this could come in pretty darned handy for space games, side scrollers, etc, etc[...]

Drawing on Stuff in Away3D 4.0

So, Easter Day, I thought I’d sit down and make a little ‘Paint on an Egg and Send it to Your Friend’ app.

Santabot: A Unity3D Flash Game


All right, so a Christmas game like “Santabot vs. The Flying Saucers from Mars” may be a day late[...]

Magnify – a jQuery Plugin


Let me begin by saying right up front, I have not given up on Flash[...]

It’s a Starling Halloween


Getting some practice for the upcoming Zombie Apocalypse[...]

Getting Started with Proscenium

So I had a chance this weekend to sit down and play around with Adobe’s new 3D framework for Stage3D, Proscenium, and thought I’d share a few of the results (a word of caution, there are no preloaders for any of the examples and may load a bit slowly). The first shows some reflections and [...]

Particle Editor for Starling Framework

An in-browser particle editor for the Starling 2D Framework for Flash Player 11.

So Long and Thanks for all the Flash on the Beach

So, another Flash on the Beach has just has just drawn to a close[...]

Game Development Tips from the Trenches of PopCap

Well, this is a post that’s a bit overdue, but, thanks to a well timed bank holiday, I finally had the opportunity to sit down and type up what I’ve been meaning to for some time now…

Old Skool Demoscene FX as 3D Textures

Many moons ago, I got the idea to create some demoscene plane deformation effects in Flash based on the formulas found here: http://www.iquilezles.org/www/articles/deform/deform.htm. I posted my less than desired results up on wonderfl. Thankfully, fellow wonderfl user, Hasufel, forked my attempt and optimized the hell out of it coming up with this. Well, today, for no [...]

Making The Gaming Scene (A Change in Careers)

And for my second blog post of the day, a much more personal note. After about three years of working with, what I would consider as objectively as possible, the best digital agency in Ireland, vStream Digital Media, I have made the immense career decision to leave the agency world and enter the arena of [...]

Feeling Lucky?

Images to dice, kick ascii style [...]

Adventures in Playbook Land

Adventures in Playbook Land


Now that the ordeal is over, I thought I’d take the time to sit down and share my account of what it was like to develop a Blackberry Playbook application using the Adobe Flex SDK[...]

Flash

Draw it for Me

So many ideas – so little time….

Kinect Application Running in Dublin

So, on Friday I just wrapped up our latest project at vStream Digital Media, a Kinect powered flipbook that lets users flip through the hand written notebooks of Philip Lynott of Thin Lizzy. The app uses OpenNI, runs in Adobe AIR and is currently on display at a pretty bitchin’ Phil Lynott exhibition running in [...]

Beach Ball Kinect Party

So we finally got a Kinect camera hooked up to a pc at work and, while it doesn’t seem to be legal to use it for commercial projects (but, hey, I’m no lawyer), the boss asked me to get it figured out and come up with some ideas just in case it would be feasible [...]