CGF & Meshes

Started by
2 comments, last by Krypt0n 11 years, 2 months ago

Hi everyone.

Last my time i spend on parsing CGF(Crytek Geometry Format) files. I stucked at weird problem: wrong vetices points.

For example: i took some object from aion, parse vertices, calculate min and max, and see smth wrong.

My calculations:

x y z

max 712.1557 1133.1596 -63.77475
min -729.1334 -523.08135 -136.59977

After i open this file with 3d object converter and see different values:

x y z

max 722.231602 3130.233154 354.260895

min -719.057522 1473.992126 281.435883

Vertex data has two vector3 data: point ans smth with name "normal".

Does anyone know what i was do wrong? Maybe need to do some calculations or smth like that?

Advertisement

looks like some matrix needs to be applied, your max-min deltas look fine, just offset slightly.

Yeah, i tried to found this data, but there is nothing.

cgf file has some blocks of data: sorce info, object names, matherials, meshes.

mesh contain: vetrtex, triangles(polygons), uv vertex, uv polygons.

But there is no one data with some type of matrix of offset.

I'm upset, google did not help me too. ><

calculate the difference between your positions and the real positions, then you know the 3 floats that should be somewhere in the file, then you could try to find them. floats will obviously not be found by perfect binary comparison, but rather if you seek for values that are +- 0.001 . once you find those in the raw file, you could try to deduce in which chunks they are hidden.

This topic is closed to new replies.

Advertisement