Welcome

This is a blog sharing what i have learn and experience from my internship in A*Star IHPC
- Zac Kwan

Tuesday, February 8, 2011

Day 81 - Demo preparation

Kevin came to told us about a possible presentation to the team on thursday. A short demo to show them what we have done.

So before we started with preparing for the demo, and checking for bug again, we tried to finish up the documentation on the limitation on the implement of function. Alex part of vertex animation is completed after some hard work that he have put in. However my part on compareview still doesn't have any lead. No much people is doing that as commonly, there is no problem loading 2 eaglview on a single view controller, but it does not allow us to do it might mostly likely due to the pod library that we are using.

Told kevin about what we have, we decided to push the compareview down the day first, try to sort it out as we go by the code before we leave. The remaining of the day we find bug and also ensure that the flow of our demo is working.

Monday, February 7, 2011

Day 80 - First day of work after chinese new year

Back to work after a pretty long break because of chinese new year. When your engine is off, sometimes it really hard to get it started. Sometime i wish that i was back in secondary school where i can just "pon" school as and when i like. But now i can't, or rather i don't.

Today luckily does not have to do much coding as most of it have been coming to an end. We continue researching on the feature that we tried to implement but unable to do so yet. Jotting down the reason of the limitation and also state some possible way of workaround.

The two feature are actually vertex animation, also sometime name as mesh morphing and multiple compareview in a single view controller. Surprisingly to some people is that we are unable to load two eagl view to mirror the effect on the same controller, but we are able to mirror two eaglview that is remotely connected to each other on the bonjour network. Nevertheless, we are still searching for possible way to solve it, but look like i won't have enough time to implement it as my intern days is coming to an end.

Tuesday, February 1, 2011

Day 79 - Back to research

Feb 1 two more day to Chinese new year! and tmrw is new year eve. By right half day of work tmrw. But kevin given us the off =)

Today Kevin wasn't, well we got nothing much to show him anymore. Most of everything about the problem we have discussed. We also fixed the interface and bugs that we known of. Today started to research on why animation doesn't work for the pod loader.

To be exact, Model loading does work, but certain type of animation like morphing or vertex animation, doesn't work on pod file. The converter will not allow such file to be converted with animation. or rather POD doesn't support animation that evolve vertex. Possible way to solve it is loading 3 model and do it in the code. But this will be at the expenses in the speed of the model loader. It is not something that we wanted.

It seems that there isn't anyway to do it without affecting the functionally and speed of the program. Will spend more time researching on that when i am back.

Monday, January 31, 2011

Day 78 - Fixing bug here and there.

Big rain on a monday making it even more blue.

Today was super duper cold. Wearing a singlet + a polo T + a jacket and i am still feeling cold. Came to office, planning to work on the research on animation. Kevin came after a while to get us to do the animated model and show him that.

Alex is already familar with the model animation, manage to get one working without much time needed. But while loading the model, i tried a different way and found some bug in it. Trying to find the problem to that bug but is actually quite troublesome to solve it. We decided to show kevin the animation model first before attempting to fix that.

After lunch, came back to fix the bug we found. The bug is actually on the loading model and downloading when i doesn't have it. We took awhile to solve it but found more bug after that. More bug in loading the model when it is not there. When we fix that found out that the nodes is not being send when first run. After adding that, we found another bug that the table is not updated when the node is not being drawn. Manage to get all the bug fix, at least those that we have found.

Overall i really satisfied with what we have done in the project. Because if during the start of my intern, and i am being expected to do out something like, i would thought this as extremely difficult.

Friday, January 28, 2011

Day 77 - Finish touch.

Not quite a finishing touch on the project but at least for now that going to be less on code for this few day. In the morning, fix some issues of the bonjour networking and got kevin here to try it out. Everything goes really smoothly, no much of a problem yet only for some minor changes.

After the try out, we discussed again on what need to be done now. As we have completed most of the function we wanted, not is left to do some that we didnt manage to do it. We need to research on why this function can't be implemented, what is the error behind it and also what to replace it with.

After lunch, we came back working on some the research of why compareview cant be done. At about 3 pm went for a break at Starbuck with Kevin. We have a nice chat with him and he also told us about some of his past experience working here. We still owe him an answer on if we want to continue working here.

Thursday, January 27, 2011

Day 76 - Done with most, improving the UI now

Continue working on the bonjour locking parts. After some thinking when i was on the way home yesterday, still doesn't understand why part of the byte is being stuck in the queue and doesn't get send over. Came up with two solution, either create a thread to run and will stop after 1 sec to unlock with a timer that will be reset-ed when data is received. The other one is to add in a method to send the package without splitting and queuing.

We decided on the thread at first, so we started researching and find document about how to get it working. But it look pretty tedious and is process unfriendly. So we went back to the sending package without queue. After looking at the old project, we set it up pretty fast. BUT, the result wasn't what we expected, found out that because during receive data, we will look at the package received and join it together, but because this is a special case, it didn't go pass the loop. We thought about it, but there seems to be no way fixing it.

After lunch, we work on the thread locking. But alex have found out with something in the documentation that uses perform selector after 1 second. So i googled it and found a post that someone is trying to do something that we wanted as well. Manage to get it set up, and get it working too! But there are some flaw in it. We make use of other build in method to solve it.

The rest of the day is spent correcting some code and also swapping the pitch gesture with the tap gesture function.

Wednesday, January 26, 2011

Day 75 - Continue working on unfinished bonjour

Its 3 quarter of a 100 days spent in the office during my intern! Pretty much the same today, working on bonjour, still got quite alot to be done.

During the first part of the day, most of the time was trying to fix the loading issues if the server started loading a model and playing with it before other user join. There was quite a lot to work on as previously for transformation sending we are += -ing to the result, but if the user have not connected, he would not be able to get the correct transformation value. Secondly, what i did yesterday was just saving the last transformation, but it will only be on one node which is not correct. Changes has to be make on this two to get it working.

After lunch, we continue working on the other part of the project. Trying to lock the touches when began and unlock when ended. However first the touch ended wasn't able to be call, but after some googled, alex found a solution. The other problem arise after that. It seems that sometime the touch ended call the send data to unlock method was being stuck on the queue of of the sending. It is not suppose to as all data should have been sent out. Still trying to figure that out and solve that issues.