方法
获取天空盒子。
设置空间背景
调用方法:
sgworld.Creator.setSpaceBackground('http://183.162.245.49:82/05sdkdemo/src/static/image/background.jpg');
参数描述:
名称 |
类型 |
描述 |
URL |
String
|
背景图片地址 |
返回:
向三维场景中添加天空盒子。
调用方法:
var skyBox = sgworld.Creator.SkyBox(true, {
positiveX: 'http://183.162.245.49:82/05sdkdemo/src/static/image/rightav9.jpg',
negativeX: 'http://183.162.245.49:82/05sdkdemo/src/static/image/leftav9.jpg',
positiveY: 'http://183.162.245.49:82/05sdkdemo/src/static/image/frontav9.jpg',
negativeY: 'http://183.162.245.49:82/05sdkdemo/src/static/image/backav9.jpg',
positiveZ: 'http://183.162.245.49:82/05sdkdemo/src/static/image/topav9.jpg',
negativeZ: 'http://183.162.245.49:82/05sdkdemo/src/static/image/bottomav9.jpg'
});
参数描述:
名称 |
类型 |
描述 |
NearGround |
Boolean
|
可选
是否近地。 |
Images |
Object
|
可选
天空盒子图。
名称 |
类型 |
描述 |
positiveX |
String
|
可选
天空盒子图。 |
negativeX |
String
|
可选
天空盒子图。 |
positiveY |
String
|
可选
天空盒子图。 |
negativeY |
String
|
可选
天空盒子图。 |
positiveZ |
String
|
可选
天空盒子图。 |
negativeZ |
String
|
可选
天空盒子图。 |
|
返回:
返回一个SkyBox的对象。