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.

The 20 Line Challenge / Rotating Wireframe Cube

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 6th Mar 2003 20:35
Made using 2D commands. I have only figured out how to make it rotate around 1 axis, and some of the calculations could be optimised but I couldn't figure out how to.

Yum! Yum! Yum! Yum!
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 7th Mar 2003 00:13
This is similar to what I used to do in QBasic. Looks good, seeing as you aren't using the 3D commands.

Once I was but the learner,
now, I am the Master.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Mar 2003 17:29
yeah, the first version I did was in yabasic

Yum! Yum! Yum! Yum!
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 7th Mar 2003 20:08
Oh no
I was planning to do a similare programm
congratulations ^^

I'm following John, but I'm not john.
Lol, it is funnier in french
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Mar 2003 20:47
You could always make it better. Make it rotate around 2 axis! Or give it faces (I tried to learn all that dot product and matrix stuff but I just couldn't get my head around it).

Yum! Yum! Yum! Yum!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 8th Mar 2003 16:49
Ha Ha! Too late! Heres my updated version with an "interactive interface" (sounds good but isn't) and rotation along multiple axis'.

DBC only (someone could try and tweek it if they like, it would be appeciated)...



Yum! Yum! Yum! Yum!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 8th Mar 2003 16:59
Ooops! Controls :

"q" and "w" = z axis rotation
"a" and "s" = y axis rotation
"z" and "x" = x axis rotation
arrows = cube size and view point adjustment

Yum! Yum! Yum! Yum!
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 8th Mar 2003 22:07
It works for DBP too if you use this code.



"If you can't make it good
make it look good."
Bill Gates
sinny
21
Years of Service
User Offline
Joined: 7th Feb 2003
Location:
Posted: 11th Mar 2003 05:39
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 13th Mar 2003 17:53
Not on DB, I'd need DBP as that has a triangle command to fill the faces in. Also I'd need to get the hang of backface culling, and still that probably wouldn't fit on 20 lines.

Why the hell'd you ask me for crying out loud!?!

Login to post a reply

Server time is: 2024-11-23 12:59:13
Your offset time is: 2024-11-23 12:59:13