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.

Code Snippets / Rotating 3D Objects

Author
Message
lcfcfan
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 1st Jun 2003 23:14 Edited at: 1st Jun 2003 23:18
Here is some code for rotating 3d objects could be useful for a 3d file viewer or something!

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 2nd Jun 2003 01:11
lol...
:-s
lcfcfan
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 2nd Jun 2003 01:16 Edited at: 2nd Jun 2003 01:16
what do you mean lol?

andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 2nd Jun 2003 03:00 Edited at: 2nd Jun 2003 03:00
It's um... very simple
but useful to a noob

"Food is güd!" -Dean
"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Jun 2003 08:18
dont forget a few things.

how are you going to escape that forever loop

should you delete that object after its usage? yes! and terminate correctly


a better method might be like this including the wrapvalue command and manual update instead of inc for DBC/DBP compatability





bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 2nd Jun 2003 09:44
oops indi... dont ya mean..

mx = wrapvalue(mx + 1)
my = wrapvalue(my + 1)
mz = wrapvalue(mz + 1)

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Jun 2003 09:51
either way it both seems to work

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 3rd Jun 2003 06:31
hmmmmmmm it should not.....


take an example:

mx=360
mx = wrapvalue(mx) + 1
mx=360+1
mx=361

..should not work....maybe a bug.....but...
i did not tested it...
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Jun 2003 07:18
this has to be the definative "hello 3d cube world" db script

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 3rd Jun 2003 09:39
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 4th Jun 2003 04:05
LAULE!
lcfcfan
21
Years of Service
User Offline
Joined: 19th Feb 2003
Location: North East, UK
Posted: 4th Jun 2003 22:53
Deleted eh? fair enough!

Login to post a reply

Server time is: 2024-04-16 20:46:27
Your offset time is: 2024-04-16 20:46:27