User posts LukeVideo
19 August 2017 22:50
It depends of the project manager option you choose. If you go the html file you could edit it. It's only web stuff on top of the canvas.
19 August 2017 20:04
I am trying to get a loaded objects name in the scene but the name of the Json file doesn't seem to work.
19 August 2017 16:51
Thanks for the link.
As for the hack i prefere to rename it on the server. But i think the better solution would be to prevent django to append that uggly string.

OR ??? Could i add just use the .bin file.
Say i uploaded the my project file and then i load it in the scene. Could perfectly add the material on the fly. As it's a kind of configurator project that could do !
19 August 2017 15:36
Could someone explain how the .json and the .bin file are related. Is there a way of exporting a .json file that doesn't require a .bin file to ?

The thing is i am uploading .json files to my CMS to load later in a B4W app. Only it is saved with a Uggly Suffix like Eiuhjnksu so if it requires the .bin file i can't upload it with the user interface and i have to hack it onto the server or rename it… because it would require file.bin but the uploading interface would save it as file_euhuhzfl.bin…
18 August 2017 12:21
Are you using the Project Manager to Build, then the Deploy function to deploy your project? The Deploy function wraps up all of your dependencies into one zip file.
No in fact i haven't solved that part of the puzzle yet so i am stil copy pasting every file like a caveman !
I will consider this option, thanks for the tip that should really clean up the workflow.
18 August 2017 11:06
So i used the default project setting. I am never sure wich one i should use for my hacky experiments. One thing is sure i need a custon.js file to interact with the scene i just can't do everything with the node editor this time.

EDIT : Wouldn't it be awesome if there were an npm package for B4W? it would just be a matter of npm install and go ! It might be a bit more tricky than it sound like but i would love it !

RE-EDIT : I might have a go a the compile binding method. That really makes a standalone big JS thats self sufficient. Do i need any other file with this method??? I am going to try to push the compiled JS of a simple project to test it.

So The problem was CSS… The compiled version showed up in a tiny 19px heigh canvas. So i solved that problem tried wis the first version, added some css height and there it was.

So the problem was not that 404 http call but a invisible canvas du to some stupid css. FACEPALM !
You get a CMS up and running build a B4W app, upload all your file plug it all nice and neet make sure every file finds its dependencys and here comes CSS that kick you in the balls from behind.

So i guess my problem is solved but i am still curious about that strange call.
18 August 2017 11:04
Hy, It's me again !
I am having issues using Blend4web on a page build in Django. I'm on my locale machine i have put every file in the static folder of the project. Everything goes well but B4W seam to ask for files that i can't resolv.

[18/Aug/2017 07:42:53] "GET /static/character/figurine.json?v=16082017160549 HTTP/1.1" 200 85677
Not Found: /favicon.ico
[18/Aug/2017 07:42:53] "GET /favicon.ico HTTP/1.1" 404 2446
[18/Aug/2017 07:42:53] "GET /static/character/figurine.bin?v=16082017160549 HTTP/1.1" 200 70308
[18/Aug/2017 07:43:20] "GET /admin/panoply/position/ HTTP/1.1" 200 4877
Not Found: /deploy/apps/common/
[18/Aug/2017 07:43:26] "GET /deploy/apps/common/ HTTP/1.1" 404 2533

Some file is requesting /deploy/apps/common/ witch is out of reach as i migrated all the file of the project to /static/character/. I mean the B4W.min, the .json, the .bin and the .css.

So what is the .map file and shouldn't it be in a relative path so that you can use B4W anywhere???

I am trying to make a dynamic scene like thats loads objects dynamically so i can't use the iframe because i loose the scope for the JS file. And the objects are stored as .json export in a database so i need to have the application on my page else i cant inject the new objects into a iframe. And i need custom JS so i really don't want to embed an external player.

But i am nearly there, B4W loads. the .js, .js and bin files are loaded.

06 April 2017 18:04
I'm not sure. If hidden is recognised as an event it should be ok.
If not you probably could use onclick.
06 April 2017 17:58
i had similar issues on fresh fedora installs.
ffmpeg requires rpm fusion enabled

dnf install libavc1394-devel.x86_64
dnf install nvidia-texture-tools-devel.x86_64
dnf install ffmpeg

Done !
06 April 2017 10:37
Hy i'm not sure if it helps but maybe you could add a eventlistener on your div via your Js functions. So that even if they are dynamicaly populated they would have right property's.