论坛

由用户创建的信息 尤里·卡夫兰诺
13 January 2015 08:08
Camera panning for mobiles will be available in the upcoming release later this month. The gesture will be two fingers moving together.
开发主管 | 新浪微博
12 January 2015 23:14
Answered in this thread. Good luck!
开发主管 | 新浪微博
12 January 2015 23:12
The init_cb() callback which is fired after initialization has the second boolean argument (named success). If this value is false, that is no WebGL, an app can show up some hidden HTML content (image, text, video whatever).

For example:
if (!success) {
    var cont = document.getElementById("my_ID"); // get <div> container for fallback content
    cont.style.display = "";
}

Here assumed that the container element exists in your page, but is initially hidden, which can be done with HTML and CSS as follows:
<div id="my_ID">Fallback content here..</div>
<style>
#my_ID {
    display: none;
}
</style>


Edit: added a bit more code to clarify things..
开发主管 | 新浪微博
12 January 2015 22:44
Well, it was our intention to show a troubleshooting page of some sort when WebGL is not available. We are going to provide help on this page on possible steps for getting WebGL work. For now it just contains another link to the corresponding manual section. We are pretty sure that it is not a perfect solution especially as it looks now. Luckily, share of WebGL-capable browsers tends to grow (86% according to webglstats). For older browsers, it is possible to provide a fallback image which will be shown instead of 3D content. This can be done via URL parameter, or via API, as we did for example in our xmas greeting card.

URL parameter example:

https://www.blend4web.com/apps/webplayer/webplayer.html?load=../../assets/capri/buildings/fountain_elephants/fountain_elephants.json&fallback_image=/static/blend4web/images/demos/fountain/1.jpg

Try to open this link in a browser without WebGL: you will get a 2D image instead of 3D rendering, but it it still better than an ugly error message.

This is what we show to the new year's greeting card WebGL-less visitors:



Hope this helps.
开发主管 | 新浪微博
12 January 2015 21:22
Do you get this page?
开发主管 | 新浪微博
12 January 2015 21:04
Since WebGL is disabled by default in Safari before version 8.0 (which is valid for all users who are not WebGL developers), you can safely allow Blend4Web to find it out and to display either an error message or an arbitrary user-defined image.
开发主管 | 新浪微博
12 January 2015 20:53
开发主管 | 新浪微博
12 January 2015 20:50
You might email Blender developers to this public mailing list, suggesting this feature. They are quite active there and may even reply to those who they like .
开发主管 | 新浪微博
12 January 2015 20:45
Just checked that page and it opens for me. Are you using the latest Blend4Web version, that is 14.12? Also, you can override the default no-WebGL screen using fallback_image url parameter.
开发主管 | 新浪微博
12 January 2015 20:38
Hi Ryan,

That is rather old version of Safari, and it is quite possible that its WebGL implementation does not support some functionality from the Khronos spec, such as getShaderPrecisionFormat() function. Officially, WebGL is supported since OS X Yosemite, Safari version 8.0. Do you have opportunity to upgrade your browser and/or Snow Leopard? If not you might download Chrome of Firefox.
开发主管 | 新浪微博