Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 04:17:17 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Links problem
Pages: [1]
Print
Author Topic: Links problem  (Read 1807 times)
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« on: 19. January 2007, 03:28:39 pm »

Hey Marvin !

Here is the small bug showcase program about Links.

You should see a square of 25x25 small digibots, while you can only see one at a time.

Could you take a look at it ?

(Note : there are several classes, it's the "Links" class)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 19. January 2007, 08:00:09 pm »

Fixed Smiley. Anyway you seem to have a calculation bug in the rotation code. The bots disappear after the rotation succeeds 120 degrees. I am too tired to look deeper into it. But I'm sure, you will find it. Otherwise we can discuss it tomorrow.

btw. Why did you send all these classes? They are not needed by the Links test.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #2 on: 20. January 2007, 10:57:31 am »

Thanks, I'll test it now.

btw. Why did you send all these classes? They are not needed by the Links test.
I have a "test" project in Eclipse where all goes before being committed to the xith-tk and where I put all small test programs (ex. jar manipulation, bug showcases, etc..)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 20. January 2007, 12:10:39 pm »

Sorry. The disappearing when rotated 120 degrees actially was in the SceneGraph code (Links/SharedGroups + Bounds). Strange, that it hasn't been faced earlier Huh. Anyway it's fixed now.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #4 on: 20. January 2007, 01:50:07 pm »

Sorry. The disappearing when rotated 120 degrees actially was in the SceneGraph code (Links/SharedGroups + Bounds). Strange, that it hasn't been faced earlier Huh. Anyway it's fixed now.
Thanks lot.

It would have surprised me that it would have been a bug in the rotation code, since it's simply sin/cos, nothing could be simpler..
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 20. January 2007, 02:05:31 pm »

It would have surprised me that it would have been a bug in the rotation code, since it's simply sin/cos, nothing could be simpler..

Well, I could imaging even simpler code, but not much Wink.

Marvin
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #6 on: 20. January 2007, 02:32:40 pm »

It would have surprised me that it would have been a bug in the rotation code, since it's simply sin/cos, nothing could be simpler..
Well, I could imaging even simpler code, but not much Wink.
Sometimes simpler means shorter means less clear, and in that case I do not shorten the code.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 20. January 2007, 02:40:51 pm »

Sometimes simpler means shorter means less clear, and in that case I do not shorten the code.

Well, that was not what I meant with my little joke. I was taking about something like an addition or subtraction (which is certainly simpler than sin/cos) Wink.
Logged
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #8 on: 21. January 2007, 03:39:45 pm »

Sometimes simpler means shorter means less clear, and in that case I do not shorten the code.

Well, that was not what I meant with my little joke. I was taking about something like an addition or subtraction (which is certainly simpler than sin/cos) Wink.
Well, the day you're able to do rotation with only additions and subtractions, call me Smiley
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic