# 3D Vertex Rotation

Post your own tutorials, guides and demos.

### » 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
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

### » Sun Oct 19, 2008 12:45 am

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

### » Sun Oct 19, 2008 2:03 am

Nice bit of maths
Scirra Founder
B
415
S
248
G
92
Posts: 25,295
Reputation: 200,994

### » Sun Oct 19, 2008 2:18 am

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

### » 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

### » 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.

[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
84
S
34
G
41
Posts: 3,032
Reputation: 30,999

### » 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
79
S
13
G
8
Posts: 1,977
Reputation: 9,947

### » 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.
Moderator
B
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

### » 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. [/quote:796zg31c]

Dude, that game rocked

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

### » 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
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

Next