Jump to content
  • Advertisement
Sign in to follow this  
toptaran

CGF & Meshes

This topic is 2145 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement

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. ><

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!