PDA

View Full Version : .obj request



Dodgy
02-01-2008, 09:44 AM
Hi all,

Does anyone have any .obj examples using lines, instead of polys? I'm looking for small examples, of just a few lines if possible (easier to debug that way).
I've tried all sorts to get some lines, but all I've found are polys and points, nothing in between. Any of you chaps care to oblige?

Thanks,
Mike

Medi8or
02-01-2008, 11:25 AM
Isn't .obj files pretty straight forward, so to make a line or two you could just do it in a text-editor?

#
#Make some vertices
v -1.0 0.0 0.0
v -1.0 1.0 0.0
v 0.0 0.5 0.0
v 1.0 1.0 0.0
v 1.0 0.0 0.0

#Make line between vertices
l 0 1 2 3 4 5

#End..

Medi8or
02-01-2008, 11:42 AM
(Obviously I got a 0 too much in there. Should just be "l 1 2 3 4 5".. )