Skip to main content
GameDev.net gamedev.net
🔒 Locked

Stripe's .objf file format

Started by bishop_pass Jan 28, 2003 at 2:59 PM 3 replies 800+ views
Original Post
bishop_pass
bishop_pass
Stripe. In the file format spec, (click on file format on their homepage) does anyone know why the ''t'' parameter would ever have more than 3 vertices, and why the ''q'' parameter would ever have more than 1 vertex? And sometimes, the ''t'' parameter only has 2 vertices. It seems like ''t'' would signify a new strip, and all of the following vertices in the file until a new ''t'' is found would simply be the list of vertices in the strip. If this is the case, what is the point in varying the number of vertices in the ''t'' and ''q'' lists?
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in
bishop_pass
bishop_pass
I''m looking at the output, and it appears to just be meta-info, letting you know that vertices are being swapped. From the renderer''s point of view, I believe this info can be ignored if the renderer wants to ignore it, and just assume that the list of vertices beginning with ''t'' is a triangle strip list - paying no attention to whether vertices are being swapped or not.
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in
bishop_pass
bishop_pass
Then again, I don''t know. What is the point in beginning the strip with 3 4 3, as they are doing in the second set?
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in
paulc
paulc
The only reason I can think of is that its doing some sort of degenerate tri stuff, but it isn''t obvious why. The file format doesn''t really seem to have much logic to it. Surely a tri-strip should start with 2 initial vertices and then each subsequent vertex forms a new tri, so a simple list of vertex indices would be enough:
t 6 2 4 9 3 5 7 8 (totally random example)
Why have the q''s when you a sequence of t''s as above will do?
GameCat
GameCat
I haven''t looked at the spec so this is just a guess, but it might signify the changing of winding order. On certain older sgi systems I think you could change the winding order of a strip even in the middle of submitting one. I think the API functionality for this was removed with OpenGL so it''s ancient as hell but it''s a guess.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.