@@ -2,10 +2,9 @@ package gsplat
22
33import "gsbox/cmn"
44
5- const CreaterIdOpen uint32 = 1202056903 // 创建者ID,开放版
6- const ExclusiveIdOpen uint32 = 0 // 专属ID,开放版
7- const CreaterIdPrd uint32 = 0 // 创建者ID,官方
8- const ExclusiveIdPrd uint32 = 3141592653 // 专属ID,专业版
5+ const CreaterIdOpen uint32 = 1202056903 // 创建者ID,开放版
6+ const ExclusiveIdOpen uint32 = 0 // 专属ID,开放版
7+ const CreaterIdPrd uint32 = 0 // 创建者ID,官方
98
109// 数据处理
1110func ProcessDatas (datas []* SplatData ) []* SplatData {
@@ -36,7 +35,7 @@ func CanParseExclusiveId(id uint32) bool {
3635}
3736
3837func IsPrdExclusiveId (id uint32 ) bool {
39- return id == ExclusiveIdPrd
38+ return false
4039}
4140
4241func GetSpxOutputHeaderHash (bts []byte ) uint32 {
@@ -51,6 +50,14 @@ func GetLodFlag() uint8 {
5150 return 0
5251}
5352
53+ func WriteSpxV1 (spxFile string , rows []* SplatData , comment string , shDegree uint8 ) {
54+ WriteSpxOpenV1 (spxFile , rows , comment , shDegree )
55+ }
56+
57+ func ReadSpxV1 (spxFile string , header * SpxHeader ) (* SpxHeader , []* SplatData ) {
58+ return ReadSpxOpenV1 (spxFile , header )
59+ }
60+
5461func WriteSpxV2 (spxFile string , rows []* SplatData , comment string , shDegree uint8 ) {
5562 WriteSpxOpenV2 (spxFile , rows , comment , shDegree )
5663}
@@ -59,6 +66,14 @@ func ReadSpxV2(spxFile string, header *SpxHeader) (*SpxHeader, []*SplatData) {
5966 return ReadSpxOpenV2 (spxFile , header )
6067}
6168
69+ func WriteSpxV3 (spxFile string , rows []* SplatData , comment string , shDegree uint8 ) {
70+ WriteSpxOpenV3 (spxFile , rows , comment , shDegree )
71+ }
72+
73+ func ReadSpxV3 (spxFile string , header * SpxHeader ) (* SpxHeader , []* SplatData ) {
74+ return ReadSpxOpenV3 (spxFile , header )
75+ }
76+
6277func DefaultSpxComment () string {
6378 return "created by gsbox " + cmn .VER + " https://github.com/gotoeasy/gsbox"
6479}
0 commit comments