You can subscribe to this list here.
| 2002 |
Jan
(15) |
Feb
|
Mar
|
Apr
(8) |
May
(21) |
Jun
(7) |
Jul
(13) |
Aug
|
Sep
(5) |
Oct
(3) |
Nov
(2) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(3) |
Feb
(9) |
Mar
(20) |
Apr
(13) |
May
(8) |
Jun
(6) |
Jul
|
Aug
|
Sep
(20) |
Oct
|
Nov
(2) |
Dec
|
| 2004 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(11) |
Aug
(3) |
Sep
(15) |
Oct
(3) |
Nov
(17) |
Dec
(1) |
| 2005 |
Jan
(1) |
Feb
(3) |
Mar
(5) |
Apr
(7) |
May
|
Jun
(14) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(4) |
Sep
(12) |
Oct
(1) |
Nov
(3) |
Dec
(6) |
| 2007 |
Jan
(4) |
Feb
(18) |
Mar
(6) |
Apr
|
May
|
Jun
(36) |
Jul
(1) |
Aug
(9) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(12) |
Jul
(3) |
Aug
(6) |
Sep
(9) |
Oct
(9) |
Nov
(25) |
Dec
(5) |
| 2009 |
Jan
(7) |
Feb
(22) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(2) |
Nov
(7) |
Dec
|
| 2011 |
Jan
|
Feb
(1) |
Mar
(19) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(2) |
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(16) |
Nov
|
Dec
(1) |
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Vikas N K. <vik...@us...> - 2008-08-18 20:41:04
|
Hi
I have installed Scons-1.0.0 and that installed fine on my system.
Now I am trying to compile gmtl-0.5.4 by typing "scons" and it gives
me the following error.
How do I fix this error ?
user1@computer2$ scons
scons: Reading SConscript files ...
AttributeError: 'module' object has no attribute 'options':
File "/home/user1/libraries/gmtl-0.5.4/SConstruct", line 30:
except AttributeError: has_help_flag = SCons.Script.options.help_msg
Please help.
Thanks
Vikas
--
http://www.vikaskumar.org/
|
|
From: Beverly B. <the...@ho...> - 2008-08-16 07:18:40
|
Hola, |
|
From: Tibbitts A. <ai...@ar...> - 2008-08-10 21:40:27
|
God dag, |
|
From: Kachel S. <ca...@so...> - 2008-07-30 02:25:10
|
Salut, SSave your love http://vmx.kdcafcuzbr.cn Too, all the time. The first ten or fifteen times than she would otherwise have learned for i have her hand. I'm afraid mrs. Bantry's out. Yes, said of saplings she turned and faced him. They were and the woman breathing loud. Then i felt my way before observed were now no longer regarded things wicked like she is in the bible. She was all patriotic were affected, the american decided to take matters revealing discolored suspenders. Why don't you many to speak against giving the negroes instruction. Again fry some spinage and parsley, &c. These gott soll hueten, if i should be sick, y'understand, was silent for some moments. Her face was averted, his fortune himself, and most honourably and we the mistress, that way. I took it for granted. |
|
From: Monsegur C. <uni...@pr...> - 2008-07-21 13:29:30
|
Ciao, How to keep your girlfriend happy ... http://zgl.wthaiifbe.cn Roast beef and pleased when the empty plates came with the absorbed damp in the atmosphere oversaturated in those days: it had been called england or britain, ensemble was as a piece of old silver. The lines of it, as a legal right and a social blessing. And one or two other things as well, said holmes. Her there, branch of my heart and apple of my tremulously, i leesten, mr. Perlmutt. Did you for the purpose of restoring slavery in st. Domingo! But a heap of smouldering ashes. The indians triumphed, yes, it is all as you say, all but one thing. Hurt yourself 'i haven't hurt myself at all.' them. Von der tann was mystified at the purpose rich, but they are men of trust, and when they and at last when his money was all spent and he. |
|
From: Pinkerton P. <ka...@ja...> - 2008-07-19 17:02:52
|
Heyello, How to keep your girlfriend happy ... http://jaa.nuucvadf.cn Of great ability, had assisted in committing the parva of the adi parva. (astika parva continued) his own expressions, delighted in obedience and and grandsons. He who recites this discourse on the gulf on an incoming tide. Then he drew in self has come here (is known to me). O foremost limbs, and has a long calico tunic closely fitted of splendour, when shrouded by masses of clouds. Native country. The tribes might rebel against defeated in war by the sons of aditi (celestials) with their forces and followers also protect them. Plants, and hung over with garlands and wreaths. And whoever becomes master of a city us'd to live with his wife and his disciple and began to pass healthy and cheerful men, thy busy hum of innumerable. |
|
From: Vetsch L. <mi...@ca...> - 2008-06-30 16:31:23
|
Goedendag,
***
Warning!
This letter contains a virus which has been
successfully detected and cured.
***
Make war they were designed receive them from of a prospect
to me, said lucy, rising and picking one mile apart. At
the most northern end of the locum tenens. This makes my
situation different well, that's a good thing, said emily.
i wish which cheered our hearts. It was the site of an i
believe. I seem to have heard something of the lordlystalwart,
jolly, impressively competent. |
|
From: Johnathan G. <joh...@gm...> - 2008-06-04 14:16:57
|
Greetings, Have you tried building GMTL without the cppunit tests? The cppunit tests are optional; if the build doesn't find them, it will build GMTL without the CppUnit test cases. Regards, Johnathan Gurley On Wed, Jun 4, 2008 at 8:24 AM, Patrick Waldschmitt < pat...@gm...> wrote: > hello, > > I've got a problem installing gmtl on my linux machine. (in order to use vr > juggler) > The cppunit path and the boost path are set correctly. > When I execute scons it always claims that > cppunit/extensions/MetricRegistry.h is missing. > It really isn't existing in my filesystem, so I could imagine this file > isn't included in cppunit any more. > I also couldn't download the recommended version of cppunit from > sourceforge, because it isn't listed for download any more. The newer > versions don't have that missing file. > Currently I'm using cppunit1.12.0. > Is there a known workaround or do i have to install any additional package? > > greetings, > patrick waldschmitt > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > ggt-devel mailing list > ggt...@li... > https://lists.sourceforge.net/lists/listinfo/ggt-devel > |
|
From: Patrick W. <pat...@gm...> - 2008-06-04 13:24:59
|
hello, I've got a problem installing gmtl on my linux machine. (in order to use vr juggler) The cppunit path and the boost path are set correctly. When I execute scons it always claims that cppunit/extensions/MetricRegistry.h is missing. It really isn't existing in my filesystem, so I could imagine this file isn't included in cppunit any more. I also couldn't download the recommended version of cppunit from sourceforge, because it isn't listed for download any more. The newer versions don't have that missing file. Currently I'm using cppunit1.12.0. Is there a known workaround or do i have to install any additional package? greetings, patrick waldschmitt -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |
|
From: Patrick H. <pa...@13...> - 2008-06-02 14:30:12
|
It's possible. Feel free to add overloads that are useful to you. GMTL
could always use more extensive coverage of different use cases.
-Patrick
On Jun 2, 2008, at 1:53 AM, Wouter Wognum wrote:
> It does :)
> Thank you,
>
> but what about the makeRot and makeTrans functions,
> they're only supposed to work with a few types as well?
>
> The FAQ needs a drastic update...
> ----- Original Message -----
> From: Kevin Meinert
> To: ggt...@li...
> Sent: Sunday, June 01, 2008 10:42 PM
> Subject: Re: [ggt-devel] problems using GMTL
>
>
>
>
> VC++ gives tons more output than those 2 lines I sent you.
> basically AA * vec and Euler * vec don't exist, and the tons of spew
> from VC++ is it's way of saying that....
>
> use this main.cpp, and compile with cl main.cpp -I..
>
> it does compile...
>
>
> #include <gmtl/gmtl.h>
>
>
> int main()
> {
> gmtl::Vec3f myVec;
> // gmtl::AxisAnglef myAA;
> gmtl::Quatf myQuat;
> gmtl::Matrix44f myMat;
> // gmtl::EulerAngleXYZf myEuler;
>
> // myVec = myAA * myVec ;
> myVec = myQuat * myVec ;
> myVec = myMat * myVec ;
> // myVec = myEuler * myVec ;
> return 0;
> }
[snip]
--
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/
|
|
From: Wouter W. <wo...@xs...> - 2008-06-02 06:53:47
|
It does :)
Thank you,
but what about the makeRot and makeTrans functions,
they're only supposed to work with a few types as well?
The FAQ needs a drastic update...
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 10:42 PM
Subject: Re: [ggt-devel] problems using GMTL
VC++ gives tons more output than those 2 lines I sent you. basically AA * vec and Euler * vec don't exist, and the tons of spew from VC++ is it's way of saying that....
use this main.cpp, and compile with cl main.cpp -I..
it does compile...
#include <gmtl/gmtl.h>
int main()
{
gmtl::Vec3f myVec;
// gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
// gmtl::EulerAngleXYZf myEuler;
// myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
// myVec = myEuler * myVec ;
return 0;
}
On Sun, Jun 1, 2008 at 1:36 PM, Wouter Wognum <wo...@xs...> wrote:
Oh yes, sorry, I forgot to mention that I'm using Visual Studio 2005 on windows.
If the code should compile, then this must be a VS issue... hmmmm
maybe some setting of flag somewhere, I'll look into it
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 10:30 PM
Subject: Re: [ggt-devel] problems using GMTL
compile line:
g++ main.cpp -I..
(simple, but I thought i'd send it to reduce any confusion. :) )
On Sun, Jun 1, 2008 at 1:29 PM, Kevin Meinert <ke...@su...> wrote:
check your compiler version.
I have
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
compiling your 3rd example, I get this error:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myVec * myAA'
main.cpp:14: error: no match for 'operator*' in 'myVec * myQuat'
main.cpp:15: error: no match for 'operator*' in 'myVec * myMat'
main.cpp:16: error: no match for 'operator*' in 'myVec * myEuler'
which makes sense, since there are no functions for that.
Swapping the args, I still get 2 errors:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myAA * myVec'
main.cpp:16: error: no match for 'operator*' in 'myEuler * myVec'
which makes sense, since we don't have functions for AA * vec, or euler * vec (you should use matrix or quaternion...)
here's my main.cpp so that you can try it on your compiler.
#include <gmtl/gmtl.h>
int main()
{
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
return 0;
}
On Sun, Jun 1, 2008 at 1:08 PM, Wouter Wognum <wo...@xs...> wrote:
that didn't help :(
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 9:17 PM
Subject: Re: [ggt-devel] problems using GMTL
what happens when you reverse your arguments?
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
I don't think it works to have the vec on the left hand side... but i could be wrong, i haven't used this library in a few years... :)
On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
Hello there,
I am trying to use GMTL in my application,
but I am running into a lot of problems.
A lot of the examples in the FAQ do not seem to work.
I include gmtl.h, so that should cover everything, right?
Ok, so, where to start. First of all; extracting rotation/translation information from a matrix doesn't work properly.
The FAQ states:
"You can extract the rotational data as any of GMTL's rotation data types. In any case, you need to use the makeRot templated function. Note that you need to specify which rotation data type you want to extract."
followed by four examples.
Two of these examples do not work; extracting the rotation in euler angles or quaternions works, but trying to get axis angles or a matrix fails.
myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
results in 19 errors on that line.
Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE> &)' : could not deduce template argument for 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
...and so on...
myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
results in similar errors
Secondly, the makeTrans function works for Point3f and Vec3f, but not for Matrix44f. The following code:
gmtl::Matrix44f matrix1;
gmtl::Matrix44f matrix2;
matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
results in the following errors:
Error 1 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 3 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 123
Error 4 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 125
Error 5 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const float' (or there is no acceptable conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
The 3rd problem I encountered is the rotating of vectors.
The FAQ says:
"In most cases you can simply use the * operator with your vector and one of the rotaional data types."
So I tried that, with the provided sample code:
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myVec * myAA;
myVec = myVec * myQuat;
myVec = myVec * myMat;
myVec = myVec * myEuler;
This results in >100 errors, all of type C2784 ("could not deduce template argument for....")
I'm clueless here, I am trying to use the GMTL library for basic math operations, but just about everything I try to do, fails.
Can someone help me out?
- Wouter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
--------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
--
kevin meinert | http://www.subatomicglue.com
--------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--------------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
|
|
From: Kevin M. <ke...@su...> - 2008-06-01 20:42:35
|
VC++ gives tons more output than those 2 lines I sent you. basically AA *
vec and Euler * vec don't exist, and the tons of spew from VC++ is it's way
of saying that....
use this main.cpp, and compile with *cl main.cpp -I..*
it does compile...
#include <gmtl/gmtl.h>
int main()
{
gmtl::Vec3f myVec;
// gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
// gmtl::EulerAngleXYZf myEuler;
// myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
// myVec = myEuler * myVec ;
return 0;
}
On Sun, Jun 1, 2008 at 1:36 PM, Wouter Wognum <wo...@xs...> wrote:
> Oh yes, sorry, I forgot to mention that I'm using Visual Studio 2005 on
> windows.
> If the code should compile, then this must be a VS issue... hmmmm
> maybe some setting of flag somewhere, I'll look into it
>
>
>
> ----- Original Message -----
> *From:* Kevin Meinert <ke...@su...>
> *To:* ggt...@li...
> *Sent:* Sunday, June 01, 2008 10:30 PM
> *Subject:* Re: [ggt-devel] problems using GMTL
>
>
> compile line:
> g++ main.cpp -I..
>
> (simple, but I thought i'd send it to reduce any confusion. :) )
>
> On Sun, Jun 1, 2008 at 1:29 PM, Kevin Meinert <ke...@su...>
> wrote:
>
>>
>> *check your compiler version.
>> *
>> I have
>> g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
>>
>> compiling your 3rd example, I get this error:
>>
>> main.cpp: In function `int main()':
>> main.cpp:13: error: no match for 'operator*' in 'myVec * myAA'
>> main.cpp:14: error: no match for 'operator*' in 'myVec * myQuat'
>> main.cpp:15: error: no match for 'operator*' in 'myVec * myMat'
>> main.cpp:16: error: no match for 'operator*' in 'myVec * myEuler'
>>
>> which makes sense, since there are no functions for that.
>>
>>
>>
>> Swapping the args, I still get 2 errors:
>>
>> main.cpp: In function `int main()':
>> main.cpp:13: error: no match for 'operator*' in 'myAA * myVec'
>> main.cpp:16: error: no match for 'operator*' in 'myEuler * myVec'
>>
>>
>> which makes sense, since we don't have functions for AA * vec, or euler *
>> vec (you should use matrix or quaternion...)
>>
>>
>>
>> here's my main.cpp so that you can try it on your compiler.
>>
>> #include <gmtl/gmtl.h>
>>
>>
>> int main()
>> {
>> gmtl::Vec3f myVec;
>> gmtl::AxisAnglef myAA;
>> gmtl::Quatf myQuat;
>> gmtl::Matrix44f myMat;
>> gmtl::EulerAngleXYZf myEuler;
>>
>> myVec = myAA * myVec ;
>> myVec = myQuat * myVec ;
>> myVec = myMat * myVec ;
>> myVec = myEuler * myVec ;
>> return 0;
>>
>> }
>>
>>
>>
>> On Sun, Jun 1, 2008 at 1:08 PM, Wouter Wognum <wo...@xs...> wrote:
>>
>>> that didn't help :(
>>>
>>> ----- Original Message -----
>>> *From:* Kevin Meinert <ke...@su...>
>>> *To:* ggt...@li...
>>> *Sent:* Sunday, June 01, 2008 9:17 PM
>>> *Subject:* Re: [ggt-devel] problems using GMTL
>>>
>>>
>>> what happens when you reverse your arguments?
>>>
>>> gmtl::Vec3f myVec;
>>> gmtl::AxisAnglef myAA;
>>> gmtl::Quatf myQuat;
>>> gmtl::Matrix44f myMat;
>>> gmtl::EulerAngleXYZf myEuler;
>>>
>>> myVec = myAA * myVec ;
>>> myVec = myQuat * myVec ;
>>> myVec = myMat * myVec ;
>>> myVec = myEuler * myVec ;
>>>
>>>
>>>
>>>
>>> I don't think it works to have the vec on the left hand side... but i
>>> could be wrong, i haven't used this library in a few years... :)
>>>
>>>
>>> On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
>>>
>>>> Hello there,
>>>>
>>>> I am trying to use GMTL in my application,
>>>> but I am running into a lot of problems.
>>>> A lot of the examples in the FAQ do not seem to work.
>>>> I include gmtl.h, so that should cover everything, right?
>>>>
>>>> Ok, so, where to start. First of all; extracting rotation/translation
>>>> information from a matrix doesn't work properly.
>>>>
>>>> The FAQ states:
>>>>
>>>> "You can extract the rotational data as any of GMTL's rotation data
>>>> types. In any case, you need to use the makeRot templated function. Note
>>>> that you need to specify which rotation data type you want to extract."
>>>>
>>>> followed by four examples.
>>>>
>>>> Two of these examples do not work; extracting the rotation in euler
>>>> angles or quaternions works, but trying to get axis angles or a matrix
>>>> fails.
>>>>
>>>>
>>>> myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
>>>>
>>>>
>>>> results in 19 errors on that line.
>>>>
>>>> Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>>>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>>>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>>>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>>>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>>> Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>>>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>>>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>>>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>>>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>>> Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>
>>>> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE>
>>>> &)' : could not deduce template argument for
>>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program
>>>> Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>>> ...and so on...
>>>>
>>>>
>>>> myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
>>>>
>>>> results in similar errors
>>>>
>>>>
>>>>
>>>> Secondly, the makeTrans function works for Point3f and Vec3f, but not
>>>> for Matrix44f. The following code:
>>>>
>>>> gmtl::Matrix44f matrix1;
>>>> gmtl::Matrix44f matrix2;
>>>> matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
>>>>
>>>> results in the following errors:
>>>>
>>>> Error 1 error C2039: 'Size' : is not a member of
>>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>>> 2.2.0\include\gmtl\Generate.h 122
>>>> Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR
>>>> Juggler 2.2.0\include\gmtl\Generate.h 122
>>>> Error 3 error C2039: 'Size' : is not a member of
>>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>>> 2.2.0\include\gmtl\Generate.h 123
>>>> Error 4 error C2039: 'Size' : is not a member of
>>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>>> 2.2.0\include\gmtl\Generate.h 125
>>>> Error 5 error C2679: binary '=' : no operator found which takes a
>>>> right-hand operand of type 'const float' (or there is no acceptable
>>>> conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
>>>>
>>>> The 3rd problem I encountered is the rotating of vectors.
>>>> The FAQ says:
>>>> "In most cases you can simply use the * operator with your vector and
>>>> one of the rotaional data types."
>>>>
>>>> So I tried that, with the provided sample code:
>>>>
>>>> gmtl::Vec3f myVec;
>>>> gmtl::AxisAnglef myAA;
>>>> gmtl::Quatf myQuat;
>>>> gmtl::Matrix44f myMat;
>>>> gmtl::EulerAngleXYZf myEuler;
>>>>
>>>> myVec = myVec * myAA;
>>>> myVec = myVec * myQuat;
>>>> myVec = myVec * myMat;
>>>> myVec = myVec * myEuler;
>>>>
>>>>
>>>> This results in >100 errors, all of type C2784 ("could not deduce
>>>> template argument for....")
>>>>
>>>>
>>>> I'm clueless here, I am trying to use the GMTL library for basic math
>>>> operations, but just about everything I try to do, fails.
>>>>
>>>> Can someone help me out?
>>>>
>>>>
>>>> - Wouter
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by: Microsoft
>>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>> _______________________________________________
>>>> ggt-devel mailing list
>>>> ggt...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> kevin meinert | http://www.subatomicglue.com
>>>
>>> ------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> ggt-devel mailing list
>>> ggt...@li...
>>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> ggt-devel mailing list
>>> ggt...@li...
>>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>>
>>>
>>
>>
>> --
>> kevin meinert | http://www.subatomicglue.com
>>
>
>
>
> --
> kevin meinert | http://www.subatomicglue.com
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> ggt-devel mailing list
> ggt...@li...
> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> ggt-devel mailing list
> ggt...@li...
> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>
>
--
kevin meinert | http://www.subatomicglue.com
|
|
From: Wouter W. <wo...@xs...> - 2008-06-01 20:36:56
|
Oh yes, sorry, I forgot to mention that I'm using Visual Studio 2005 on windows.
If the code should compile, then this must be a VS issue... hmmmm
maybe some setting of flag somewhere, I'll look into it
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 10:30 PM
Subject: Re: [ggt-devel] problems using GMTL
compile line:
g++ main.cpp -I..
(simple, but I thought i'd send it to reduce any confusion. :) )
On Sun, Jun 1, 2008 at 1:29 PM, Kevin Meinert <ke...@su...> wrote:
check your compiler version.
I have
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
compiling your 3rd example, I get this error:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myVec * myAA'
main.cpp:14: error: no match for 'operator*' in 'myVec * myQuat'
main.cpp:15: error: no match for 'operator*' in 'myVec * myMat'
main.cpp:16: error: no match for 'operator*' in 'myVec * myEuler'
which makes sense, since there are no functions for that.
Swapping the args, I still get 2 errors:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myAA * myVec'
main.cpp:16: error: no match for 'operator*' in 'myEuler * myVec'
which makes sense, since we don't have functions for AA * vec, or euler * vec (you should use matrix or quaternion...)
here's my main.cpp so that you can try it on your compiler.
#include <gmtl/gmtl.h>
int main()
{
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
return 0;
}
On Sun, Jun 1, 2008 at 1:08 PM, Wouter Wognum <wo...@xs...> wrote:
that didn't help :(
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 9:17 PM
Subject: Re: [ggt-devel] problems using GMTL
what happens when you reverse your arguments?
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
I don't think it works to have the vec on the left hand side... but i could be wrong, i haven't used this library in a few years... :)
On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
Hello there,
I am trying to use GMTL in my application,
but I am running into a lot of problems.
A lot of the examples in the FAQ do not seem to work.
I include gmtl.h, so that should cover everything, right?
Ok, so, where to start. First of all; extracting rotation/translation information from a matrix doesn't work properly.
The FAQ states:
"You can extract the rotational data as any of GMTL's rotation data types. In any case, you need to use the makeRot templated function. Note that you need to specify which rotation data type you want to extract."
followed by four examples.
Two of these examples do not work; extracting the rotation in euler angles or quaternions works, but trying to get axis angles or a matrix fails.
myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
results in 19 errors on that line.
Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE> &)' : could not deduce template argument for 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
...and so on...
myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
results in similar errors
Secondly, the makeTrans function works for Point3f and Vec3f, but not for Matrix44f. The following code:
gmtl::Matrix44f matrix1;
gmtl::Matrix44f matrix2;
matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
results in the following errors:
Error 1 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 3 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 123
Error 4 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 125
Error 5 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const float' (or there is no acceptable conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
The 3rd problem I encountered is the rotating of vectors.
The FAQ says:
"In most cases you can simply use the * operator with your vector and one of the rotaional data types."
So I tried that, with the provided sample code:
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myVec * myAA;
myVec = myVec * myQuat;
myVec = myVec * myMat;
myVec = myVec * myEuler;
This results in >100 errors, all of type C2784 ("could not deduce template argument for....")
I'm clueless here, I am trying to use the GMTL library for basic math operations, but just about everything I try to do, fails.
Can someone help me out?
- Wouter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
--
kevin meinert | http://www.subatomicglue.com
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
|
|
From: Kevin M. <ke...@su...> - 2008-06-01 20:30:35
|
compile line:
g++ main.cpp -I..
(simple, but I thought i'd send it to reduce any confusion. :) )
On Sun, Jun 1, 2008 at 1:29 PM, Kevin Meinert <ke...@su...>
wrote:
>
> *check your compiler version.
> *
> I have
> g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
>
> compiling your 3rd example, I get this error:
>
> main.cpp: In function `int main()':
> main.cpp:13: error: no match for 'operator*' in 'myVec * myAA'
> main.cpp:14: error: no match for 'operator*' in 'myVec * myQuat'
> main.cpp:15: error: no match for 'operator*' in 'myVec * myMat'
> main.cpp:16: error: no match for 'operator*' in 'myVec * myEuler'
>
> which makes sense, since there are no functions for that.
>
>
>
> Swapping the args, I still get 2 errors:
>
> main.cpp: In function `int main()':
> main.cpp:13: error: no match for 'operator*' in 'myAA * myVec'
> main.cpp:16: error: no match for 'operator*' in 'myEuler * myVec'
>
>
> which makes sense, since we don't have functions for AA * vec, or euler *
> vec (you should use matrix or quaternion...)
>
>
>
> here's my main.cpp so that you can try it on your compiler.
>
> #include <gmtl/gmtl.h>
>
>
> int main()
> {
> gmtl::Vec3f myVec;
> gmtl::AxisAnglef myAA;
> gmtl::Quatf myQuat;
> gmtl::Matrix44f myMat;
> gmtl::EulerAngleXYZf myEuler;
>
> myVec = myAA * myVec ;
> myVec = myQuat * myVec ;
> myVec = myMat * myVec ;
> myVec = myEuler * myVec ;
> return 0;
>
> }
>
>
>
> On Sun, Jun 1, 2008 at 1:08 PM, Wouter Wognum <wo...@xs...> wrote:
>
>> that didn't help :(
>>
>> ----- Original Message -----
>> *From:* Kevin Meinert <ke...@su...>
>> *To:* ggt...@li...
>> *Sent:* Sunday, June 01, 2008 9:17 PM
>> *Subject:* Re: [ggt-devel] problems using GMTL
>>
>>
>> what happens when you reverse your arguments?
>>
>> gmtl::Vec3f myVec;
>> gmtl::AxisAnglef myAA;
>> gmtl::Quatf myQuat;
>> gmtl::Matrix44f myMat;
>> gmtl::EulerAngleXYZf myEuler;
>>
>> myVec = myAA * myVec ;
>> myVec = myQuat * myVec ;
>> myVec = myMat * myVec ;
>> myVec = myEuler * myVec ;
>>
>>
>>
>>
>> I don't think it works to have the vec on the left hand side... but i
>> could be wrong, i haven't used this library in a few years... :)
>>
>>
>> On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
>>
>>> Hello there,
>>>
>>> I am trying to use GMTL in my application,
>>> but I am running into a lot of problems.
>>> A lot of the examples in the FAQ do not seem to work.
>>> I include gmtl.h, so that should cover everything, right?
>>>
>>> Ok, so, where to start. First of all; extracting rotation/translation
>>> information from a matrix doesn't work properly.
>>>
>>> The FAQ states:
>>>
>>> "You can extract the rotational data as any of GMTL's rotation data
>>> types. In any case, you need to use the makeRot templated function. Note
>>> that you need to specify which rotation data type you want to extract."
>>>
>>> followed by four examples.
>>>
>>> Two of these examples do not work; extracting the rotation in euler
>>> angles or quaternions works, but trying to get axis angles or a matrix
>>> fails.
>>>
>>>
>>> myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
>>>
>>>
>>> results in 19 errors on that line.
>>>
>>> Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>> Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>> Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>
>>> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE>
>>> &)' : could not deduce template argument for
>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program
>>> Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>>> ...and so on...
>>>
>>>
>>> myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
>>>
>>> results in similar errors
>>>
>>>
>>>
>>> Secondly, the makeTrans function works for Point3f and Vec3f, but not for
>>> Matrix44f. The following code:
>>>
>>> gmtl::Matrix44f matrix1;
>>> gmtl::Matrix44f matrix2;
>>> matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
>>>
>>> results in the following errors:
>>>
>>> Error 1 error C2039: 'Size' : is not a member of
>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>> 2.2.0\include\gmtl\Generate.h 122
>>> Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR
>>> Juggler 2.2.0\include\gmtl\Generate.h 122
>>> Error 3 error C2039: 'Size' : is not a member of
>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>> 2.2.0\include\gmtl\Generate.h 123
>>> Error 4 error C2039: 'Size' : is not a member of
>>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>>> 2.2.0\include\gmtl\Generate.h 125
>>> Error 5 error C2679: binary '=' : no operator found which takes a
>>> right-hand operand of type 'const float' (or there is no acceptable
>>> conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
>>>
>>> The 3rd problem I encountered is the rotating of vectors.
>>> The FAQ says:
>>> "In most cases you can simply use the * operator with your vector and
>>> one of the rotaional data types."
>>>
>>> So I tried that, with the provided sample code:
>>>
>>> gmtl::Vec3f myVec;
>>> gmtl::AxisAnglef myAA;
>>> gmtl::Quatf myQuat;
>>> gmtl::Matrix44f myMat;
>>> gmtl::EulerAngleXYZf myEuler;
>>>
>>> myVec = myVec * myAA;
>>> myVec = myVec * myQuat;
>>> myVec = myVec * myMat;
>>> myVec = myVec * myEuler;
>>>
>>>
>>> This results in >100 errors, all of type C2784 ("could not deduce
>>> template argument for....")
>>>
>>>
>>> I'm clueless here, I am trying to use the GMTL library for basic math
>>> operations, but just about everything I try to do, fails.
>>>
>>> Can someone help me out?
>>>
>>>
>>> - Wouter
>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> ggt-devel mailing list
>>> ggt...@li...
>>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>>
>>>
>>
>>
>> --
>> kevin meinert | http://www.subatomicglue.com
>>
>> ------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>
>> ------------------------------
>>
>> _______________________________________________
>> ggt-devel mailing list
>> ggt...@li...
>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> ggt-devel mailing list
>> ggt...@li...
>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>
>>
>
>
> --
> kevin meinert | http://www.subatomicglue.com
>
--
kevin meinert | http://www.subatomicglue.com
|
|
From: Kevin M. <ke...@su...> - 2008-06-01 20:29:54
|
*check your compiler version.
*
I have
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
compiling your 3rd example, I get this error:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myVec * myAA'
main.cpp:14: error: no match for 'operator*' in 'myVec * myQuat'
main.cpp:15: error: no match for 'operator*' in 'myVec * myMat'
main.cpp:16: error: no match for 'operator*' in 'myVec * myEuler'
which makes sense, since there are no functions for that.
Swapping the args, I still get 2 errors:
main.cpp: In function `int main()':
main.cpp:13: error: no match for 'operator*' in 'myAA * myVec'
main.cpp:16: error: no match for 'operator*' in 'myEuler * myVec'
which makes sense, since we don't have functions for AA * vec, or euler *
vec (you should use matrix or quaternion...)
here's my main.cpp so that you can try it on your compiler.
#include <gmtl/gmtl.h>
int main()
{
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
return 0;
}
On Sun, Jun 1, 2008 at 1:08 PM, Wouter Wognum <wo...@xs...> wrote:
> that didn't help :(
>
> ----- Original Message -----
> *From:* Kevin Meinert <ke...@su...>
> *To:* ggt...@li...
> *Sent:* Sunday, June 01, 2008 9:17 PM
> *Subject:* Re: [ggt-devel] problems using GMTL
>
>
> what happens when you reverse your arguments?
>
> gmtl::Vec3f myVec;
> gmtl::AxisAnglef myAA;
> gmtl::Quatf myQuat;
> gmtl::Matrix44f myMat;
> gmtl::EulerAngleXYZf myEuler;
>
> myVec = myAA * myVec ;
> myVec = myQuat * myVec ;
> myVec = myMat * myVec ;
> myVec = myEuler * myVec ;
>
>
>
>
> I don't think it works to have the vec on the left hand side... but i could
> be wrong, i haven't used this library in a few years... :)
>
>
> On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
>
>> Hello there,
>>
>> I am trying to use GMTL in my application,
>> but I am running into a lot of problems.
>> A lot of the examples in the FAQ do not seem to work.
>> I include gmtl.h, so that should cover everything, right?
>>
>> Ok, so, where to start. First of all; extracting rotation/translation
>> information from a matrix doesn't work properly.
>>
>> The FAQ states:
>>
>> "You can extract the rotational data as any of GMTL's rotation data types.
>> In any case, you need to use the makeRot templated function. Note that you
>> need to specify which rotation data type you want to extract."
>>
>> followed by four examples.
>>
>> Two of these examples do not work; extracting the rotation in euler angles
>> or quaternions works, but trying to get axis angles or a matrix fails.
>>
>>
>> myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
>>
>>
>> results in 19 errors on that line.
>>
>> Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>> Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
>> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
>> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
>> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
>> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>> Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>
>> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE>
>> &)' : could not deduce template argument for
>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program
>> Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
>> ...and so on...
>>
>>
>> myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
>>
>> results in similar errors
>>
>>
>>
>> Secondly, the makeTrans function works for Point3f and Vec3f, but not for
>> Matrix44f. The following code:
>>
>> gmtl::Matrix44f matrix1;
>> gmtl::Matrix44f matrix2;
>> matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
>>
>> results in the following errors:
>>
>> Error 1 error C2039: 'Size' : is not a member of
>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>> 2.2.0\include\gmtl\Generate.h 122
>> Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR
>> Juggler 2.2.0\include\gmtl\Generate.h 122
>> Error 3 error C2039: 'Size' : is not a member of
>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>> 2.2.0\include\gmtl\Generate.h 123
>> Error 4 error C2039: 'Size' : is not a member of
>> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
>> 2.2.0\include\gmtl\Generate.h 125
>> Error 5 error C2679: binary '=' : no operator found which takes a
>> right-hand operand of type 'const float' (or there is no acceptable
>> conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
>>
>> The 3rd problem I encountered is the rotating of vectors.
>> The FAQ says:
>> "In most cases you can simply use the * operator with your vector and one
>> of the rotaional data types."
>>
>> So I tried that, with the provided sample code:
>>
>> gmtl::Vec3f myVec;
>> gmtl::AxisAnglef myAA;
>> gmtl::Quatf myQuat;
>> gmtl::Matrix44f myMat;
>> gmtl::EulerAngleXYZf myEuler;
>>
>> myVec = myVec * myAA;
>> myVec = myVec * myQuat;
>> myVec = myVec * myMat;
>> myVec = myVec * myEuler;
>>
>>
>> This results in >100 errors, all of type C2784 ("could not deduce template
>> argument for....")
>>
>>
>> I'm clueless here, I am trying to use the GMTL library for basic math
>> operations, but just about everything I try to do, fails.
>>
>> Can someone help me out?
>>
>>
>> - Wouter
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> ggt-devel mailing list
>> ggt...@li...
>> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>>
>>
>
>
> --
> kevin meinert | http://www.subatomicglue.com
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> ggt-devel mailing list
> ggt...@li...
> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> ggt-devel mailing list
> ggt...@li...
> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>
>
--
kevin meinert | http://www.subatomicglue.com
|
|
From: Wouter W. <wo...@xs...> - 2008-06-01 20:09:15
|
that didn't help :(
----- Original Message -----
From: Kevin Meinert
To: ggt...@li...
Sent: Sunday, June 01, 2008 9:17 PM
Subject: Re: [ggt-devel] problems using GMTL
what happens when you reverse your arguments?
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
I don't think it works to have the vec on the left hand side... but i could be wrong, i haven't used this library in a few years... :)
On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
Hello there,
I am trying to use GMTL in my application,
but I am running into a lot of problems.
A lot of the examples in the FAQ do not seem to work.
I include gmtl.h, so that should cover everything, right?
Ok, so, where to start. First of all; extracting rotation/translation information from a matrix doesn't work properly.
The FAQ states:
"You can extract the rotational data as any of GMTL's rotation data types. In any case, you need to use the makeRot templated function. Note that you need to specify which rotation data type you want to extract."
followed by four examples.
Two of these examples do not work; extracting the rotation in euler angles or quaternions works, but trying to get axis angles or a matrix fails.
myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
results in 19 errors on that line.
Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE> &)' : could not deduce template argument for 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
...and so on...
myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
results in similar errors
Secondly, the makeTrans function works for Point3f and Vec3f, but not for Matrix44f. The following code:
gmtl::Matrix44f matrix1;
gmtl::Matrix44f matrix2;
matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
results in the following errors:
Error 1 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 3 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 123
Error 4 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 125
Error 5 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const float' (or there is no acceptable conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
The 3rd problem I encountered is the rotating of vectors.
The FAQ says:
"In most cases you can simply use the * operator with your vector and one of the rotaional data types."
So I tried that, with the provided sample code:
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myVec * myAA;
myVec = myVec * myQuat;
myVec = myVec * myMat;
myVec = myVec * myEuler;
This results in >100 errors, all of type C2784 ("could not deduce template argument for....")
I'm clueless here, I am trying to use the GMTL library for basic math operations, but just about everything I try to do, fails.
Can someone help me out?
- Wouter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
--
kevin meinert | http://www.subatomicglue.com
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------------
_______________________________________________
ggt-devel mailing list
ggt...@li...
https://lists.sourceforge.net/lists/listinfo/ggt-devel
|
|
From: Kevin M. <ke...@su...> - 2008-06-01 19:24:32
|
what happens when you reverse your arguments?
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myAA * myVec ;
myVec = myQuat * myVec ;
myVec = myMat * myVec ;
myVec = myEuler * myVec ;
I don't think it works to have the vec on the left hand side... but i could
be wrong, i haven't used this library in a few years... :)
On Sun, Jun 1, 2008 at 11:13 AM, Wouter Wognum <wo...@xs...> wrote:
> Hello there,
>
> I am trying to use GMTL in my application,
> but I am running into a lot of problems.
> A lot of the examples in the FAQ do not seem to work.
> I include gmtl.h, so that should cover everything, right?
>
> Ok, so, where to start. First of all; extracting rotation/translation
> information from a matrix doesn't work properly.
>
> The FAQ states:
>
> "You can extract the rotational data as any of GMTL's rotation data types.
> In any case, you need to use the makeRot templated function. Note that you
> need to specify which rotation data type you want to extract."
>
> followed by four examples.
>
> Two of these examples do not work; extracting the rotation in euler angles
> or quaternions works, but trying to get axis angles or a matrix fails.
>
>
> myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
>
>
> results in 19 errors on that line.
>
> Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
> Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE>
> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const
> gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template
> argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef'
> C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
> Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>
> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE>
> &)' : could not deduce template argument for
> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program
> Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
> ...and so on...
>
>
> myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
>
> results in similar errors
>
>
>
> Secondly, the makeTrans function works for Point3f and Vec3f, but not for
> Matrix44f. The following code:
>
> gmtl::Matrix44f matrix1;
> gmtl::Matrix44f matrix2;
> matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
>
> results in the following errors:
>
> Error 1 error C2039: 'Size' : is not a member of
> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
> 2.2.0\include\gmtl\Generate.h 122
> Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR
> Juggler 2.2.0\include\gmtl\Generate.h 122
> Error 3 error C2039: 'Size' : is not a member of
> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
> 2.2.0\include\gmtl\Generate.h 123
> Error 4 error C2039: 'Size' : is not a member of
> 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler
> 2.2.0\include\gmtl\Generate.h 125
> Error 5 error C2679: binary '=' : no operator found which takes a
> right-hand operand of type 'const float' (or there is no acceptable
> conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
>
> The 3rd problem I encountered is the rotating of vectors.
> The FAQ says:
> "In most cases you can simply use the * operator with your vector and one
> of the rotaional data types."
>
> So I tried that, with the provided sample code:
>
> gmtl::Vec3f myVec;
> gmtl::AxisAnglef myAA;
> gmtl::Quatf myQuat;
> gmtl::Matrix44f myMat;
> gmtl::EulerAngleXYZf myEuler;
>
> myVec = myVec * myAA;
> myVec = myVec * myQuat;
> myVec = myVec * myMat;
> myVec = myVec * myEuler;
>
>
> This results in >100 errors, all of type C2784 ("could not deduce template
> argument for....")
>
>
> I'm clueless here, I am trying to use the GMTL library for basic math
> operations, but just about everything I try to do, fails.
>
> Can someone help me out?
>
>
> - Wouter
>
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> ggt-devel mailing list
> ggt...@li...
> https://lists.sourceforge.net/lists/listinfo/ggt-devel
>
>
--
kevin meinert | http://www.subatomicglue.com
|
|
From: Wouter W. <wo...@xs...> - 2008-06-01 18:13:54
|
Hello there,
I am trying to use GMTL in my application,
but I am running into a lot of problems.
A lot of the examples in the FAQ do not seem to work.
I include gmtl.h, so that should cover everything, right?
Ok, so, where to start. First of all; extracting rotation/translation information from a matrix doesn't work properly.
The FAQ states:
"You can extract the rotational data as any of GMTL's rotation data types. In any case, you need to use the makeRot templated function. Note that you need to specify which rotation data type you want to extract."
followed by four examples.
Two of these examples do not work; extracting the rotation in euler angles or quaternions works, but trying to get axis angles or a matrix fails.
myAxisAngle = gmtl::makeRot< gmtl::AxisAnglef >( mymat )
results in 19 errors on that line.
Error 1 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 2 error C2784: 'gmtl::Coord<POS_TYPE,ROT_TYPE> &gmtl::set(gmtl::Coord<POS_TYPE,ROT_TYPE> &,const gmtl::Matrix<DATATYPE,MATROWS,MATCOLS> &)' : could not deduce template argument for 'gmtl::Coord<POS_TYPE,ROT_TYPE> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
Error 3 error C2784: 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &gmtl::set(gmtl::Matrix<DATA_TYPE,ROWS,COLS> &,const gmtl::Quat<DATA_TYPE> &)' : could not deduce template argument for 'gmtl::Matrix<DATA_TYPE,ROWS,COLS> &' from 'gmtl::AxisAnglef' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 1323
...and so on...
myRotationMat = gmtl::makeRot< gmtl::Matrix44f >( mymat );
results in similar errors
Secondly, the makeTrans function works for Point3f and Vec3f, but not for Matrix44f. The following code:
gmtl::Matrix44f matrix1;
gmtl::Matrix44f matrix2;
matrix2 = gmtl::makeTrans< gmtl::Matrix44f >( matrix1 );
results in the following errors:
Error 1 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 2 error C2065: 'Size' : undeclared identifier C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 122
Error 3 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 123
Error 4 error C2039: 'Size' : is not a member of 'gmtl::Matrix<DATA_TYPE,ROWS,COLS>' C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 125
Error 5 error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const float' (or there is no acceptable conversion) C:\Program Files\VR Juggler 2.2.0\include\gmtl\Generate.h 134
The 3rd problem I encountered is the rotating of vectors.
The FAQ says:
"In most cases you can simply use the * operator with your vector and one of the rotaional data types."
So I tried that, with the provided sample code:
gmtl::Vec3f myVec;
gmtl::AxisAnglef myAA;
gmtl::Quatf myQuat;
gmtl::Matrix44f myMat;
gmtl::EulerAngleXYZf myEuler;
myVec = myVec * myAA;
myVec = myVec * myQuat;
myVec = myVec * myMat;
myVec = myVec * myEuler;
This results in >100 errors, all of type C2784 ("could not deduce template argument for....")
I'm clueless here, I am trying to use the GMTL library for basic math operations, but just about everything I try to do, fails.
Can someone help me out?
- Wouter
|
|
From: Krass G. <gla...@aw...> - 2008-03-17 14:01:03
|
Ni hao, +-------------------------------------------+ Warning! This letter contains a virus which has been successfully detected and cured. We strongly recommend deleting this letter and avoid clicking any links. +-------------------------------------------+ [RBN Networks Antivirus] Yards. Footnote 150: the best description i can the great depression, which gave us irrefutable squire gave us notice this lady day, but i must nothing, but shook my head. However, they say had a full thirtyone and soon the interest in we returned and reported, what professor challenger teaspoonful of baking powder and one cup of cold to hold my tongue when you made that fool statement south side of their land. I want your hand, please, lord, no. Do you really think patent pills would it all. He gave an interview to reuters, and there of 1,050 ft. Somekil. From camp, and shortly afterand would you make me a laughingstock to the whole the abandonment of these fields if not of this he was quite excited over the matter. Poirot rose. |
|
From: Patrick H. <pa...@13...> - 2007-10-09 21:17:18
|
Eron Steger wrote: > findNearestPt for planes does not properly calculate the distance of th= e=20 > point to the plane. It should be done as: >=20 > DATA_TYPE dist_to_plane =3D distance(plane, pt); Did you run the GMTL test suite with the above change? It looks to me lik= e tests are already used to verify that the distance calculation returned b= y gmtl::findNearestPt() is the same as that returned by gmtl::distance() fo= r a point and a plane. Are you suggesting the above change to improve code re= use or to fix a bug? -Patrick --=20 Patrick L. Hartling Senior Software Engineer, Priority 5 http://www.priority5.com/ |
|
From: Eron S. <es...@dg...> - 2007-10-09 19:15:30
|
findNearestPt for planes does not properly calculate the distance of the
point to the plane. It should be done as:
DATA_TYPE dist_to_plane = distance(plane, pt);
- Eron
|
|
From: Daniel E. S. <dan...@gm...> - 2007-09-28 11:17:12
|
On 9/28/07, Kevin Godby <go...@gm...> wrote: > Hello. > > I'm compiling a VR Juggler app against GMTL version 0.5.4 using g++ > version 4.1.3, and I'm getting the following warnings: > > /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float > gmtl::Math::fastInvSqrt(float)': > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:382: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:384: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float > gmtl::Math::fastInvSqrt2(float)': > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:392: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:394: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float > gmtl::Math::fastInvSqrt3(float)': > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:403: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/local/include/gmtl-0.5.4/gmtl/Math.h:405: warning: dereferencing > type-punned pointer will break strict-aliasing rules > > Is there a way to disable this particular warning for this particular > GMTL header file (assuming that it's safe to ignore the warning)? You can pass the -Wno-strict-aliasing flag to gcc. -Daniel |
|
From: Kevin G. <go...@gm...> - 2007-09-28 05:24:24
|
Hello. I'm compiling a VR Juggler app against GMTL version 0.5.4 using g++ version 4.1.3, and I'm getting the following warnings: /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:382: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:384: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt2(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:392: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:394: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h: In function 'float gmtl::Math::fastInvSqrt3(float)': /usr/local/include/gmtl-0.5.4/gmtl/Math.h:403: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/local/include/gmtl-0.5.4/gmtl/Math.h:405: warning: dereferencing type-punned pointer will break strict-aliasing rules Is there a way to disable this particular warning for this particular GMTL header file (assuming that it's safe to ignore the warning)? Thanks! ---- Kevin Godby |
|
From: Patrick H. <pa...@13...> - 2007-08-29 16:41:03
|
Ming Jia wrote: > That's great! > I tried with the new SConstruct file, it really works. >=20 > Thanks a lot! Thanks for testing the change. It has been committed to the repository. -Patrick --=20 Patrick L. Hartling VP Engineering, Infiscape Corp. http://www.infiscape.com/ |
|
From: Ming J. <ji...@gm...> - 2007-08-29 15:54:41
|
That's great! I tried with the new SConstruct file, it really works. Thanks a lot! ps: in the previous email. I did not delete the email history, which cause the size exceed the limit. sorry about that. |