lines in 3d files

w_reade
Unregistered
 
Post: #1
Does anyone know of a file format which has, and an editor which makes use of, lines?

As I understand it, your average 3d model is a whole load of vertices, with each polygon basically stored as a list of vertices - "vertex 27, vertex 28, vertex 36", as it were. What file formats and editors will let me save and get data about lines (stored much like polygons), such as "vertex 7, vertex 13, vertex 17, vertex 22, vertex 29, vertex 42"?

If this is gibberish, tell me and I'll try to articulate what I want betterÖ we need an emoticon for "vague but expressive gesture". TWIM (= think what I mean)? Rolleyes
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
I have no idea if this is what you mean... but Meshwork explicitly stores edges as well as triangles...
Quote this message in a reply
Member
Posts: 469
Joined: 2002.10
Post: #3
Are you talking about paths?Huh

---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Quote this message in a reply
w_reade
Unregistered
 
Post: #4
Well, if you look at this funky cel-shading businessÖ it doesn't take an expert to see that it looks shite unless you're very careful or lucky or both, even though it clearly could look good. I want to be able to take a mesh and flag certain edges to always be drawn (depth test permitting), to avoid the way geometric detail is wont to disappear.

If you download the NeHe cel-shading example (here ), you'll see what I mean - for example, press space to start rotating and look at the hexagonal bits on the hips. They'd look much better if the model edges had outlines, rather than just the screen-projected edges having outlines (as it is at the moment).

Of course, I could determine the angles between polygons as I load the files, and flag only those edges with a sufficiently sharp angle, but I would lose any fine control, and I'd probably spend a lot of time tweaking models to convince my loader to produce the effects I'm after, and could spend obscene amounts of time and effort for results that are still uncertain, and probably wrong for any new model.

So, I was wondering if anyone knew an editor that'd let me store arbitrary numbers of lines of arbitrary length, along with the vertex and poly data? .obj format seems to have space for this functionality, so I suppose that's a possibility, but it doesn't do me much good without an editor that lets me do this.

Does that make more sense?

I'll look at meshworkÖ if it just stores all the edges, it's not what I want, but if I can attach some sort of data to individual edges (a single flag is all I really needÖ more might be nice), it should do the trick.
Quote this message in a reply
w_reade
Unregistered
 
Post: #5
heh, yes, meshwork stores all the vertices and edges and presumably constructs the polygons from them - certainly, there's no explicit POLYGON section in the format.

SoÖ suggestion box remains openÖ
Quote this message in a reply
Moderator
Posts: 365
Joined: 2002.04
Post: #6
You could try Quickdraw 3D's 3DMF format. It supports virtually every kind of object you can think (including lines). Of course, because Quickdraw 3D was discontinued by Apple years ago, you'd have to use Quesa instead. I used to use 3DMF for all kinds of things, and I can vouch for its usefulness.

I can't think of an editor that would generate just line primitives in 3DMF or any other format, though. Maybe the old QD3D-based modeller 3D World would do the trick, or you could knock one together yourself using Quesa (easier than you might expect).

Neil Carter
Nether - Mac games and comic art
Quote this message in a reply
Founder
Posts: 1,139
Joined: 2002.04
Post: #7
Are you talking about some kind of Nurbs? Hash uses something called a "patch".

What is it that you want to do? (white lines?? ha ha)

Carlos A. Camacho,
Founder
iDevGames
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #8
Meshwork has an explicit TRIANGLES section. It doesn't support arbitrary polygons.

You can mark vertices with bones in meshwork... not precisely what you're after, but it might work...
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenAL - Ogg files vs Caf files Fred9000 8 14,605 Aug 23, 2011 08:01 PM
Last Post: ipeku
  n00b question: getting rid of lines along edges of polygons Andrew 2 2,797 Jun 5, 2005 05:57 PM
Last Post: Andrew
  Blending -> Black Lines Through Textures (Wireframe like) hangt5 2 3,312 Apr 5, 2005 05:06 AM
Last Post: ThemsAllTook
  Weird lines on my display? AngelDaniel 1 2,307 Mar 12, 2005 08:55 AM
Last Post: AngelDaniel
  textures vs lines and polygons reubert 16 6,899 Jul 9, 2003 05:20 PM
Last Post: henryj