Wednesday, November 6, 2013

INFR 3110 Blog entry 6

Last week, I was still working on the errors I've got with twoloc engine. Although I found a method to solve the bin\Debug\..\..exe errors, the problem actually still can't be fixed. I knew that it was pretty lame to just copy and paste the .exe file to fix this errors, that's why I asked our nice TA for help during today's tutorial.

I kept getting 17 errors when I was compiling the engine. :(

Uable to start program because the system cannot find the .exe file.
I tried re-cloning and re-installing the twoloc dependencies over 20 times but still got the exact same 17 errors while compiling the engine. And Visual Studio kept saying that it can't find the .exe. After asking TA for help today, I understood that the PC's system language DOES matter! Although I got errors before I changed the system language, I still tried to change it back to Canadian English base, and then the engine complied successfully.

The other thing that I have done this week is the robot arm homework question:
+
While we were doing question 3, we needed to include a box generator header file to completed it.

#include "ProceduralBoxGenerator.h"

However, you probably will get some errors if just including the header file. What we can do to solve this is very similar to the solar system question as I talked about in the previous blog post. The difference between them is just changing VS2008 to VS2010 format.
Go to the project properties and add the following stuff:

C/C++ -> Preprocessor add:
PROCEDURAL_STATIC_BUILD

Linker -> General -> Additional Library Directories add:
$(TwoLoc_PATH)\lib\VS2010\$(Configuration)\$(Platform)\OgreProcedural

Linker -> Input -> Additional Dependencies add:
OgreProcedural_$(ConfigurationName).lib

After adding the above items, the project runs perfectly fine. In this question, what we were supposed to do are very similar to the solar system too except for the planet's orbit. For the robot arm we just need to nodes: a rotation node and a translation node for each part of the arm rather than the planets' three nodes(orbit, rotation, translation). The whole thing is about parenting the nodes to the right places.

Scene graph for my robot arm


Robot arm that I did. 

No comments:

Post a Comment