Hi all
I modified "gsub.c" for making new "libARgsub.lib" in "ARVideoLib-0.0.5a-all".
I made "kmargInit" function and "kmargInit2" function instead of
"argInit" and "argInit2". They are almost same as "argInit" and
"argInit2". I only added two parameters, x and y values, to set the
initial position of window.
void kmargInit( ARParam *cparam, double zoom, int fullFlag, int xwin,
int ywin, int hmd_flag, int x, int y)
{
int i;
...
kmargInit2( fullFlag, x, y );
}
static void kmargInit2( int fullFlag, int x, int y )
{
...
glutInitWindowPosition(x, y);
...
}
After modifying, everything's fine except that a virtual object is
shown not on the marker but on somewhere far from the origin of the
marker.
I did'nt modify any values about position of the virtual object.
I am using ARToolkit 2.65 vrml.
What do you think is the reason of this problem?
Any help will be appreciated.
Best regards
Heejeong Bae
|