Forum

User posts Marcos Calvi
18 July 2016 12:11
Ok, thank you, Yuri. Yes, it is just what I have ended doing. I have a newer version now with a loader that I think it's quite nice and I am starting to go with the script for the user interaction. I have one doubt now:

· Where do I store a javascript file to use from the html file? I have tried to include it in a 'scripts' folder inside the apps_dev/my_project one but I've found out that it doesn't work after compiling. Must I store it in the deploy/assets/my_app directory?
15 July 2016 23:57
Hi,

The file is exported in here . I hope the assets are ok and everything…

The thing is: if you look in the apps_dev javascript file there is a log to the console with the present time. When I open the blender file in Blender and start the app from the fast preview the log doesn't show up in the debug (F12) in Mozilla. But in the Project Manager it debugs it ok…

I don't know if in your system is going to work or not, the thing is that if it doesn't work from the Fast Preview it's a little annoying to do it in a strange way I think I should start the project again and import the .blend file, over the weekend I'll try all these things….
15 July 2016 17:58
I'm still stucked with this issue, tonight I'll give it a try. I'll probably try starting a new project from scratch and then copying the blender file inside the blender/app/folder. I haven't really implemented anything inside the javascript but it just stopped working, I had tried a little debugging to the console and everything was working fine, so I thought it would be a piece of cake to start adding the logic, I'm trying to make a presentation with the parts of a guitar as I am a guitar teacher so I thought it would be easy to just create the logic to clicking a part of the scene the camera zooming to the object (guitar part or whatever) and unhide an annotation with the name and clicking on it get a little explanation… I've been playing with the logic editor and it's fun and easy to do the tricks but now I wanted to get deeper with the javascript, as I think at the end of the day you get more control and in fact is easier to create the overall logic… But… Well, I don't give up and I hope you will soon see a demo over here.
I have a couple of doubts that I still don't get yet:
· Where is the javascript file that is causing the problem? I think it's the way I should go. I'm using Mozilla and I'm gonna try to find the file and delete it. I'm pretty newbie to Windows 7 and I'm a bit lost. Maybe I should change temporarily to Chrome to find out if it's efectively the cache what is messing the thing up.
· The other thing is why the dev:app.html link in the Project Manager loads the proper modified file and doesn't load the logic_nodes module. I have test the modules in the project manager and it does appear. And the other requires that come before load the right way. I'm confused about that.

By the way, thank you very much Yuri for your attention and the greatest congratulations for the blend4web project, I think it's awesome, I've been for years enjoying (and suffering) the Blender software but your work is indeed better in some aspects than the rendering in the Blender Game Engine, which is incredible. I think this approach can change the web completely, I'm a believer, hahaha… Great work, thank you
15 July 2016 00:40
Well, I'm a bit confused what is happening.

If I try to init the app from the fast preview inside blender it seems to be using and old javascript file but if I start the app from the link in the project manager 'dev:my_app.html' it starts correctly and uses the right js file (the one in the apps_dev/my_app folder). Even then I'm having a strange problem, if I try to import the logic_nodes module (
var m_ln = require("logic_nodes");
) the app fails to initialize and the app hangs on startup with error: Error: Module "logic_nodes" not found. I don't know if I'm asking for a wrong module or what. I'll keep trying…
14 July 2016 20:48
Hi, I'm wondering what I'm doing wrong. I'm stuck with this all afternoon.

I'm working in a project that is in the apps_dev folder and when I change the Javascript code in the file in that folder the result doesn't change at all. Have anyone came up with the same problem? I have tried to reexport and compile but nothing seems to work.

07 July 2016 01:25
Ok, I have updated ths SDK and everything is working fine now

Thank you
06 July 2016 20:09
Ooops, I have 16.03. I'll try to update…

Thank you
06 July 2016 19:06
Hi

I'm trying to use both js scripting and logic nodes and I've found in the logic editor the Entry points don't show the option to run it from the script. I don't know if the documentation is outdated for the new release and there is a better way to interact between nodes and code.

I've been reading the logic nodes api but still don't find the way…

06 July 2016 19:00
I have found the solution. Simply export the scene to JSON from blender. Now I export from blender and everything works fine.

Thank you, Luke Video anyway
05 July 2016 20:56
Hi there:

I'm trying to get a project reexported to get the changes in the blend file be real in the json file but when I try reexporting from the project manager I get this error : [WRONG PATH] C:\Program Files\Blender Foundation\blend4web_sdk_free\deploy\assets\guitar_teaser\guitar_teaser.json

I don't know what I'm doing wrong the path seems to be okand the file exists, it is the old one. I'm in Windows 7, I don't know if it can be a security problem and I can't work with that file.

Any help is welcome