Forum

Browser Error?

01 February 2017 20:26
Hello everyone!
What is the mistake? In Firefox (first picture) the console message - In Chromium (second picture) there is not a message.
The application is jamming strongly in Firefox - In Chromium everything good
I would like to make referring to an b4w icon, but opened on a new page (tab - "_blank) - how it is necessary to prepare this?
Original Link (made with Blender + Blend4Web)

(the application with a Hungarian language - sorry)
http://blender.hu Hungary Blender Community Site
03 February 2017 11:05
Hi

Can you tell us Firefox version and Chrome version?
I have new errors on my projects too since the latest firefox update with the implementation of WebGl2 on it…
03 February 2017 18:20
martial!
The Firefox version: 51.01 (32bit)
The Chromium version: 37.0.2062.120
On an other computer the Firefox the message of a console - the cache is banned in the 51 versions - in the next expense (52.0) this allowing will be…
… but when?
http://blender.hu Hungary Blender Community Site
04 February 2017 13:46
That's ok. Firefox likes to tell us all about its work.
These messages mean, that everething is fine with physics
13 February 2017 00:14
Hi!
I was waiting patiently… I ask it again:
I would like to make hotlink to selectable object(s), but opened on a new tab (target="_blank") !!?

and then a question:
if
m_fps.enable_fps_controls();
I build it app, shows on the mobile phone then one forward - backward icon. I saw it the petigor tutorial, but it very complex. Is it possible to replace this simple icons?

last question:
how is it possible to explode an object if I click it?

(Object -> Quick Effects -> Quick Explode? or Cell Fracture addon?)

This Project:
PC Version: Electronics Maze
Mobile Version Mobile Electronics Maze (but run in PC)

Thx
http://blender.hu Hungary Blender Community Site
13 February 2017 12:21
I would like to make hotlink to selectable object(s), but opened on a new tab (target="_blank") !!?
If I understood correctly, you just want to open a new tab by clicking an object?
You can do this in the following way:
var m_scs    = require("scenes");
var m_ctl    = require("controls");
function load_cb() {
    function click_cb() {
        window.open('http://blend4web.com', "_blank");
    }
    var obj = m_scs.get_object_by_name("Cube");
    var sel_sens = m_ctl.create_selection_sensor(obj, false);
    m_ctl.create_sensor_manifold(obj, "CLICK", m_ctl.CT_TRIGGER, [sel_sens], null, click_cb);
}

But you need to keep in mind that in most browsers this action is not allowed by default and you will have to allow the pop up to show by clicking "yes" in the corresponding dialog box.


last question:
how is it possible to explode an object if I click it?

(Object -> Quick Effects -> Quick Explode? or Cell Fracture addon?)
Such modifiers imply quite complex calculations and are not yet supported by Blend4Web in real-time. But you can prepare any kind of explosion animation and bake vertex animation. The similar approach is used in Petigor's Tale game for golems' death. You can find it here. Scroll down to Golem's Death section.
14 February 2017 21:13
Thank you the answer Evgeny!
The explosion is complex really unfortunately.
The hotlink is out of order, I copied the code, I was building, but nothing happened. Not trouble.
Other: I look at this the tutorial, - Making Game Part 4 - but two buttons which can be seen on the picture simply (backward and forward) how can be replaced?
My last question:
If I would like to publish the project in video - what happens on the electrotechnics competition - where I may do it? Rather to share YT chanel or Vimeo?
I say thank you the much help and a commissioner very much I will present myself with other questions!
http://blender.hu Hungary Blender Community Site
 
Please register or log in to leave a reply.