Logo Khaganat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:nel_files [2016/12/18 02:22] – [The Documentation] Sit Melaien:nel_files [2021/12/03 19:19] (current) – external edit 127.0.0.1
Line 4: Line 4:
 <WRAP center round info 60%> <WRAP center round info 60%>
 For now only the Classes necessary to .shape file formats are documented, more Classes are in progress. For now only the Classes necessary to .shape file formats are documented, more Classes are in progress.
- --- //[[wiki:user:siela1915|Sit Melai]] 2016/12/18 02:08//+ --- //[[user:siela1915|Sit Melai]] 2016/12/18 02:08//
 </WRAP> </WRAP>
  
Line 11: Line 11:
  
 To start some base classes that will be reused a lot: To start some base classes that will be reused a lot:
-<hidden><code>+<hidden> 
 +<WRAP prewrap 650px> 
 +<code>
 Version Version
    - 1 byte number, ver    - 1 byte number, ver
Line 56: Line 58:
       - String, classname       - String, classname
       - classname       - classname
-</code></hidden>+</code> 
 +</WRAP> 
 +</hidden>
  
 ===== Enums ===== ===== Enums =====
Line 62: Line 66:
 All enums used by the classes: All enums used by the classes:
  
-<hidden><code>+<hidden> 
 +<WRAP prewrap 650px> 
 +<code>
 TPreferredMemory: TPreferredMemory:
  RAMPreferred, // A block of driver RAM memory is allocated for this buffer. The buffer is read/write.  RAMPreferred, // A block of driver RAM memory is allocated for this buffer. The buffer is read/write.
Line 179: Line 185:
  Nearest,  Nearest,
  Linear  Linear
-</code></hidden>+ 
 +TType (Point Light) 
 + PointLight, // The light is a point. 
 + SpotLight, // The light is a spotlight with a cone. 
 + AmbientLight // The light is an Ambient PointLight in an Ig. 
 +</code> 
 +</WRAP> 
 +</hidden>
  
 ===== List ===== ===== List =====
Line 185: Line 198:
 Here's a list with all serializable classes from 3d part of nel: Here's a list with all serializable classes from 3d part of nel:
  
-<hidden><code>+<hidden> 
 +<WRAP prewrap 650px> 
 +<code>
 CMaterialBase::CAnimatedTexture // done  CMaterialBase::CAnimatedTexture // done
 CMaterialBase // done V: 1 CMaterialBase // done V: 1
-CMorphBase // done +CMorphBase // done V: -
 CBoneBase // done V: 2 CBoneBase // done V: 2
 CFlareShape  CFlareShape
Line 236: Line 251:
 CParticleSystemProcess  CParticleSystemProcess
 CParticleSystemShape  CParticleSystemShape
-CPatch  +CPatch // done V: 7 
-CPointLight  +CPointLight // done V: 2 
-CPointLightNamed  +CPointLightNamed // done V: 1 
-CPointLightNamedArray +CPointLightNamedArray // done V: 1
 CPSAttribMakerMemory<uint32>  CPSAttribMakerMemory<uint32>
 CPSAttribMakerMemory<sint32>  CPSAttribMakerMemory<sint32>
Line 306: Line 321:
 CTileSet  CTileSet
 CTileBorder  CTileBorder
-CTileElement +CTileElement // done V: -
 CTileFarBank::CTileFar  CTileFarBank::CTileFar
 CTileFarBank  CTileFarBank
-CTileLightInfluence +CTileLightInfluence // done V: -
 CTileNoiseMap  CTileNoiseMap
 CTileVegetableDesc  CTileVegetableDesc
Line 326: Line 341:
 CWaterShape  CWaterShape
 CWaveMakerShape  CWaveMakerShape
-CBorderVertex  +CBorderVertex // done V: 0 
-CZone::CPatchConnect  +CZone::CPatchConnect // done V: 1 
-CPatchInfo::CBindInfo  +CPatchInfo::CBindInfo // done V: 0 
-CZone +CZone // done V: 4
 CTexAnimTracks // done V: 0 CTexAnimTracks // done V: 0
-CIGSurfaceLight +CIGSurfaceLight V: 1
 CLodCharacterShapeBuild::CPixelInfo  CLodCharacterShapeBuild::CPixelInfo
 CLodCharacterShape::CVector3s  CLodCharacterShape::CVector3s
