3D Vertex Rotation

Post your own tutorials, guides and demos.

Post » Sun Oct 19, 2008 12:43 am

Using a bit of fancy math, I managed to come up with this method for creating wireframe 3D objects using vertices:

3D Vertex Rotation << Use arrow keys to rotate cylinder.

It works by giving each vertex a value for the distance to the center of the object, the angle to the center of the object(both angle and distance taken from top view), and then the depth of the vertex(or, more accurately, it's Y position in the model). These are all then taken and run through some fancy maths, along with the X rotation of the camera, and voila! You have a wonderful, rotatable wireframe 3D model.

If anybody wants they can try and improve the wireframe drawing(currently vertices draw wires to every other vertex), or try and deform sprites to make faces.

Hope everybody likes it. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sun Oct 19, 2008 12:45 am

that is slick
B
2
S
2
G
4
Posts: 254
Reputation: 1,958

Post » Sun Oct 19, 2008 2:03 am

Nice bit of maths :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Oct 19, 2008 2:18 am

wow...
B
6
S
2
G
5
Posts: 249
Reputation: 2,323

Post » Sun Oct 19, 2008 10:08 am

Lookin good! Now turn it into crysis ;)
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sun Oct 19, 2008 12:36 pm

Dude that's sweet! That would be a neat trick to use for a few things I can think of.... like a remake of the old line vector based coin-op star wars game. :D

[quote="David":2oar43dg]Lookin good! Now turn it into crysis ;)[/quote:2oar43dg]

ROFLMAO XD


~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sun Oct 19, 2008 12:59 pm

DAMN YOUUUU i was just about to make something like this

it looks better than n64 graphics
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun Oct 19, 2008 2:50 pm

Thanks for all of the comments, everybody. :) I've been working on improving it and making the method more normal, so I might post an update later.

[quote="David":3efe4plh]Lookin good! Now turn it into crysis ;)[/quote:3efe4plh]

I would if I could man, I would if I could. :P
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sun Oct 19, 2008 7:14 pm

[quote="SoldjahBoy":796zg31c]Dude that's sweet! That would be a neat trick to use for a few things I can think of.... like a remake of the old line vector based coin-op star wars game. :D[/quote:796zg31c]

Dude, that game rocked :D

And so does this .cap! :D
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Oct 20, 2008 1:45 am

Thanks, deadeye. :) Anyways, I've got it to where you can load 3D models that have been modified slightly. This version loads a 3D model of an X-Wing that my brother made:

X-Wing 3D Viewer << Make sure you extract this!

No wire-frame this time since I can't find a way to make lines drawn between the right points. I'm still working that.

If anybody has a model they'd like to see in it, just send me a .3DS or .OBJ file and I'll convert it for loading. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests