由用户创建的信息 laishi
28 August 2015 21:29
03 June 2015 18:07
31 May 2015 07:29
I Want use your APP Realization toggle fullscreen an autorotate , like webapp,
1. Auto FullScreen
I found app.request_fullscreen can do this , then I try but failed
Excuse me for what reason?
html like this:
js like this:
2. Auto Rotate
Which Module Can do ? I don't find
Thank you my teacher answer my questions
1. Auto FullScreen
I found app.request_fullscreen can do this , then I try but failed
Excuse me for what reason?
html like this:
<body class="B4W-demo">
<div id="canvas3d" ></div>
<div id="ctrbar" >
<button id="togglefullscreen" type="button">ToggleFullScreen</button>
<button id="autorotate" type="button">AutoRotate</button>
</div>
<!-- Use B4W Function JS -->
<script src="js/b4w.full.min.js"></script>
<script src="js/ctrbar.js"></script>
</body>
js like this:
window.onload = function () {
var isfullscreen = false;
var canvas3d = getElementById('canvas3d');
var togglefullscreen = getElementById('togglefullscreen');
function gofullscreen() {
if (!isfullscreen) {
m_app.request_fullscreen(canvas3d,
function() {
isfullscreen = true;
},
} else {
isfullscreen = false;
}
}
togglefullscreen.addEventListener('click', gofullscreen, false);
}
2. Auto Rotate
Which Module Can do ? I don't find
Thank you my teacher answer my questions
06 May 2015 12:18
06 May 2015 10:43
24 April 2015 12:15
Thank you our developer Evgeny Rodygin:
Through my efforts, but failed, because I was too stupid!
I present my error code
I want to by clicking on the above color change the color of the cube
I didn't have know JS friends, I ask you my teacher, PLZ fix the error code.
Thanks+
Through my efforts, but failed, because I was too stupid!
I present my error code
I want to by clicking on the above color change the color of the cube
I didn't have know JS friends, I ask you my teacher, PLZ fix the error code.
Thanks+
24 April 2015 08:54
HI master
i found json file define mix color,
i want use html& js get default_value and click some buttom change default_value color ,how do it ?
i found json file define mix color,
"name": "Mix",
"type": "MIX_RGB",
"inputs": [
{
"name": "Fac",
"identifier": "Fac",
"is_linked": true,
"default_value": 0.5
},
{
"name": "Color1",
"identifier": "Color1",
"is_linked": false,
"default_value": [
1,
0.859,
0.55,
1
]
},
{
"name": "Color2",
"identifier": "Color2",
"is_linked": false,
"default_value": [
0.638,
0,
0.04,
1
]
}
],
i want use html& js get default_value and click some buttom change default_value color ,how do it ?