Code (using C#):
using UnityEngine;
using System.Collections;
public class rotate : MonoBehaviour {
void Update ( ) {
transform.Rotate(new Vector3 (15, 30, 45) * Time.deltaTime);
}
}
Today is created an object in unity 3D and applied some physical application. Unity provides assets/packages to use but my unity had some compatibility issues so i decided to just create it from scratch. In the scene that i created in unity 3d, I added a cube and directional lighting to show a surface of the cube. For the C# coding aspect of the cube I added a rotation by using the command transform.Rotate( ). I also added a speed variable which is being multiplied by Time.deltaTime which just smooths out the movement for the values given from each frame of the rotation. Another cooling thing is that the speed variable is public. So, you can adjust the speed to whatever you choose while its rotating. Unfortunately, this isn't really physics. It's just a simulated speed being multiplied by a time per frame. If I wanted to apply real physics to the cube I would have to add a constant force (component) and set a value for the torque. Code (using C#): using UnityEngine; using System.Collections; public class rotate : MonoBehaviour { void Update ( ) { transform.Rotate(new Vector3 (15, 30, 45) * Time.deltaTime); } }
3 Comments
Today i began to test out unity and work with the tools. I created a 3d game which is not yet fully functional. The game is a 3d cube game, where the player is a cube and must maneuver past obstacles in order to progress to the next level. Now, the coding is not the only thing involved. There is a lot of re-texturing and shifting of objects/lighting involved. It's actually really entertaining because Unity 3d is actually really understandable and easy to use. Now, creating a game is no easy task but it's also no application for medicine. I hope to learn about unity 3d through this game tutorial and use my understanding of it towards other projects like the Google glass API. Today I explore more about the infamous Google glass. I have come to learn that there are two different ways that the developer can create there app. Either using the Mirror-API or the GDK. There are advantages and disadvantages of using either one. The Mirror-API allows you too build web based services for the Google Glass and does not require any code to be run on the Glass. However, using the Mirror-API will cause your app to rely on WiFi/internet. Also, your app will only have a certain amount of API calls within the day. Since it's relaying information back to the server it will be fairly slow. Also you cannot access the camera, compass or location. Which would be helpful for health/medical applications. There is always the alternative, GDK. GDK is really good because your users will not require internet to run your application. The GDK allows the use of voice trigger which is a major part of the Glass. GDK also has real-time and very little/no-delay so it responds very quickly. But the most differentiating aspect of the two is that GDK has access to all the tools (compass, GPS, camera, etc). The downside to the GDK is that you app might be a bit complicated to install and be a strain on battery life, depending how much content it has.
The Apple Health Kit which is part of the IOS 8 update will allow other health and fitness apps to share data with the apple health app to gather data on you as efficiently as possible. However the IOS and app building requires you to know a new programming language, called Swift. The only disappointment to me is that Swift can only be learned using programs like Xcode which only runs on a mac. So, PC users will not be a part of the app development. Unity being a very user friendly software that is used in designing many games and constructs for companies. Today I explored the inner workings of Unity. It's a 3D engine publisher and editing tool. The best thing about this tool is that it enables you create a splash screen scene and play it. Its also very compatible with many types of platforms. You can create a spinning text splash screen that is attached to the game object. I also looked at a few tutorials in the Unity, many of which were building games. Aside from building the graphics for the game there is also various coding languages that can be used in Unity. Two of which are used often, C# and JavaScript. It's even more interesting when you start to see how much code and thought has to go into small piece of a game. Like the inventory. Which would require C# and knowledge in for loop and arrays. Since i haven't worked with C# I decided to also learn a bit more about it by using Microsoft visual C# 2010 which was fun. It is very easy to use for anyone who wants to learn C#. Its drag and drop half the time and the rest you will be coding the functions for buttons on your application to execute/run - Health kit performs measurement/units conversions for you. - Specify units using unit strings. - Create an HKQuantitiy (double value relative to a unit), HKQuantity is also used for unit conversion. - There will be some quantities/units that are not compatible with each other so we must use a Boolean. - In Health kit various object types can be stored. - Every object type has its own type identifier - Every quantity sample has a quantity type (this is what kind of sample it represents). Every quantity type requires a specific type of unit. -I'm not to clear with understanding the Health Kit yet, but i hope to master the key foundation for it in time.
For the social networks the best ones that seemed to click were "Twitter" and "Facebook".Viral marketing (Facebook) anyone can share, so if someone shares it then their friends will see it and then also have
the option to share again. Essentially Facebook can be used however you see fit. Personally, I see Facebook as an extremely adaptable social network. But the goal is to drive people to a webpage or blog using Facebook. Because there are some people who may not be comfortable with the idea of using Facebook. And a web presence before marketing the app or business would help greatly. Similarly, while working on ways to create the social networks to be more appealing and fitting our needs to our product. It's also good to make some connections with other people working on the same project.- Search engine optimization (look at what comes first in search engines when looking for your website/business and then optimize it). - Blogs are also a great way to market your services/business, blogs are similar to a website but keep the users/customers more informed. Using a RSS reader or feed you can allow people to subscribe to you can respond to your posts.- Also the best thing about a blog is that it doesn't have to be uploaded to a server so it's easier to maintain. - Various social media venues helping with creating group for a business and establish themselves as a member and seem more interactive and human. Also started to dive into the understanding of bug tracking. Our world is becoming more technologically advanced by the day. We are coming up with many new gadgets to improve our lifestyle. 3D printers are one of these gadgets that will not not only improve our life style but I believe will change the world. 3D printing has come along way. The original function and way the 3D printer works is that it deposits the user chosen material in layers to form an object from a digital 3D copy on the computer. It's an amazing invention. I also lookeda at the things people can print with 3D printers, the possibility are limitless. People have print things from keys to a car. Using very popular and in demand 3D printers like "MakerBot" you can similarly print an thing you want, you just require the scan or template. Usually most of these templates can be found in large communities like "Thingiverse". It's just the huge community that shares their creations that other people with a 3D printer can construct. But this is just the tip of the iceberg. Now at CES 2014 "3D Systems" unveiled the first 3D printer called "ChefJet" that makes edible food! That is just amazing. Although it make take about an hour or two to print a small sweet. It can simulate the taste of chocolate and it's texture. But that's not even the best part. It can print shapes of food that are interlocked with each other (ex: two hollow cubes joined together). The various combinations that can be done is amazing. I found this very fascinating and can't wait to find out more on what else 3D printing can accomplish. Above is a short video about 3D Systems product "ChefJet" and tasks that it can perform.
Social media start ups isn't an easy task because the hard part is getting all those users.In a Udemy lecture "Creating Engaging Content" by Stew Langille I explored more about the aspects of social media/content marketing. I was able to grasp a few tips and tricks as to how to go about marketing to your audience. I found out that info graphics are a great way to reach out to the public and clearly make statement. Also, while marketing your business or point in an advertisement or info graphic it's always good to leave the embedded code for the public because they can grab the code and paste it somewhere else. Basically, you have a free marketing service. I got to admit it's a great idea, getting the people to work for you subconsciously. Also, if you can construct a viral video, for sites like YouTube to show of your business or idea that's also a good marketing skill. The reason it's good to target sites like YouTube is because of the large user platform base that it has, compared to other sites like Vimeo Weather it's a image (.png, .jpeg , .bitmap ) advertisement or a short clip, ads are one of the best marketing techniques. That's why many companies compete for a spot on the super bowl to air their commercial/advertisement. When getting into the social media business you need to remember that not everyone with faithfully convert and join you. It will take a few visits for people to join you.
|
AuthorYathin Latif is a upcoming sophomore originally a Biology major but became interested in computing and code. He is now working towards a BS in computer science. Learning new languages and tools to further his goals. This summer he hopes to learn as much as possible over these few weeks. Looking to learn more about in software and mobile development. Archives
August 2014
Categories |