Line 347: Line 362:
 CMeshMRMSkinnedGeom::CVertexBlock // done V: - CMeshMRMSkinnedGeom::CVertexBlock // done V: -
 CMRMWedgeGeom // done V: - CMRMWedgeGeom // done V: -
-CZoneInfo  +CPackedWorld::CZoneInfo  
-CZoneIndexList +CPackedWorld::CZoneIndexList
 CPackedVertex  CPackedVertex
 CPackedTri  CPackedTri
 CPackedTri16  CPackedTri16
-CVector3s  +CVector3s // done V: - 
-CPointLightNamedArray::CPointLightGroup  +CPointLightNamedArray::CPointLightGroup // done V: 0 
-CPointLightNamedArray::CPointLightGroupV0 +CPointLightNamedArray::CPointLightGroupV0 // done V: -
 CSnappedVector  CSnappedVector
 CPSAttrib<T>  CPSAttrib<T>
Line 380: Line 395:
 CShadowVertex // done V: 0 CShadowVertex // done V: 0
 CSurfaceLightGrid  CSurfaceLightGrid
-CTileColor  +CTileColor // done V: - 
-CTileColorOldPatchVersion6 +CTileColorOldPatchVersion6 // done V: -
 CQuatPack // done V: - CQuatPack // done V: -
 ITrackKeyFramer (template) // done V: 0 ITrackKeyFramer (template) // done V: 0
Line 392: Line 407:
 CTrackDefaultQuat // done V: - CTrackDefaultQuat // done V: -
 CTrackDefaultBlendable // done V: 0 CTrackDefaultBlendable // done V: 0
-</code></hidden>+</code> 
 +</WRAP> 
 +</hidden>
  
 And some of the serializable classes from other parts than 3d: And some of the serializable classes from other parts than 3d:
  
-<hidden><code>+<hidden> 
 +<WRAP prewrap 650px> 
 +<code>
 CAABBox // done V: 0 CAABBox // done V: 0
 +CAABBoxExt // done V: -
 CMatrix // done V: 0 CMatrix // done V: 0
 CUV // done V: - CUV // done V: -
 CRGBAF // done V: - CRGBAF // done V: -
-</code></hidden>+</code> 
 +</WRAP> 
 +</hidden>
  
 ===== The Documentation ===== ===== The Documentation =====
Line 409: Line 431:
 So here are the ones from 3d part: So here are the ones from 3d part:
  
-<hidden><code>+<hidden
 +<WRAP prewrap 650px><code>
 CMaterialBase::CAnimatedTexture CMaterialBase::CAnimatedTexture
    - PolyPtr (ITexture), Texture    - PolyPtr (ITexture), Texture
Line 488: Line 511:
          - 4 bytes number, nonResidentIndex          - 4 bytes number, nonResidentIndex
       - 4 bytes number, index       - 4 bytes number, index
-            index in TPreferredMemory+         index in TPreferredMemory
       - ver equal to 1       - ver equal to 1
          0 to PreferredCount (5)          0 to PreferredCount (5)
Line 800: Line 823:
 CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex
    - Version (0)    - Version (0)
-   - 2 bytes number, X +   - 2 bytes number, X (un/pack: uX = X * factor) 
-   - 2 bytes number, Y +   - 2 bytes number, Y (un/pack: uY = Y * factor) 
-   - 2 bytes number, Z +   - 2 bytes number, Z (un/pack: uZ = Z * factor) 
-   - 2 bytes number, Nx +   - 2 bytes number, Nx (un/pack: uNx = Nx * (1/NL3D_MESH_MRM_SKINNED_NORMAL_FACTOR (32767))) 
-   - 2 bytes number, Ny +   - 2 bytes number, Ny (un/pack: uNy = Ny * (1/NL3D_MESH_MRM_SKINNED_NORMAL_FACTOR (32767))) 
-   - 2 bytes number, Nz +   - 2 bytes number, Nz (un/pack: uNx = Nz * (1/NL3D_MESH_MRM_SKINNED_NORMAL_FACTOR (32767))) 
-   - 2 bytes number, U +   - 2 bytes number, U (un/pack: uU = U * (1/NL3D_MESH_MRM_SKINNED_UV_FACTOR (8192))) 
-   - 2 bytes number, V+   - 2 bytes number, V (un/pack: uV = V * (1/NL3D_MESH_MRM_SKINNED_UV_FACTOR (8192)))
    0 to NL3D_MESH_MRM_SKINNED_MAX_MATRIX (4)    0 to NL3D_MESH_MRM_SKINNED_MAX_MATRIX (4)
       - 1 byte number, Matrices[i]       - 1 byte number, Matrices[i]
