Author Archives: onuroral
About 2 Cubes: Go Card
About 2 Cubes: Presentation
About 2 Cubes: Booklet
About 2 Cubes: Proposal
Continue to designing 3d pages
I’ve decided to put objects tighter, so that after an user changes the position (float into the page), he/she can still see all the objects on the screen. It is not all done, still some 3d objects are missing (a specific serif font that El Lissitzky used), and also i will only change the textures of the objects.
iTween Code (C#)
Path1 defines the all selected coordinates (x,y,z) and path for one object. This means I have to define more than one path for my every different object. In the example, the object’s path is named Path1.
Also the name Tester is the name of the code file. The name Tester should be different for every different paths (Tester1, Tester2, or any other…)
using UnityEngine;
using System.Collections;public class Tester : MonoBehaviour
{
void Start () {
iTween.MoveTo(gameObject, iTween.Hash(“path”, iTweenPath.GetPath(“Path1”), “time”, 5));
}
}
iTween
Here’s an example of how I’m going to use iTween in my project, ‘About 2 Cubes’.
3D Page
Transforming the Camera
This code will make users to be able to start the floating again from the beginning. The camera (the view of the user) transforms to its original/starting position.
To do this with Unity3d, I created an empty object, named SpawnPoint, arrange its position the same with the camera’s original position so that after pressing the button it goes back to its original position.
var SpawnPoint : Transform;
function Update () {
if(Input.GetButton(“Jump”)) // Jump is the name of the button
{
transform.position = SpawnPoint.position;
}
}
This is the code that I found on the Internet. It also works the same way, but my guess, this code is for games. I did not research GUI enough yet. After I did that, I will decide which one works best for my project.
function OnGUI () {
if (Event.current.Equals (Event.KeyboardEvent (“positivebuttonname“))) Application.LoadLevel(Application.loadedLevel);
}
Publishing Unity Content
‘About 2 Cubes’ Presentation & Proposal & Prototype
‘About 2 Cubes’ Presentation (Powerpoint)
‘About 2 Cubes’ Proposal (PDF)
‘About 2 Cubes’ Storyboard (ZIP)
‘About 2 Cubes’ Unity3d (ZIP)