游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2465|回复: 0

someone kind enough to figure out the map format

[复制链接]

2

主题

50

帖子

58

积分

注册会员

Rank: 2

积分
58
发表于 2003-10-5 18:39:00 | 显示全部楼层 |阅读模式
现在不愿多话时间看代码,好心人弄个BSP FORMAT出来吧,呵呵

FILE LUMPS:(有几个跟QUAKE差不多,应该很简单)

enum
{
        LUMP_ENTITIES                = 0,                // *
        LUMP_PLANES                        = 1,                // *
// JAY: This is texdata now, previously LUMP_TEXTURES
        LUMP_TEXDATA                = 2,                //
        LUMP_VERTEXES                = 3,                // *
        LUMP_VISIBILITY                = 4,                // *
        LUMP_NODES                        = 5,                // *
        LUMP_TEXINFO                = 6,                // *
        LUMP_FACES                        = 7,                // *
        LUMP_LIGHTING                = 8,                // *
        LUMP_OCCLUSION                = 9,
        LUMP_LEAFS                        = 10,                // *

//#define        LUMP_                        11               

        LUMP_EDGES                        = 12,                // *
        LUMP_SURFEDGES                = 13,                // *
        LUMP_MODELS                        = 14,                // *
        LUMP_WORLDLIGHTS        = 15,                //

        LUMP_LEAFFACES                = 16,                // *
        LUMP_LEAFBRUSHES        = 17,                // *
        LUMP_BRUSHES                = 18,                // *
        LUMP_BRUSHSIDES                = 19,                // *
        LUMP_AREAS                        = 20,                // *
        LUMP_AREAPORTALS        = 21,                // *
        LUMP_PORTALS                = 22,
        LUMP_CLUSTERS                = 23,
        LUMP_PORTALVERTS        = 24,
        LUMP_CLUSTERPORTALS = 25,
        LUMP_DISPINFO                = 26,
        LUMP_ORIGINALFACES        = 27,

        LUMP_PHYSCOLLIDE        = 29,
        LUMP_VERTNORMALS        = 30,
        LUMP_VERTNORMALINDICES                = 31,

        LUMP_DISP_LIGHTMAP_ALPHAS        = 32,
        LUMP_DISP_VERTS = 33,                                                // CDispVerts
       
        LUMP_DISP_LIGHTMAP_SAMPLE_POSITIONS = 34,        // For each displacement
                                                                                                //     For each lightmap sample
                                                                                                //         byte for index
                                                                                                //         if 255, then index = next byte + 255
                                                                                                //         3 bytes for barycentric coordinates

        // The game lump is a method of adding game-specific lumps
        // FIXME: Eventually, all lumps could use the game lump system
        LUMP_GAME_LUMP = 35,

        LUMP_LEAFWATERDATA        = 36,

        LUMP_PRIMITIVES                = 37,
        LUMP_PRIMVERTS                = 38,
        LUMP_PRIMINDICES        = 39,

        // A pak file can be embedded in a .bsp now, and the file system will search the pak
        //  file first for any referenced names, before deferring to the game directory
        //  file system/pak files and finally the base directory file system/pak files.
        LUMP_PAKFILE                = 40,
        LUMP_CLIPPORTALVERTS= 41,
        // A map can have a number of cubemap entities in it which cause cubemap renders
        // to be taken after running vrad.
        LUMP_CUBEMAPS                = 42,

        LUMP_TEXDATA_STRING_DATA        = 43,
        LUMP_TEXDATA_STRING_TABLE        = 44,
        LUMP_OVERLAYS                                = 45,
        LUMP_LEAFMINDISTTOWATER                = 46,
        LUMP_FACE_MACRO_TEXTURE_INFO = 47,
        LUMP_DISP_TRIS = 48
};
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2024-5-20 06:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表