-      - 1 byte number, Weights[i]+      - 1 byte number, Weights[i] (un/pack: uWeight = Weights[i] * (1/NL3D_MESH_MRM_SKINNED_WEIGHT_FACTOR (255)))
  
 CMeshMultiLod CMeshMultiLod
Line 872: Line 895:
    0 to Number Blend Shapes    0 to Number Blend Shapes
       - CBlendShape       - CBlendShape
 +
 +CPatch
 +   - Version, ver (7)
 +   - ver smaller 2
 +      - not supported anymore
 +   - ver greater/equal to 2
 +      0 to 4
 +         - CVector3s, Vertex
 +      0 to 8
 +         - CVector3s, Tangent
 +      0 to 4
 +         - CVector3s, Interior
 +      - 4 bytes number, Number Tiles
 +      0 to Number Tiles
 +         - CTileElement
 +      - ver smaller/equal to 6
 +         - 4 bytes number, Number Tile Colors
 + 0 to Number Tile Colors
 +     - CTileColorOldPatchVersion6
 +      - ver greater 6
 +         - 4 bytes number, Number Tile Colors
 + 0 to Number Tile Colors
 +     - CTileColor
 +      - 1 byte number, Order S
 +      - 1 byte number, Order T
 +      - 4 bytes number, Number Compressed Lumels
 +      0 to Number Compressed Lumels
 +         - 1 byte number, Compressed Lumel
 +      - ver greater/equal to 3
 +         - 1 byte number, Noise Rotation // The orientation of the NoiseMap. 0,1,2,3. This represent a CCW rotation of the NoiseMap.
 + - 1 byte number, Corner Smooth Flag
 +      - ver greater/equal to 4
 +         - 1 byte number, Flags
 +      - ver greater/equal to 5
 +         - 4 bytes number, Number Tile Light Influences
 + 0 to Number Tile Light Influences
 +     - CTileLightInfluence
 +
 +CPointLight
 +   - Version, ver (2)
 +   - ver greater/equal to 2
 +      - Bool, Add Ambient With Sun
 +   - ver greater/equal to 1
 +      - 4 bytes number, index
 +         index in TType
 +      - 3DVector, Spot Direction
 +      - Float, Spot Angle Begin
 +      - Float, Spot Angle End
 +   - 3DVector, Position
 +   - RGBA, Ambient
 +   - RGBA, Diffuse
 +   - RGBA, Specular
 +   - Float, Attenuation Begin
 +   - Float, Attenuation End
 +
 +CPointLightNamed
 +   - Version, ver (1)
 +   - CPointLight
 +   - String, Animated Light
 +   - RGBA, Default Ambient
 +   - RGBA, Default Diffuse
 +   - RGBA, Default Specular
 +   - ver greater/equal to 1
 +      - 4 bytes number, Light Group
 +
 +CPointLightNamedArray
 +   - Version, ver (1)
 +   - 4 bytes number, Number Point Lights
 +   0 to Number Point Lights
 +      - CPointLightNamed
 +   - ver equal 0
 +      - 4 bytes number, Number Point Light Groups
 +      0 to Number Point Light Groups
 +         - String, Key
 + - CPointLightNamedArray::CPointLightGroupV0, Point Light Group
 + - map Key to Point Light Group
 +   - ver greater 0
 +      - 4 bytes number, Number Point Light Groups
 +      0 to Number Point Light Groups
 +         - CPointLightNamedArray::CPointLightGroup
  
 CSkeletonShape CSkeletonShape
Line 938: Line 1041:
       - String, File Name       - String, File Name
    - 4 bytes number, Current Selected Texture    - 4 bytes number, Current Selected Texture
 +
 +CTileElement
 +   - 2 bytes number, Flags
 +   0 to 3
 +      - 2 bytes number, Tile
 +
 +CTileLightInfluence
 +   0 to NumLightPerCorner (2)
 +      - 1 byte number, Light Id
 +   - 1 byte number, Packed Light Factor
  
 CTrackSampledCommon::CTimeBlock CTrackSampledCommon::CTimeBlock
