Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


CGF & Meshes


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 toptaran   Members   -  Reputation: 104

Like
0Likes
Like

Posted 31 January 2013 - 09:07 PM

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?



Sponsor:

#2 Krypt0n   Crossbones+   -  Reputation: 2608

Like
2Likes
Like

Posted 01 February 2013 - 12:32 AM

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



#3 toptaran   Members   -  Reputation: 104

Like
0Likes
Like

Posted 01 February 2013 - 07:38 AM

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



#4 Krypt0n   Crossbones+   -  Reputation: 2608

Like
1Likes
Like

Posted 01 February 2013 - 08:14 AM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS