Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Cabin Adventure Game

Discussion in 'Made With Unity' started by andrewc, Nov 25, 2008.

  1. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    Hello, I've been using Unity for a few months now and thought I'd show what I've been working on. It is an adventure game called The Cabin that is a work in progress.

    I must warn you that without a very good graphics card It will run real slow so sorry. You can download it at http://maplab.org/cabin/

    Please let me know what you think. If you want to know anything about it I'm happy to share and I will post any scripts that people want. Mostly you can just explore the environment right now and there is little game play but I hope you have fun trying it.

    Thanks

    Andrew

    http://maplab.org/cabin/
     
  2. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    Here are some screenshots...
     

    Attached Files:

  3. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    Another One
     

    Attached Files:

  4. Scrat

    Scrat

    Joined:
    Apr 20, 2008
    Posts:
    316
    Looks great!

    I couldn't download the game, server is too slow (10KB/s for downloading 72MB = :eek:)

    I really like your screenshots, you seem to have created a somehow very warm atmosphere in that chalet.

    I'll try to download the file another time because I think it's well worth a try :)
     
  5. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
  6. TouchSoft

    TouchSoft

    Joined:
    Oct 18, 2008
    Posts:
    218
    Looks very nice! Ran smoothly on my MacBook Pro.

    Question, is the smoke coming out a video rendered onto a texture?
     
  7. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    I don't have unity pro so what I did is change the texture with a for loop over and over like a filmstrip. The texture is on a plane with a script that makes it look at the player at all times so you never see the that it is just a plane.

    here is the filmstrip code:

    var theTexture: Texture[];
    var i: int = 0;
    var frametime: int = 1;
    var forLoop: int = 0;



    function Update () {
    if (frametime == 3) {
    if (i <= forLoop) {i ++;}
    else {i = 1;}
    renderer.material.SetTexture("_MainTex", theTexture);
    frametime = 1;
    }
    else { frametime ++;}

    }


    glad you liked it.
     
  8. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Impressions:

    The inside of the cabin is *very* nice! Nice modeling and texturing, though the texture resolutions are rather inconsistent. For example, the kitchen table has a resolution so low that it looks nasty. But otherwise really nice atmosphere indoor!

    Outdoor is not quite up to the same standard. The view over the valley is nice, but the lawn in front of the cabin looks terrible compared to the graphics quality indoor. Personally, I'd just loose the grass billboards completely. Right now, they make the grass about 5 times as high as grass on a lawn normally would be, plus the billboard colors blend very badly with the colors of the grass texture underneath. I'd expect the grass to be well kept too, so the spots of very high grass on top of an otherwise flat lawn just looks odd. If you want to keep the billboards, they need to be much smaller and much more densely distributed, and frankly that's probably not a good idea performance wise. That's why I'd simply lose them and just use texturing. It's your call of course. :)

    The different foot step sounds when walking on different materials work well, although when walking on the grass it sounds more like walking on gravel.

    Keep up the good work!
     
  9. chips

    chips

    Joined:
    Nov 30, 2007
    Posts:
    138
    The screen shots looked great, but 72mb took too long to be downloaded... :wink:
     
  10. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    The problem with your filmstrip code is that it's frame-rate dependent. When the framerate varies, the smoke animates at different speeds. This also means different computers will run it at different speeds. Also you have to manually change the "forLoop" variable when it could be done automatically. Also, normally you'd use Time.deltaTime to handle something like framerate-independence, but since in this case it's not changing every frame, it's easier to not use Update at all, but let Unity handle the timing. It would be better like this:

    Code (csharp):
    1. var theTexture : Texture[];
    2. var frameTime = .05; // How long each frame lasts, in seconds
    3. private var index = 0;
    4.  
    5. function Start () {
    6.     InvokeRepeating("AnimateTex", .01, frameTime);
    7. }
    8.  
    9. function AnimateTex () {
    10.     index = ++index % theTexture.Length;
    11.     renderer.material.SetTexture("_MainTex", theTexture[index]);
    12. }
    Although personally I'd prefer to see a particle system...the animated texture looks nice at first, but quickly becomes apparent that it's repeating the same animation every couple of seconds.

    I agree that the interior looks great, with some out-of-place excessively low-res textures. If those were fixed, it would look brilliant. For performance, I think you'd want to turn off the interior until the player gets close enough. Otherwise it's rendering everything all the time. It would probably be good to swap the outside graphics for a low-res substitute when the player is inside, as well.

    --Eric
     
  11. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    Thanks for the advice everyone.

    Runevision, Maybe I'll lose the grass in the yard. I see what you mean. Also if I made the yard look a bit more gravel like then the footsteps might make more sense.

    In terms of texture resolution I was trying to compress things as much as possible but I rendered these lightmapped textures out from maya at higher rez so I could bring some of them up a bit like the kitchen counter.

    If there are any others that stand out as really too low please let me know

    Eric5h5, thanks for that code, I will try to replace my old filmstrip code because it also bugged me that it would run slow.

    Thanks everyone I'll update the download when I fix those things.

    Andrew
     
  12. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    There is a new version of the game at maplab.org/cabin

    It should be up on the other server shortly. I incorporated a lot of the suggestions. Also I cleared most the grass out of the yard because there is going to be other structures there eventually. Thanks for the advice everyone and more is always welcome.
     
  13. IPete

    IPete

    Joined:
    May 15, 2008
    Posts:
    414
    Andrew,

    Thanks for posting this.

    My PC has an awesome graphics and CPU capability (not my Mac I'm afraid!). So I waited eagerly for the download, but then found out it is a mac verison only. Perhaps you could mention this in your thread at the top so others can decide whether to download it or not.

    Looks awesome though in the screen shots.
     
  14. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    Yeah sorry I forgot that unity could even make windows apps because I only have indie. I'll try and get a web version up in the next day or two.
     
  15. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    I put a new version up with this observation tower W.I.P. It starts in the tower which doesn't have a top yet so you can jump down the elevator shaft.
     

    Attached Files:

  16. Zante

    Zante

    Joined:
    Mar 29, 2008
    Posts:
    429
    Any news on the browser-based version?
     
  17. Dakta

    Dakta

    Joined:
    Apr 8, 2008
    Posts:
    492
    Looks amazing!

    Really slow download.......


    Awesome idea!