Sunday, November 28, 2010

Unity Lerp Slow Down "Effect"

I've been working a little bit with Unity for this small AI project for school lately. My teammate came across an interesting "effect" when working he was using the Lerp function. Basically, he had 2 cubes in the scene and one of them, A, wants to run towards the other cube, B, at some fixed speed. The strange bit occurs when A gets closer and closer to B, A gets there slower and slower as if doesn't want to reach its destination. I noticed that we're not the only ones having this "effect" happen to, so I thought I post this for those who have the same issue. I won't go through explaining about lerp as I've found a few references worth checking out. But basically, one simple solution is to write a coroutine over lerp. For a more detailed explanation of why lerp is doing what's it doing, please check out these helpful links I've found:

http://answers.unity3d.com/questions/6949/can-someone-explain-how-using-time-deltatime-as-t-in-a-lerp-actually-works/6950#6950

http://forum.unity3d.com/threads/40059-Customized-Vector3-Lerp?p=256374#post256374

Wednesday, September 29, 2010

Getting DirectX SDK into Visual Studio 2010

Found this very helpful link on VS2010. Apparently, Microsoft made some changes to how to add directories to your projects.

Here's the link: http://takinginitiative.net/2010/07/02/setting-up-the-directx-sdk-with-visual-studio-2010/

From this:











to this:










Monday, September 13, 2010

Happy Programmer's Day

So apparently, today is suppose to be Programmer's Day. Not only that, but today marks the 25th anniversary of Nintendo's beloved blue overalls plumber, Mario. Thanks for GameDev.net for the heads up.

Anyways, on to the updates. I've finally got around to moving all my game projects over this to site. Later, I'll have the rest of projects added as well. Also, the game designer of my senior game team is putting up a blog/website up for our new upcoming game.

Well, that ends it for now. Happy Programmer Day and Happy Birthday Mario!!

Wednesday, September 8, 2010

New Battle Plan

Alright, I'll gladly and openly admit that I "InsertProfanity()" at blogging. I have now started my senior year at DigiPen (woohoo!1!), so that means I really got to make this blog shine. The first thing I have to do is get rid of my site as it just looks flat out hideous. I'll be moving all my content from my site to over here. Next, I think I'll stop posting large long-drawn-out posts for a more short posts about stuff I've been reading (in regards to the game industry).

Speaking of which, this morning I found a 30 minute interview with Runic Games on Torchlight 2. I'm a huge fan of the original Torchlight and have been checking out their stuff including their modding tools.

Well, I've got nothing else to say, so cheers.

Sunday, May 2, 2010

Hello again

I feel so weird to not think about homework and projects anymore. I can't imagine thinking of anything else besides work. I've really got to remember what it was like to relax. Well, it's all in the past now. It's done.

To start, I left my junior game team this semester after having too many conflicts in our team dynamics. In doing so, I was left with a 3 choices: start an independent project, get into another team, or build a new one. There weren't any teams looking for new members and I really didn't want to be dropped into a brand new team. I ended up working on an independent project involving graphics. I'll be posting the installer for that project once I find the installer again. It's somewhere close by, I'm just lazy to find it.

For this project, I wanted to do a basic post processing graphic's engine using DirectX. There are many students at DigiPen that have already done deferred shading/lighting at some point, so I decided to start with that. The main objective of this project wasn't just to pass the class, but to better myself by building a solid foundation for graphic programming. Well, once you've seen it, you'll get a better idea.

Well, anyways, that's all about the project that I'll get into. What else did I wanted to say? Oh, I've be sending my resume out like a madman for the past few months. My luck hasn't been the best this summer. I've got to up my game if I'm to compete. It's kind of annoying that many game companies nowadays have automated systems dealing with resume submissions. The only "real" reply I've gotten from them were "your resume has been received" or "not in the office." I just don't know if it's the economy or me. Maybe I should just blame the economy, so I don't damage my self-esteem :p.

Before I end this post, I wanted to rant on one thing about if statements. I come to realize that the else of an if-else statement can be the most buggiest thing. If you were of the mindset of "if something something, then do this. Whatever else happens, put it in the else statement." I realized that if you, the programmer, didn't encompass all the conditions you want in the if statement, then it'll fall into else, which isn't what you want. So, I started getting into the habit of doing all the if statements that I'm aware of that WILL occur and use the else statement as a breakpoint. By doing it this way, I can stop the program midway on a condition I'm not aware of.

Well, I get a move on and find that installer for my independent project. Till then, cheers.

Saturday, May 1, 2010

Late than Never

Finals is done + junior year complete + independent graphic project done = good times. I'll be posting some more tomorrow as I'm still trying to recover from finals. I also got a LinkIn account. It's still bare bones so I'll be working on that as much as possible. The link is as follows:
http://www.linkedin.com/pub/stanley-thai/20/57a/796
I found something interesting at Digg that my fellow programmers might enjoy.

Tuesday, March 16, 2010

Back to the ... Past

For those of you who've seen some of the games on my website, there was one game called Tim-E. The main catch with that game was the ability to move time faster, slower, or just plain rewind. I remember my team having lots of issues with that mechanic as many elements of the game would crash and burn. So why am I bringing this up you might ask? Well, I just found an interesting article at GameDev.net about their rewind system. It's a very short and good read for those who wish to learn how they did a wicked sick rewind system.

