View Single Post
Old 10-16-11, 01:17 PM   #86
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Got the mesh bindings sorted out:

Model found at 0x1477C (0x14944)
Model name=NBB_King_GeorgeV
Flags=0 0x14788 (0x14950)
Origin=0.000000, 0.000000, 0.000000 0x1478C (0x14954)
Rotation (quaternion)=0.000000, 0.000000, 0.000000, 1.000000 0x14798 (0x14960)
Scale=1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 0x147A8 (0x14970)
Number of mesh bindings=47 0x147CC (0x14994)
Mesh bindings start at 0x147DC (0x149A4)
Mesh binding 0 pointer (0x146D4) found at 0x147DC (0x149A4)
Mesh binding 1 pointer (0x14468) found at 0x147E0 (0x149A8)
Mesh binding 2 pointer (0x141FC) found at 0x147E4 (0x149AC)
Mesh binding 3 pointer (0x13F90) found at 0x147E8 (0x149B0)
Mesh binding 4 pointer (0x13D24) found at 0x147EC (0x149B4)
Mesh binding 5 pointer (0x13AB8) found at 0x147F0 (0x149B8)
Mesh binding 6 pointer (0x1384C) found at 0x147F4 (0x149BC)
Mesh binding 7 pointer (0x135E0) found at 0x147F8 (0x149C0)
Mesh binding 8 pointer (0x13374) found at 0x147FC (0x149C4)
Mesh binding 9 pointer (0x13108) found at 0x14800 (0x149C8)
Mesh binding 10 pointer (0x12E9C) found at 0x14804 (0x149CC)
Mesh binding 11 pointer (0x12C30) found at 0x14808 (0x149D0)
Mesh binding 12 pointer (0x129C4) found at 0x1480C (0x149D4)
Mesh binding 13 pointer (0x12758) found at 0x14810 (0x149D8)
Mesh binding 14 pointer (0x124EC) found at 0x14814 (0x149DC)
Mesh binding 15 pointer (0x12280) found at 0x14818 (0x149E0)
Mesh binding 16 pointer (0x12014) found at 0x1481C (0x149E4)
Mesh binding 17 pointer (0x11DA8) found at 0x14820 (0x149E8)
Mesh binding 18 pointer (0x11B3C) found at 0x14824 (0x149EC)
Mesh binding 19 pointer (0x118D0) found at 0x14828 (0x149F0)
Mesh binding 20 pointer (0x11664) found at 0x1482C (0x149F4)
Mesh binding 21 pointer (0x113F8) found at 0x14830 (0x149F8)
Mesh binding 22 pointer (0x1118C) found at 0x14834 (0x149FC)
Mesh binding 23 pointer (0x10F20) found at 0x14838 (0x14A00)
Mesh binding 24 pointer (0x10CB4) found at 0x1483C (0x14A04)
Mesh binding 25 pointer (0x10A48) found at 0x14840 (0x14A08)
Mesh binding 26 pointer (0x107DC) found at 0x14844 (0x14A0C)
Mesh binding 27 pointer (0x10570) found at 0x14848 (0x14A10)
Mesh binding 28 pointer (0x10304) found at 0x1484C (0x14A14)
Mesh binding 29 pointer (0x10098) found at 0x14850 (0x14A18)
Mesh binding 30 pointer (0xFE2C) found at 0x14854 (0x14A1C)
Mesh binding 31 pointer (0xFBC0) found at 0x14858 (0x14A20)
Mesh binding 32 pointer (0xF954) found at 0x1485C (0x14A24)
Mesh binding 33 pointer (0xF6E8) found at 0x14860 (0x14A28)
Mesh binding 34 pointer (0xF47C) found at 0x14864 (0x14A2C)
Mesh binding 35 pointer (0xF210) found at 0x14868 (0x14A30)
Mesh binding 36 pointer (0xEFA4) found at 0x1486C (0x14A34)
Mesh binding 37 pointer (0xED38) found at 0x14870 (0x14A38)
Mesh binding 38 pointer (0xEACC) found at 0x14874 (0x14A3C)
Mesh binding 39 pointer (0xE85C) found at 0x14878 (0x14A40)
Mesh binding 40 pointer (0xE5F0) found at 0x1487C (0x14A44)
Mesh binding 41 pointer (0xE384) found at 0x14880 (0x14A48)
Mesh binding 42 pointer (0xE118) found at 0x14884 (0x14A4C)
Mesh binding 43 pointer (0xDEAC) found at 0x14888 (0x14A50)
Mesh binding 44 pointer (0xDC40) found at 0x1488C (0x14A54)
Mesh binding 45 pointer (0xD9D4) found at 0x14890 (0x14A58)
Mesh binding 46 pointer (0xD768) found at 0x14894 (0x14A5C)
There is no extended data associated with this model

Now I have to write classes for mesh, Primary VertexData, Primary Topology (which is a tritopology group), materials, and textures and then I can finally release my viewer/editor so that everyone can test it.

Since it uses no external dll files (granny2.dll) RAD games (aka the maker of Granny) can kiss my you know what!! There's nothing they can do

I do have to say that Privateer provided the information to overcome that last stumbling block I was having with reading/deciphering the GR2 file. I needed something, just one little tiny bit of information, that told me how to read the beginning of the file. The first version of the template for 010 editor gave me that last piece of the puzzle.

Now taking this GR2 file apart for it's information is pretty easy now. Editing it's contents (like the extended data for items, changing vertex positions, changing texture coordinate positions, and the likes) can be easily done. What will be very hard to do is adding new content to the file or removing content (say verticies for example). The reason is because of the pointers. The pointers are used to 'build' an item, menu, model, etc. There is a specific way it has to be done and it will take some time to figure out all the algorithms. This is where we need people to start looking it over/figuring out the algorithms. The more people working on this the faster it will be achieved.

I do have to say that I'm a little disappointed in the fact that no-one wanted to help in my little open-source project. There were quite a few that downloaded the source code but I never heard one comment/suggestion/etc. from them. I had a few comments that I was living in a 'fantasy' and the likes but I think those that made those comments will be eating their words soon (crow tastes good doesn't it?) Consider open-source project closed now in the fact that no new source code will be released.


Last edited by TheDarkWraith; 10-16-11 at 01:52 PM.
TheDarkWraith is offline   Reply With Quote