3D Vertex Rotation

Post your own tutorials, guides and demos.

Post » Sat Oct 25, 2008 1:50 am

Okay, so apparently I lied about being unable to speed it up and now I feel stupid. :P All I had to do was store each face in its own object and give it the locations of the vertices that connect to make the face. Then I send those numbers through the same math I use for rotating the vertices. Boom! Fast wireframe. Although, it's not so fast that I would go ridiculous with it. I wouldn't recommend taking it above 400 vertices/faces or it won't run well for some people. Anyways, here it is:

Fast Wire-Frame Drawing

Sorry that there's still no perspective, but I think I'll leave that up to someone else to figure out. :?
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sat Oct 25, 2008 2:47 am

Most impressive (all examples.)
B
2
S
2
G
4
Posts: 156
Reputation: 1,762

Post » Sat Oct 25, 2008 7:08 am

Link... you are a



and I mean that in the most endearing way! :D

~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 » Sat Oct 25, 2008 1:17 pm

wow, you should draw faces in now!, using distortion like i did in my perspective drawer!!!
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat Oct 25, 2008 3:11 pm

Thanks for the comments again, everybody! :) I actually did dabble with filled faces, but it runs about 50%-75% slower. There's also no Z-Ordering so the model kind of "flip flops" when you rotate past a certain point. I'll see if I can't fix that, though. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sat Oct 25, 2008 4:00 pm

this really shows there should be a 3d mesh object, with all the pitch yaw roll functions of the box, but a "load mesh" feature, i mean, cmon youve made one within the program! and its taking no control from the GPU. ontop of load mesh later on we could give it texture "diffuse" and mapping coords which are also loaded in.
i know 3d isnt like sprites, but the ability to just load meshes like youre doing here would be great and unlock alot of creativity, a simple crossection of the shape could be used for collisions, just like the 3d box
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Fri Mar 13, 2009 12:28 am

Links are dead.

stephen1980
B
2
G
3
Posts: 24
Reputation: 898

Post » Fri Mar 13, 2009 3:18 am

Sure thing. :)

3D Wireframe
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Mar 13, 2009 1:57 pm

Very nice. I didn't know someone had tried this. I tried a similar thing but with a sprite distort map a few weeks ago but my 3D math skills were limited to some small testers I did many moons ago in Delphi while following the excellent Denthor's Asphyxia tutorials.

But you could create a sprite that's just a single pixel line and use that to draw the wireframe instead of relying on the slow canvas. I had a go in the short time I had but I was unsuccessful.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Tue Jan 28, 2014 2:43 pm

Aaah! Where are all the links?
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
38
S
9
G
3
Posts: 149
Reputation: 5,986

PreviousNext

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests