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 / how to save rotation and movement to object files

Author
Message
Suicidal Sledder
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location: Tikrit, Iraq
Posted: 19th Feb 2012 16:48
I would like a simple program that I can use to rotate and center all of my objects so that I dont have to do it manually within my main program. I typed one up in DBP and It seems as tho the SAVE OBJECT command does not save any rotational and linear movement even though I used the FIX OBJECT PIVOT command.

It seems that I will actually need to edit the original .x file. Does anyone know of a simple program or a way to do this in DBP? All I need is movement and rotation on the 3 axises. Nothing else crazy or fancy.

thanks a mil

Sadly, programming is only a hobby for me right now. As it turns out, driving a 70 ton, 7 million dollar Abrams tank requires less qualification than pecking away at a keyboard. Who'da thunk it?

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 19th Feb 2012 16:56
you need to save position and rotation to an external file. After loading the objects, load that data from a file and then position and rotate your objects

Suicidal Sledder
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location: Tikrit, Iraq
Posted: 19th Feb 2012 17:02
good idea and that would work but I am trying to avoid the extra clutter. Isnt there a way to reposition/rotate using a simple object editor or something?

Thanks

Sadly, programming is only a hobby for me right now. As it turns out, driving a 70 ton, 7 million dollar Abrams tank requires less qualification than pecking away at a keyboard. Who'da thunk it?

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 19th Feb 2012 17:13
Quote: "reposition/rotate using a simple object editor or something?"

no. The only thing you can do is set position of the vertices. Using matrices you can position, rotate and scale vertices. That will work if your objects are static after loading. If you intend to move or rotate them ofter loading this thing will cause major problems for you.

Suicidal Sledder
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location: Tikrit, Iraq
Posted: 19th Feb 2012 17:35
ill check it out thanks

Sadly, programming is only a hobby for me right now. As it turns out, driving a 70 ton, 7 million dollar Abrams tank requires less qualification than pecking away at a keyboard. Who'da thunk it?

JRNTexas
15
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 21st Feb 2012 01:47
Ultimate Unwrap will let you manually reset any object's rotation and center point. It costs about $50 US but also does a great job of letting you UV map your objects.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 21st Feb 2012 03:43 Edited at: 21st Feb 2012 03:44
Could not resist the hilariousness of this...



Enjoy

I was going to ask what ultimateunrwrap3d did loading their site took me a while but aaah that made my day

EDIT

I hope that isnt seen in the wrong way or anything I am not encouraging anything just thought the kick of it was worth the mention...

Login to post a reply

Server time is: 2026-07-09 23:12:32
Your offset time is: 2026-07-09 23:12:32