3D object coordinate

This topic contains 3 replies, has 4 voices, and was last updated by  Arron 6 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30100

    rch
    Member

    Hi!

    I’m developping a 3D application with the API opengl es 2.0. When i download the powerVR SDK to work with, i found that there is a table that contain value like this

    0x3e8,0xb,0x502e4241,0x322e444f,0xe800302e,0x800003,0xea000000,0xd3000003,0x62000003,0x65786946,0x696f5064,0x303d746e,0x6e49620a,0x65786564,0xa313d64,0x746e4962,0x656c7265,0x64657661,0x620a313d,0x74726f53,0x3d787456,0x54620a30,0x65676e61,0x7053746e,0x3d656361,

    I would like to know how to generate this number.

    Great thanks!

    #33831

    Scott
    Moderator
    rch wrote:
    Hi!
    I’m developping a 3D application with the API opengl es 2.0. When i download the powerVR SDK to work with, i found that there is a table that contain value like this
    0x3e8,0xb,0x502e4241,0x322e444f,0xe800302e,0x800003,…
    I would like to know how to generate this number.
    Great thanks!

     

    Hi,

     

    The ‘table’ was generated using the SDK’s Filewrap utility located in UtilitiesFilewrap. Filewrap takes a text or binary file (in your example a .pod file) and generates a C++ source file that can be compiled and linked into your application.

     

    For instructions on how to use it please see the ‘Memory File System and FileWrap’ section in the SDK user guide.

     

    Thanks,

     

    Scott

    Scott2010-04-08 15:44:52

    #33832

    maadiah
    Member

    can i generate the .pod file with the .cpp file? any tools?

    #33833

    Arron
    Member

    Hi.

    You can use the Memory File System tools bundled with the SDK to access the contents of this file as a char* buffer, and save this out using standard C IO functionality.

    Something like this:

    char* pBuffer;

    size_t BufferSize;

    CPVRTMemoryFileSystem::GetFile(MEMORY_FILE_NAME, &pBuffer, &BufferSize);

    FILE* pFile = fopen(“PODFile.pod”, “wb”);

    fwrite(pBuffer, 1, BufferSize, pFile);

    fclose(pFile);

    [/CODE][CODE]

    char* pBuffer;

    size_t BufferSize;

    CPVRTMemoryFileSystem::GetFile(MEMORY_FILE_NAME, &pBuffer, &BufferSize);

    FILE* pFile = fopen(“PODFile.pod”, “wb”);

    fwrite(pBuffer, 1, BufferSize, pFile);

    fclose(pFile);

    [/CODE]

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.