3D rotating box, around all 3 axis

Post your own tutorials, guides and demos.

Post » Tue May 12, 2009 7:00 pm

Just a little finger-excercise.

http://www.willhostforfood.com/access.php?fileid=66062

It's completely undocumented, for now. Does anyone want to see a tutorial for this?

If so, I really need to clean this up. Each point gets calculated 3 times, the line function is way too complicated since all the math for drawing the box is in there, and I need to clean up all the variables.
B
4
G
3
Posts: 39
Reputation: 978

Post » Tue May 12, 2009 7:29 pm

Nice!

I take it you've made something like that before.
So tell us did Construct make it any easier?
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Tue May 12, 2009 7:52 pm

Wow, that is complicated :P

I think I'll stick to the 3D Box object. My brains don't math too good hurr *drools on self*
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue May 12, 2009 7:56 pm

A very long time ago. I dug up some of the math from the internet, and implemented it.

Construct requires a different way of thinking from normal programming languages, and it takes some getting used to.
The lack of a line function posed a bit of a challenge, but otherwise it worked very nicely.
B
4
G
3
Posts: 39
Reputation: 978

Post » Tue May 12, 2009 9:38 pm

awesome stuff
just so you know though
you only need one function object
and you make all the functions you want
function call function "x-rot"
you can even use expressions for function names
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue May 12, 2009 9:49 pm

Yeah, it's a mess. I cobbles it together just to see if I could, and not to see if I could do it neatly. I really need to restructure it if I'm to tell other people how I did it.
B
4
G
3
Posts: 39
Reputation: 978

Post » Wed May 13, 2009 12:34 am

ive been trying to make 3d polygon rotation for a while now, but i just gave up since i couldnt find the real math for perspective calcuations :L

nice job on this, id love to see .3ds importing like i heard linkman had done a while ago.

i might mod this to add mesh distorted faces! if its alright with you
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed May 13, 2009 1:10 am

Nifty. :) I didn't notice when I looked at this earlier that there's actually perspective, something that eluded me when I did this. The method I came up with didn't really support it.

[quote="QuaziGNRLnose":p1okz1m8]nice job on this, id love to see .3ds importing like i heard linkman had done a while ago.[/quote:p1okz1m8]
Mine didn't actually import .3DS files. I used Anim8or to output a vertex file(or something), then I cut all of the unnecessary crap out so I could read the files line by line unhindered.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Wed May 13, 2009 1:16 am

shh, make yourself seem awesome :P
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed May 13, 2009 6:36 am

[quote="QuaziGNRLnose":1grybcin]ive been trying to make 3d polygon rotation for a while now, but i just gave up since i couldnt find the real math for perspective calcuations :L

nice job on this, id love to see .3ds importing like i heard linkman had done a while ago.

i might mod this to add mesh distorted faces! if its alright with you[/quote:1grybcin]

Sure, go ahead, if you can make sense of it.
B
4
G
3
Posts: 39
Reputation: 978

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests