I'm writing a decompression algorithm binary format 3D model, but I have something does not work. For example, I unpacked the cube.
This block faces in file (HEX editor):
I came to the conclusion that something is wrong with the faces. Faces extraction code looks like this:
Thank You in advance for your help!
P.S sorry for my English)
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Model polygons are bad? [Solved]
Model polygons are bad? [Solved]
Last edited by lan1211 on Wed Nov 30, 2016 5:20 am, edited 2 times in total.
Re: Model polygons are bad?
For the box you have 8 vertices, but your indices go up to 23, so that's probably not index data or there are more vertices.
Re: Model polygons are bad?
Yes, I know that there should be 24, but in front of the block with the vertices there is a block of 4 bytes, which indicates the number, there is number 8. Face correct, because in the file there are no more blocks, in which could be faces. I noticed that all the options vertices, which could be a cube (no repeated vertices), where present, so there is likely peaks are compressed to reduce the file size.Sir Kane wrote:For the box you have 8 vertices, but your indices go up to 23, so that's probably not index data or there are more vertices.
Last edited by lan1211 on Tue Nov 29, 2016 12:09 pm, edited 1 time in total.
Re: Model polygons are bad?
Zoltan,Karpati wrote:lan1211,
Nice to see my program (3D Object Converter) in work.
Which file format are you working on?
I'm writing a program to extract the 3d model in the binary file format (.dobj v1) in the .x format (Direct X ASCII). 3D Object Converter I use to visually see the results.
By the way, I once wrote to you on your email about this file format DOBJ v1.
Last edited by lan1211 on Tue Nov 29, 2016 12:09 pm, edited 1 time in total.
Re: Model polygons are bad? [Solved]
Lossy compression, maps in other files:)Sir Kane wrote:Well, what was it?