Line 1144: Line 1257:
    - 1 byte number, MatrixId 2    - 1 byte number, MatrixId 2
    - 1 byte number, MatrixId 3    - 1 byte number, MatrixId 3
 +
 +CBorderVertex
 +   - Version (0)
 +   - 2 bytes number, Current Vertex
 +   - 2 bytes number, Neighbour Zone Id
 +   - 2 bytes number, Neighbour Vertex
 +
 +CZone::CPatchConnect
 +   - Version, ver (1)
 +   - ver smaller 1
 +      - 1 byte number, Old Order S
 +      - 1 byte number, Old Order T
 +   - String, ErrorSize
 +   0 to 4
 +      - 2 bytes number, Base Vertex
 +   0 to 4
 +      - CPatchInfo::CBindInfo
 +
 +CPatchInfo::CBindInfo
 +   - Version (0)
 +   - 1 byte number, Number Patches
 +   - 2 bytes number, Zone Id
 +   0 to 4
 +      - 2 bytes number, Neighbour Patch
 +   0 to 4
 +      - 1 byte number, Neighbour Patch Edge
 +
 +CZone
 +   - Version, ver (4)
 +   - ver smaller 3
 +      - not supported anymore
 +   - ver greater/equal to 3
 +      - 4 bytes that are "ENOZ"
 +      - 2 bytes number, Zone Id
 +      - CAABBoxExt, Zone BB
 +      - 3DVector, Patch Bias
 +      - Float, Patch Scale
 +      - 4 bytes number, Number Vertices
 +      - 4 bytes number, Number Border Vertices
 +      0 to Number Border Vertices
 +         - CBorderVertex
 +      - 4 bytes number, Number Patches
 +      0 to Number Patches
 +         - CPatch
 +      - 4 bytes number, Number Patch Connects
 +      0 to Number Patch Connects
 +         - CZone::CPatchConnect
 +      - ver greater/equal to 4
 +         - CPointLightNamedArray
  
 CTexAnimTracks CTexAnimTracks
Line 1220: Line 1382:
    - 4 bytes number, Start Wedge    - 4 bytes number, Start Wedge
    - 4 bytes number, End Wedge    - 4 bytes number, End Wedge
 +
 +CVector3s
 +   - 2 bytes number, x (un/pack: ux = x * scale + bias.x)
 +   - 2 bytes number, y (un/pack: uy = y * scale + bias.y)
 +   - 2 bytes number, z (un/pack: uz = z * scale + bias.z)
 +
 +CPointLightNamedArray::CPointLightGroup
 +   - Version (0)
 +   - String, Animation Light
 +   - 4 bytes number, Light Group
 +   - 4 bytes number, Start Id
 +   - 4 bytes number, End Id
 +
 +CPointLightNamedArray::CPointLightGroupV0
 +   - 4 bytes number, Start Id
 +   - 4 bytes number, End Id
  
 CShadowVertex CShadowVertex
Line 1225: Line 1403:
    - 3DVector, Vertex    - 3DVector, Vertex
    - 4 bytes number, Matrix Id    - 4 bytes number, Matrix Id
 +
 +CTileColor
 +   - 2 bytes number, RGB User Color
 +
 +CTileColorOldPatchVersion6
 +   - 2 bytes number, RGB User Color
 +   - 3DVector, Light Vector
  
 CQuatPack CQuatPack
Line 1276: Line 1461:
    - Version (0)    - Version (0)
    - Type    - Type
-</code></hidden>+</code> 
 +</WRAP> 
 +</hidden>
  
  
 And those from outside 3d part: And those from outside 3d part:
  
-<hidden><code>+<hidden> 
 +<WRAP prewrap 650px> 
 +<code>
 CAABBox CAABBox
    - Version (0)    - Version (0)
    - 3DVector, Center    - 3DVector, Center
    - 3DVector, Half Size    - 3DVector, Half Size
 +
 +CAABBoxExt
 +   - CAABBox
  
 CMatrix CMatrix
Line 1320: Line 1512:
    - Float, B (0 - 1)    - Float, B (0 - 1)
    - Float, A (0 - 1)    - Float, A (0 - 1)
-</code></hidden>+</code> 
 +</WRAP> 
 +</hidden>
  
 {{tag>Tag_a_ajouter}} {{tag>Tag_a_ajouter}}
CC Attribution-Share Alike 4.0 International Driven by DokuWiki
en/nel_files.1482024141.txt.gz · Last modified: 2021/12/03 19:18 (external edit)

Licences Mentions légales Accueil du site Contact