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 / queer rotations??

Author
Message
BackBONE
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location:
Posted: 22nd Feb 2003 00:54
Loaded some of those litle things i done woth DBC into DBP.
In every prog where i create a Plane object it dont behave the same way as in DBC when it comes to rotations.

Then i made a new project to test something about plains.
and everytime i use set object to camera orientation the object is invisible.Thougt its a prop of normals first, but even when i flip it, or set cull on it keeps hiding.
If i set gosting on objects that are further away from the camera show thru (not partly completly) so its hiding again.

And somehow it seems that turn object and roll object comand isn`t working as well.

Any sugestions how to handle this???

.. How should i ever compete, if allways have to beat such sings
Krash
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location:
Posted: 23rd Feb 2003 05:54
From what I've seen, set object to camera orientation, for some reason, moves the object to the camera's location. So the object probably isn't invisible, just that you're looking from "inside" of the object. Set cull to off and see if you can see the inside of your object.

It's a known and annoying fact that the rotation commands are seriously flawed and I hope a fix is coming soon...

It's all fun and games 'till someone loses an arm...
Ratty Rat
22
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 24th Feb 2003 17:57
In other posts here Lee (I think it was Lee) admitted there were problems with the way the rotate object commands worked and that they would be fixed later.

Not sure if its in the patch 4 bundle though.

This code snippet showed it up best for me, the idea is to get a rolling cube.

` Rotate problem, V3 - this one definately works in DB113
make object cube 1,100
position object 1, 0,0,0
autocam off
point camera 0,0,0
move camera -100
sync on

repeat
zz=0:xx=0
if rightkey() then zz = 1
if leftkey() then zz = 359
if upkey() then xx = 1
if downkey() then xx = 359


rem Rotate Object 1
xrotate object 1,xx
zrotate object 1,zz
fix object pivot 1

sync
until escapekey()
end

In this example (the results vary depending on what you are trying to do) the xrotate works OK (IE rolls around the objects axis) but the zrotate seems to always rotate around the global axis
Ratty Rat
22
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 24th Feb 2003 17:58
Oh bugger, forgot to press the 'code' button, sorry.

Also note this works fine in DB v113.

Login to post a reply

Server time is: 2025-05-20 01:30:14
Your offset time is: 2025-05-20 01:30:14