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

Virtual Gallery

Discussion in 'Made With Unity' started by boxy, Feb 10, 2011.

  1. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Hello

    After some time out of the loop I've been meaning to make something like this since Unity v1! I used the opportunity to test lightmapping and occlusion culling during the latest beta test. I'd love to know if it works OK for everyone:

    http://www.boxy.co.uk/VirtualGallery/virtualgallery.html

    Thanks for looking. :)
     
    Last edited: Feb 10, 2011
  2. Larsa334

    Larsa334

    Joined:
    Jan 7, 2011
    Posts:
    39
    Brilliantly executed idea!! :)

    No problem with the framerate or anything else.The boxing rabbit was my favourite haha.
     
  3. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thank you! :) Those furry fellows were fun to do. :) Glad to hear the frame rate is OK too.
    Cheers for looking
    boxy
     
  4. RobbieDingo

    RobbieDingo

    Joined:
    Jun 2, 2008
    Posts:
    484
    Good stuff!
     
  5. absolutebreeze

    absolutebreeze

    Joined:
    Feb 7, 2009
    Posts:
    490
    Fantastic - love it :)

    I noticed that the speed can sometimes be a little too fast though.

    Maybe you could slow down the walk speed when your are within a short distance of a picture?
     
  6. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,652
    Very nicely done!

    Don't know your target audience, but WASD + mouselook is a relatively advanced control scheme for those who don't play shooters. Might be nice to have a simpler option as well, e.g. left click to move forward... or click on a piece to move in front of it... they could work together so neither audience feels alienated.

    Then again, maybe it's not a concern for your intended audience...
     
  7. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    Very simple design, but nicely executed. Well done! :)
     
  8. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thanks for the kinds comments everyone!
    Tony that is a good point. Right now it was a major hurdle implementing the mouselook speed and I'm pretty confident I have done it the most inefficient way possible, but currently the important thing is that I figured it out for myself. Making better code will come in time - all of which means that I like the idea very much and am guessing it will involve tagging the images then somehow employing raycasting to alter the walk speed temporarily? ...hmmm, back to the head scratching. :)
    Interesting point Alex, I'd never considered that, I do like the idea of clicking an image to move to it. That ties in nicely with the concept that my gallery's functionality will grow as I learn more - more animated characters, interaction and eventually I'm hoping to add the ability to order prints from within the gallery and even add an outdoor sculpture park! :) Thanks for the suggestions
    BK thank you, I deliberately made it as simple as possible just to get a unity project up and running. Something I've not actually done yet since owning V1! :)
    Cheers again
    Boxy
     
  9. absolutebreeze

    absolutebreeze

    Joined:
    Feb 7, 2009
    Posts:
    490
    I guess you could do a camera switch trick when you collide with an empty object that's in front of the picture? And toggle it when you leave the picture?
     
  10. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,350
    Man you are skilled ugh :envy:
     
  11. shabazzster

    shabazzster

    Joined:
    Mar 17, 2010
    Posts:
    104
    Please give a tutorial on your craft because this is Awesome!

    Thank you.
     
  12. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    OK that went over my head. Back to the headscratching! :) Thanks for the reply
     
  13. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thanks megmaltese and shabazzster! There's not much to teach it is so simple. I built the model in Cinema 4D as a single scene, opened it in Unity, added an FPS prefab, played with lightmapping but actually in the end I used Cinema4D for that, calculated occlusion culling and then realised because I have a magic mouse, the movement was erratic so I added some simple keyboard options to tweak view speed. :) Oh yes I also tried a very simple animation on one of the sculptures. I did want him to walk off the pedestal but haven't figured that out yet!
    Cheers for looking.
    Boxy
     
  14. ForceX

    ForceX

    Joined:
    Jun 22, 2010
    Posts:
    1,102
    Fantastic and so elegant.. Great job.
     
  15. absolutebreeze

    absolutebreeze

    Joined:
    Feb 7, 2009
    Posts:
    490
    Effectively you have two cameras, and use a camera trigger to swap camera's when you collide with the pictures collider or something else infront of the picture

    An example of using camera trigers:
    http://www.unity3dstudent.com/2010/12/switching-cameras-at-runtime/

    You could move the position of the 2nd camera (that looks at the picture) each time you collide and so you would only need two cameras in your scene. Although you could get away with one - its a bit messy.

    Hope that helps,
    Tony
     
  16. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thanks Tony, yes that helps a lot! Great to know your website exists too, it looks really useful. I'll try and play with that idea.
    Cheers
     
  17. absolutebreeze

    absolutebreeze

    Joined:
    Feb 7, 2009
    Posts:
    490
    Your welcome.

    The unity3dstudent site is not mine, it's will goldstone's -but yes, it's a very useful resource.

    Tony
     
  18. MrSmive

    MrSmive

    Joined:
    Oct 12, 2010
    Posts:
    428
    I had been considering making something like this for a while, but wanted to have some pretty fancy model import system so as people could submit work and if it was good enough it was automatically displayed over the oldest work somewhat like a virtual showcase forum but is far beyond my capability, well could make the museum but the scripting would be to much.

    Your gallery is pretty epic, quality of the work is outstanding, but can't be totally positive lolz because that makes for a useless post so here is what is missing.... and its pretty obvious too. Each picture has its own light source but there is no defined physical light source, ie lamps man, each pic should have a picture lamp above them to give somewhere for the light to come from. other than that its a breath taking bit of work, great job mate.
     
  19. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Sorry, that man Will again. Enjoying his book at the mo.
     
  20. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Thanks! Yes I had all sorts of big plans but decided to keep version 1 as simple as can be just to get it up and running. I like your ideas too, I'm also hoping to make a gallery of other people's work but that is at the beginning of negotiations as we speak. I hope we'll see more and more of these. I want to add to it as I learn about Unity though. For example where there is a series of images, to allow the user to toggle through them in the same frame instead of taking up more wall space. I also want to add an outdoor sculpture park at some point so people can show off their ZBrush sculptures etc.
    About the lights - that's right I did intend to but in the end it was a conscious decision not to add physical light sources because I didn't see the point in adding extra geometry at this stage. Obviously if you are in a virtual gallery you're going to expect the paintings to be clearly visible, it doesn't matter how because it aint reality. :) In fact you could say the paintings are 'backlit' because they all have a self illuminating material applied - otherwise the light on them would have been uneven and being able to set the base colour gave me better control on the overall luminance. You're right though, I will probably add some simple square spots eventually. I'm also not making the most of Unity's material system yet. eg I could perhaps try and make the floor slightly reflective but that didn't seem as straight forward as it is in a regular 3D app. The paintings also had a canvas bump at one stage which I liked but ditched to keep version 1 simple while I learn more about optimising.
    Cheers again, much appreciated.
     
  21. MrSmive

    MrSmive

    Joined:
    Oct 12, 2010
    Posts:
    428
    don't worry to much unity handles mats really well, so go for the bump and anything else you want to throw on it, main think is the image rez, not much point going higher than 1024 for web gets laggy after that but iv had webplayers with 80 tiles with bump specular and alpha gloss on every tile with 2038/2048 throughout and it runs fine (none are flat either) lmao dam powerful engine, don't worry bout pushing it tends to optimize itself when u do the web-builds. All about the texture size, sucks cus the images require high rez to be at there best so youl have to find a good balance to get the load speed down, fps really wont change just the load speed mate.
     
  22. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Good to know, thanks MrSmive I'll play with stuff for the next update.
    Cheers
     
  23. xXToastyXx

    xXToastyXx

    Joined:
    Jan 25, 2011
    Posts:
    38
    I love it (;
     
  24. boxy

    boxy

    Joined:
    Aug 10, 2005
    Posts:
    675
    Cheers :)