FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Progress Update: Getting Unittests to work...
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Tue Apr 17, 2007 12:59 pm    Post subject: Reply with quote

It might be my card... or it might be your lighting conditions.

I took a screenshot of the problem:

http://svn.dsource.org/projects/arclib/web/screenshots/artifact.PNG
Back to top
View user's profile Send private message AIM Address
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Tue Apr 17, 2007 2:26 pm    Post subject: Reply with quote

Ah, now I see it. Same here. I'll look into it.

Edit: Committed a fix. Should be better now.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Apr 18, 2007 8:35 am    Post subject: Reply with quote

looks good to me, thanks!
Back to top
View user's profile Send private message AIM Address
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Thu Apr 19, 2007 9:17 am    Post subject: Reply with quote

I committed one test of the sprite in the sprite unittest (the pointTo test).

Also I noticed limitFPS does not really work how it should, as it allows for 'jumps' (I submitted a new ticket that tells how you can re-create these weird time jumps).

Also, to get pointTo to work properly, I had to comment out some of the pointTo code like...

Code:

targetAngle = /*degreeToRadian(*/PI - atan2(argX-getX, argY-getY);//);


It doesn't work when targetAngle is in radians, for some reason. :-/
Back to top
View user's profile Send private message AIM Address
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Thu Apr 19, 2007 10:05 am    Post subject: Reply with quote

Quote:
Also I noticed limitFPS does not really work how it should, as it allows for 'jumps' (I submitted a new ticket that tells how you can re-create these weird time jumps)


See the comment on the ticket.

Quote:
Also, to get pointTo to work properly


Can you explain the problem more? Yes, you have to remove the degreeToRadian conversion, but what is not working?
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Thu Apr 19, 2007 10:31 am    Post subject: Reply with quote

Changes to arcunittest are in, also make sure to update arc svn as well.

This is the code in pointTo before I modified it, this code does not work because it is in radians, I suppose.

Code:

targetAngle = degreeToRadian(PI - atan2(argX-getX, argY-getY));


I changed the code to

Code:

targetAngle = PI - atan2(argX-getX, argY-getY);


and the code works fine like that.
Back to top
View user's profile Send private message AIM Address
ChristianK



Joined: 26 Sep 2006
Posts: 159
Location: Berlin, Germany

PostPosted: Thu Apr 19, 2007 1:08 pm    Post subject: Reply with quote

Yes, the degreeToRadian was a bug, since its argument definitely is in radians already. Checking the change log, I see that it was added in one of Brix' patches. He saw the 'toRadians' function (which took a float and returned the value unchanged, but as 'Radians' - which was a strong typedef at that time) and mistakenly replaced it with degreeToRadian.

Stealthy bug, good catch!
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Fri Apr 20, 2007 10:47 am    Post subject: Reply with quote

I reopened the limitFPS ticket... it is still causing visible ticks for me.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group