這是一個Cube立方體的 **物體數據** 的結構樣例,整體上分為了2個部分:
* 基礎物體:根據物體type不同,需要特別聲明的參數。
* 通用參數:每個物體普遍都有的屬性、功能等參數。
```
{
/* 基礎物體 */
'type': 'cube',
'size': {
'x': 700, 'y': 200, 'z': 2,
},
/* 通用參數 */
'id' : '',
'name': '',
'style': {
'type' : 'Lambert',
'default' : '__DEFAULT__',
'emphasis': '__DEFAULT__',
'shadow': {
'cast' : false,
'receive': false,
},
},
'advgeom': [],
'visible': true,
'status' : 'normal',
'param': {
},
'property': {
'parent': '',
'group' : '',
},
'scale': {
'x':1, 'y':1, 'z':1
},
'align': {
'center_point': 'bottom', // center,bottom,top,custom
'position': {
'x':0, 'y':0, 'z':0
},
},
'position': {
'x': 0, 'y': 0, 'z': 0,
},
'rotation': {
'x': 0, 'y': 0, 'z': 0,
},
'label': {
'in_use' : false,
'visible' : true,
'title' : '',
'style' : {
'opacity': 1,
'margin_top': '0',
'bg_color': null,
'text_color': null,
},
'position': {
'x': 0, 'y': 0, 'z': 0,
}
},
'infobox': {
'in_use' : false,
'visible': true,
'title' : '',
'content': '',
'style' : {
'arrow' : 'bottom',
'opacity': 1,
'margin_top': '0',
},
'position': {
'x': 0, 'y': 0, 'z': 0,
},
},
'icon': {
'in_use': false,
'visible': true,
'image': {
'type': 'info',
'path': '',
},
'style': {
'type': 'glint', //normal,glint
'width': 40,
'height': 40,
'opacity': 1,
'margin_top': '0',
},
'position' : {
'x': 0, 'y': 0, 'z': 0,
},
},
'intersect': {
'in_use': false,
'click' : {
'type' : '', //url,iframe,modal,function,infobox
'param': '',
'data' : '',
},
'hover' : {
'affect': [],
'type' : '', //infobox,function
'param' : '',
'data' : '',
},
},
'linkline': {
'in_use': false,
'visible': true,
'pathline': {
'data': [],
},
'style': {
'width': 1,
'color': '#FFF',
},
},
'float': {
'in_use': false,
'visible': true,
'position': {
'x': 0, 'y': 0, 'z': 0,
},
'html': '',
},
'animate': [
],
}
```
- 序言
- 基礎
- 如何使用
- 目錄結構
- 配置數據
- 結構
- global
- style_lib
- default
- emphasis
- status
- environ
- camera
- ground
- light
- ambient_light
- directional_light
- point_light
- 物體數據
- 結構
- 通用參數
- id
- name
- style
- advgeom
- visible
- status
- param
- property
- scale
- align
- position
- rotation
- label
- infobox
- icon
- linkline
- float
- intersect
- animate
- rotate
- shuttle
- pipeline
- flow
- route
- 多個動畫
- 基礎物體
- 平面 Plane
- 圓平面 Circle
- 環平面 Ring
- 立方體 Cube
- 球體 Sphere
- 圓柱體 Cylinder
- 圓環體 Torus
- 管道 Tube
- 曲面 Spline
- 墻 Wall
- 拔高體 Raise
- 正四面體 Tetrahedron
- 正八面體 Octahedron
- 正二十面體 Icosahedron
- 接口
- 先讀我
- 物體類
- visible
- position
- scale
- rotation
- icon
- label
- infobox
- intersect
- param
- status
- animate
- list
- remove
- add
- 攝像機類
- get
- set
- reset
- auto_rotate
- 聯系