Forum

User posts crazyFolker
21 September 2015 18:33
Would be cool to have say a Select and Jump to have an output to a Play Animation node, a second one to play a sound, a third one to maybe hide an object somewhere.

This would require the node based system to work slightly differently, ie to fire off from the start node every frame, and to allow for different checks ( eg check if animation is at marker_DoorOpen, so the user can both check if the door is already open, and to choose to play the DoorClose animation next ).

This flow would be one way, with no need for a wrap-around for each branch.
21 September 2015 15:45
Nice one!

Blend4Web is def the main reason I'm getting back into Blender!

Hopefully if more people see how the system works, they'll go home, download it, and start creating content with it.
21 September 2015 15:25
Great to hear - apologies for making the TODO list longer! :)
21 September 2015 15:21
Nice one! The more I test, the more I'm sure I can use Blend4Web for pitching some commercial projects, which will of course then lead to purchasing a commercial license!
21 September 2015 14:44
Hi Ivan,

Ah, I was doing quick testing too late at night, I should have noticed that when I cut and pasted the code! :)
21 September 2015 14:37
> This will be possible with a new node we implemented for the upcoming release

Yuri, that is great news!!! I have quite a few things I'd like to experiment with, and having access to stuff like this will make it a lot easier to try stuff out quickly ( and report any issues )

21 September 2015 00:29
I'm hoping to get a bit of time to spend with the SDK, and was going through the webpage here…

http://localhost:6687/deploy/doc/en/developers.html#developers

The code under "Loading Scenes In Apps" works OK…

<!DOCTYPE html>
<html>
<head>
<script src="b4w.min.js"></script>
<script>
function hello() {
    var m_main = b4w.require("main");
    var m_data = b4w.require("data");

    var canvas_elem = document.getElementById("canvas_id");
    m_main.init(canvas_elem);
    m_data.load("test_scene.json");
}
</script>
</head>

<body onload="hello()"><canvas id="canvas_id"></canvas></body>

</html>


However, the code under "Creating Apps Quickly" doesn't work…

<!DOCTYPE html>
<html>
<head>
<script src="b4w.full.min.js"></script>
<script>

var m_app = b4w.require("app");
var m_data = b4w.require("data");

m_app.init({
    canvas_container_id: "container_id",
    callback: load_cb
});

function load_cb()
    m_data.load("test_scene.json", loaded_cb);
}

function loaded_cb() {
    m_app.enable_controls();
    m_app.enable_camera_controls();
}

</script>
</head>

<body>
    <div id="container_id" style="width: 350px; height: 200px;"></div>
</body>

</html>


I've copied bw4.full.min.js and bw4.min.js into the folder OK, and as I mentioned above, the "Loading Scenes In Apps" works fine, so I'm not sure if the API has changed since the example code was put on that page.

20 September 2015 21:27
Just in case you miss it…

http://lists.blender.org/pipermail/bf-committers/2015-September/045904.html

"- A meeting visitor asks about the status of Blend4Web patches:
http://wiki.blender.org/index.php/Dev:Doc/Projects/Blend4Web_proposals
We would like to see Blend4web developers to participate a bit more visible? Join us in irc!"

I'm not sure who the visitor was, but it sounds like Ton would like to chat on IRC.
20 September 2015 15:26
Hi Will,

I just checked out the camera control video, very informative as usual!

For some of these features I'm posting, I'm always trying to think of how small tweaks / options could really help a new user to Blend4Web - of course, if it's easier for a new user, it's also easier for more experienced users as well :)
20 September 2015 14:42
A "Change Camera" node would allow as to change cameras when an object ( or an anchor ) has been clicked, to better reflect what area of the object the anchor relates to.

While this is possible in code, being able to set this functionality up in Blender would enable artists with no coding skills to create richer, more immersive / interactive content.