Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Model polygons are bad? [Solved]

Post questions about game models here, or help out others!
Post Reply
lan1211
ultra-n00b
Posts: 5
Joined: Sat Nov 26, 2016 5:46 pm

Model polygons are bad? [Solved]

Post by lan1211 »

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)
Last edited by lan1211 on Wed Nov 30, 2016 5:20 am, edited 2 times in total.
Sir Kane
veteran
Posts: 104
Joined: Mon Aug 06, 2012 4:14 am
Been thanked: 96 times

Re: Model polygons are bad?

Post by Sir Kane »

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.
lan1211
ultra-n00b
Posts: 5
Joined: Sat Nov 26, 2016 5:46 pm

Re: Model polygons are bad?

Post by lan1211 »

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.
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.
Last edited by lan1211 on Tue Nov 29, 2016 12:09 pm, edited 1 time in total.
Karpati
ultra-veteran
ultra-veteran
Posts: 467
Joined: Thu Dec 07, 2006 11:25 pm
Has thanked: 9 times
Been thanked: 95 times

Re: Model polygons are bad?

Post by Karpati »

lan1211,

Nice to see my program (3D Object Converter) in work.

Which file format are you working on?
lan1211
ultra-n00b
Posts: 5
Joined: Sat Nov 26, 2016 5:46 pm

Re: Model polygons are bad?

Post by lan1211 »

Karpati wrote:lan1211,

Nice to see my program (3D Object Converter) in work.

Which file format are you working on?
Zoltan,

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.
Sir Kane
veteran
Posts: 104
Joined: Mon Aug 06, 2012 4:14 am
Been thanked: 96 times

Re: Model polygons are bad?

Post by Sir Kane »

Can you provide the box file?
lan1211
ultra-n00b
Posts: 5
Joined: Sat Nov 26, 2016 5:46 pm

Re: Model polygons are bad? [Solved]

Post by lan1211 »

Problem Solved.
Sir Kane
veteran
Posts: 104
Joined: Mon Aug 06, 2012 4:14 am
Been thanked: 96 times

Re: Model polygons are bad? [Solved]

Post by Sir Kane »

Well, what was it?
lan1211
ultra-n00b
Posts: 5
Joined: Sat Nov 26, 2016 5:46 pm

Re: Model polygons are bad? [Solved]

Post by lan1211 »

Sir Kane wrote:Well, what was it?
Lossy compression, maps in other files:)
Post Reply