Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / * rotate object problem (?)

Author
Message
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 21:32
Hi,

Just installed patch 2 (well point camera now works so I assume it's installed - put the version number in the about box please!!!) and I thought "Great! Now I can get on with things". Fifteen minutes later this problem came up:

When I * rotate an object, it is rotating around the world axis and not it's local ones. Here's some code:



The code works fine in DB, the object quite happily rotates around it's local axis. God knows what DB Pro thinks it's doing!

Am I right or have I done something stupid?
System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 21:37
P.S. I think their is a similar problem with ZROTATE CAMERA - no example yet though.

System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 22nd Oct 2002 21:56
This is doing in DBPro what DB has always done for me. It rotates on it's own angles.

-Kensupen
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 22:27
Hmm. Are you using Patch 2?

I'll try re-installing.

Cheers anyway.

System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 22nd Oct 2002 22:55
After re-installation I still have the problem. This is what I am doing:

In DB,

When you start the program, you can see the "back" of the cube.
Pressing N or M rotates the "back" of the cube around the local Z-Axis.
Press space to reset.
Now press left arrow until the AY value is around 45.
The "back" face has now rotated to the left.
If you press N or M, the "back" face rotates around the local Z-Axis as expected.

In DBPro,

When you start the program and rotate the cube with N or M, the "back" face appears to rotate OK.
Press space to reset.
Now press left arrow until the AY value is 45.
Now if you press N or M the entire cube (not just the "back" face) rotates around the world Z-Axis and not the cubes local Z-Axis!

Am I the only person getting this problem?

I suspect it helps if you can run the code in DB to compare what is happening above.

System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
NickIgoe
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: A bar somewhere
Posted: 22nd Oct 2002 23:45
I am also having problems with z rotate camera, I have a BSP which has decided to rotate itself 90 degress and no-matter what I try and do with the Z rotate camera command nothing happens. If anyone could help I would be gratefull as there is no manual at all, Only what appears to be a program listing that we all used to copy from magazines in the early eighties, which is about as much help as a kick in the testicles.
ToXic
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Australia
Posted: 23rd Oct 2002 01:11
Darkcoder, tried your code with db & dbp and it works the same here exactly as you describe, not sure what thats all about o well.
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 23rd Oct 2002 10:47
ToXic:

Thanks for taking the time to try it.

Can you see what I mean about DB Pro rotating around the world axis?
Fortunately this will not stop me coding, just stop me from being able to test the code I create!

Maybe a good time to go off and experiment with bitmapped fonts and leave the 3D stuff until patch 3 (?).

System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 23rd Oct 2002 12:26
I can confirm that in DBPro (patch 2) I get the same thing, IE that ZRotate Object seems to rotate about the world axis and not the objects local axis.
Darkcoder
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 23rd Oct 2002 13:54
Thanks Ratty Rat,

It's not just me!

I am positive the same problem exists with ZROTATE CAMERA too. Not sure about X/Y ROTATE CAMERA though.

System: 1.333Ghz Athlon Thunderbird, 512meg, Geforce 4 Ti 4400.

Hardware /nm./: the part of the computer that you can kick.
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 23rd Oct 2002 15:17
Ok, now it's not working. Ya, it's tweaky.
Last time I ran it, it worked how you'd expect it to.

-Kensupen
exLRT
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: Belgium
Posted: 23rd Oct 2002 16:30
@DarkCoder
I tested your code and it works properly here. Strange...

Ulric
ASUS A7M266 - AMD Athlon 1.4GHz - 512MB DDR266 - CreativeLabs GeForce4 Ti4600 - Windows XP Pro SP1

Login to post a reply

Server time is: 2024-03-29 06:05:14
Your offset time is: 2024-03-29 06:05:14