纳金网
标题:
unity3d虚拟现实的介绍信息
[打印本页]
作者:
caizucai
时间:
2014-3-17 09:21
标题:
unity3d虚拟现实的介绍信息
关于
unity3d
虚拟现实的介绍信息网上有很多,但是要说真正够专业性的介绍并不多。而且大部分的内容都是一些理论性的知识信息,对于一些想要学习技术类知识信息的朋友来说是一件头疼的事情。不要着急,小编接下来就为您介绍一个unity3d虚拟现实案例。
var start = 0, htmlColumn = '', self = this;
for (start; start < this.columnNumber; start+=1) {
htmlColumn = htmlColumn + ''+
function() {
var html = '', i = 0;
for (i=0; i<5; i+=1) {
self.indexImage = start + self.columnNumber * i;
var index = self.getIndex();
html = html + '
'+ index +'';
}
return html;
}() +
' ';
}
htmlColumn += '';
this.container.innerHTML = htmlColumn;
this.detectLeft = document.getElementById("waterFallDetect").offsetLeft;
return this;
},
refresh: function() {
var arrHtml = [], arrTemp = [], htmlAll = '', start = 0, maxLength = 0;
for (start; start < this.columnNumber; start+=1) {
var arrColumn = document.getElementById("waterFallColumn_" + start).innerHTML.match(//gi);
if (arrColumn) {
maxLength = Math.max(maxLength, arrColumn.length);
// arrTemp是一个二维数组
arrTemp.push(arrColumn);
}
}
// 需要重新排序
var lengthStart, arrStart;
for (lengthStart = 0; lengthStart
for (arrStart = 0; arrStart
if (arrTemp[arrStart][lengthStart]) {
arrHtml.push(arrTemp[arrStart]
Size (integer 0 - 10):
min="0" max="10" integer />{{size}}
This is not valid integer!
The value must be in range 0 to 10!
w5cValidator.init({
//blur_trig : false,
//show_error : function (elem, error_messages) {
//
//},
//remove_error: function (elem) {
//
//}
});
w5cValidator.set_rules({
user_name: {
function uploader(url, data, files) {
this._files = files;
this._data = data;
this._url = url;
this._xhr = null;
this.onloadstart = {};
this.onload = {};
this.onloadend = {};
this.onprogress = {};
this.onerror = {};
this.ontimeout = {};
this.callback = {};//
_self = this;
}
uploader.prototype = {
init: function () {
if (!isValid()) {
throw e;
}
this._xhr = new XMLHttpRequest();
this._bindEvents();
},
send: function () {
if (this._xhr == null) {
this.init();
}
var formData = this._createFormData();
this._xhr.open('post', this._url, true);
this._xhr.send(formData);
},
_bindEvents: function () {
_self = this;
this._xhr.upload.loadstart = function (e) {
evalFunction(_self.onloadstart, e);
}
this._xhr.upload.onload = function (e) {
evalFunction(_self.onload, e);
};
this._xhr.upload.onloadend = function (e) {
evalFunction(_self.onloadend, e);
}
this._xhr.upload.onprogress = function (e) {
evalFunction(_self.onprogress, e)
};
this._xhr.upload.onerror = function (e) {
evalFunction(_self.onerror, e);
};
this._xhr.upload.ontimeout = function (e) {
evalFunction(_self.ontimeout, e);
}
this._xhr.onreadystatechange = function () {
if (_self._xhr.readyState == 4) {
if (typeof _self.callback === 'function') {
var status = _self._xhr.status;
var data = _self._xhr.responseText;
_self.callback(status, data);
}
这就是一个unity3d虚拟现实案例,从这里我们可以看出unity3d虚拟现实本身的技术操作虽然不多,但是需要理解的信息内容不少。比如说unity3d后台的部分代码信息是程序员不需要自己编译的,但是却需要参与数据代码的安全设置,这部分就是需要大家多加理解的内容。
想要了解更多有关unity3d的资讯可以查询:天地会。
作者:
hyui
时间:
2014-3-19 20:37
Thanks for script
欢迎光临 纳金网 (http://c-www.narkii.com/club/)
Powered by Discuz! X2.5