http://www.gamedev.net/columns/events/gdc2010/article.asp?id=1808

There and Back Again

So, I'm back in Washington again. GDC and spring break really went by fast. I met some interesting people and had an overall good time. I guess I'll start after my last post on Wednesday.

Wednesday:
Trip to Zynga was interesting as I finally took the bart train to SF for the first time. The building itself was located in a rather quiet location surprisingly. There were tons of dogs coming in and out of Zynga. I guess their logo wasn't just for show. They us DigiPen students a small tour of the building including the FarmVille studio. The guides did express that the company itself still had the newness feel as parts of the building were still in construction. It's nice to know that Zynga is growing with each passing day.

Thursday:
Today is my first day at GDC. After getting my badge, I did feel like a small fish in a large pond or better yet, an ocean. I started out slow as I was trying to get the lay of the land. After that, I arrived at my first booth to try out my networking skills. Using some of the tactics I said in my previous post, I was able to hold onto the conversation for a good while. A few more stops to various booth later, I came to a point where I was dead tired and it wasn't long since I arrived. I never realized how taxing networking really was. Next time I come back, I best pace myself. The most notable person I interacted with Tom Davies of Budcat studios. He was responsible for the graphics in one of the Guitar Hero games.

Friday:
On my second day, I was still trying to recover from the previous day. I wasn't bring my A game that day as the booths I went for didn't end well or to my expectations. Even though I started out badly, I did end up with a very good conversation with the lead software engineer of Blizzard, Sam Lantinga. He gave me and two others an insightful conversation about various aspects of Blizzard. Overall, I guess Friday ended on a good note.

Saturday:
Last day of GDC. I was still recovering, but was better after getting a little more sleep. I went back to Blizzard again to talk with Sam about some other things I was curious about. I was glad he was able to remember me. I got on a good conversation with the guys at Riot and WB games. The last thing I did before I left SF and GDC was a small lecture I was allowed to go. Overall, not a bad experience for my first time and being an introvert.

Wednesday, March 10, 2010

War Room

GDC is now in full swing. Most of my friends have alrady started posting stuff already. I unfortunately did not sign up for the full package and so my GDC experience begins on Thursday. Even though I'm not at GDC right now, it does give me some time to solidify my battle plans when I do get there. The biggest worry I have right now is networking at GDC. Because my alignment is more towards an introvert, I lack social networking skills. My game professors suggested a few things to help my networking process.

1) hang around extroverted people
2) conversation starters can be something simply that slowly grows into something more
3) games you've played recently
4) the no-so-old story about DigiPen and Portal (Valve game)

I wasn't convinced that was enough so I've spent some more time researching this topic. From the vastness of the Internet, I found one very nice collection of topics relating to social networking.

http://tinysubversions.com/2005/10/effective-networking-in-the-games-industry-introduction/

Aside from all this GDC stuff, I've got a tour of Zynga tomorrow with some fellow DigiPen students. Hope I don't get lost trying to find the place.

Sunday, January 17, 2010

Knick Knack - Graphic Programmer Job

I had a long conversation with my game professor (Benjamin Ellinger) a few days ago about what game companies look for in a graphic's programmer. I'm a little surprised that they look for people that know just the basics. I'll try to paraphrase what Ben said. Game companies look for individuals that are able to show that they are capable to load in static/dynamic models into a game, animated well, and some basic lighting and shadowing. Anything else like advanced animation blending, deferred shading/lighting, HDR, etc. are best left alone until that individual has got the basic down.

Friday, January 8, 2010

An Old Flame

Wow, all my usual sites have exploded with talk about DirectX and OpenGL. They all seem to originate from this site: http://blog.wolfire.com/2010/01/Why-you-should-use-OpenGL-and-not-DirectX. Personally, I've worked with OpenGL before, but I could never get a handle on it. The article does bring up some good points that DirectX does not have any real competition in a while. I've been doing a lot of graphic stuff with DirectX, so this caught my attention and I thought I'd share this to those that miss this article.

Sunday, January 3, 2010

The Hero's Journey

Greetings,
my name is Stanley Thai and I'm currently a junior of DigiPen Institute of Technology. As of the day of this post, I'm close to achieving my Bachelors of Science in Real Time Interactive Simulation (RTIS). In short, a programming degree specializing in games. I'm normally a reserved person, but it doesn't mean I don't like to go out and I enjoy playing mostly PC games.

To those who already know what DigiPen is, yes, it is very hard. To those who don't know, then I've got some explaining to do. DigiPen's RTIS degree is an intense 4 year program where each year, students must gather up in teams and develop a game from the ground up (literally). Unlike most colleges that have a game degree of some kind, they tend to use an already existing engine and simply code the game's behaviors. By contrast, DigiPen makes us build the game engine ourselves. To learn more about what we do at DigiPen, please check out https://www.digipen.edu/. Anyways, without further ado.

Hello and welcome to my blog, Coding in Progress. In this blog, my goal will be to post things I've learned during the course of my experiences with coding in C++ and game development. I want this blog to serve 2 purposes. One is allow me to have some place to store my wealth of knowledge in a single location and two is to allow others to gain something from it.