2 - Triangulation

2 - Triangulation

Postby Bob » Wed Sep 19, 2007 11:08 am

This one is going to require some time, and visualization skills, so keep that in mind before you get into things too heavily.

One of the cooler things that i ever did was my OBJ 2 SMD converter. it is pretty much only string parsing and outputting in a different format, but the devil is in the details. When i first created the application i was in the middle of HL2 development so i didnt want to waste too much time on one part - triangulation. In creating the application i realized that there was a requirement for the input obj model to have been triangulated. If the user did not provide a triangulated model the application could obviously triangulate the model, and in a few situations i did, but there were some situations that just did not work.

I challenge you, given a 3d model in obj format (i will provide a few) to triangulate it in a methodical approach, allowing for the fact that this is going to be read back in to the application. You can of course put your own spin on things but i did this originally in C, and the application & source code is available here.
Bob
Site Admin
 
Posts: 252
Joined: Mon Nov 20, 2006 12:24 am
Location: San Jose California

Re: 2 - Triangulation

Postby tjmonk15 » Mon Sep 24, 2007 6:37 am

Any chance on getting a sample obj file? heh im kinda lazy :-P
tjmonk15
Site Admin
 
Posts: 3
Joined: Wed May 30, 2007 6:47 am

Re: 2 - Triangulation

Postby Bob » Mon Sep 24, 2007 6:53 am

Ah yes, Yes you are... If you had followed the link i provided before you would have found one, but allow me to hand you the input filez.
Attachments
torus.obj
(51.73 KiB) Downloaded 413 times
cone.obj
(3.59 KiB) Downloaded 436 times
cube.obj
(1.55 KiB) Downloaded 427 times
sphere.obj
(50.06 KiB) Downloaded 412 times
Bob
Site Admin
 
Posts: 252
Joined: Mon Nov 20, 2006 12:24 am
Location: San Jose California


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron