Search Unity

Unity logo in 3d

Discussion in 'Made With Unity' started by runevision, Aug 8, 2008.

  1. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
  2. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    Nice,

    Something tells me that you're using some cool scripting genius to drive the random animation, right? Or is it just a plane old animation?

    Either way, I like it!
     
  3. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Yeah, it's driven by this little fragment of C# code:

    Code (csharp):
    1.     private float SmoothCurve(float cycle) {
    2.         return cycle-Mathf.Sin(cycle*2*Mathf.PI)/(2*Mathf.PI);
    3.     }
    4.    
    5.     // Update is called once per frame
    6.     int rotX, rotY, rotZ;
    7.     float cycle = 1;
    8.     void Update () {
    9.         if (cycle>=2) {
    10.             cycle = 0;
    11.             rotX = Random.Range(-1,1+1);
    12.             rotY = Random.Range(-1,1+1);
    13.             rotZ = Random.Range(-1,1+1);
    14.         }
    15.         float rot = SmoothCurve(Mathf.Min(1,cycle))*360;
    16.         transform.rotation = Quaternion.Euler(rot*rotX, rot*rotY, rot*rotZ);
    17.         cycle += Time.deltaTime / 2 / (Mathf.Abs(rotX)+Mathf.Abs(rotY)+Mathf.Abs(rotZ)+1);
    18.     }
    Rune
     
  4. Charles Hinshaw

    Charles Hinshaw

    Joined:
    Feb 6, 2008
    Posts:
    1,070
    That is a very clever interpretation of the mark.
     
  5. aaronsullivan

    aaronsullivan

    Joined:
    Nov 10, 2005
    Posts:
    986
    That should really be embedded wherever the unity logo is found on the main website. ;)

    Very nice.
     
  6. kinl

    kinl

    Joined:
    Jun 1, 2008
    Posts:
    355
    Very nice, should be part of the default loading bar I think :)
     
  7. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    Ha! Very clever. Would make a very cool animated "load" screen icon.
     
  8. tim

    tim

    Joined:
    Feb 3, 2007
    Posts:
    113
    Nice interpretation. I probably would not have though of doing it that way.
     
  9. br0kenp0ly

    br0kenp0ly

    Joined:
    Jun 3, 2008
    Posts:
    481
    Very nice Rune!
    That`s what I would call a perfect interpretation :)