Forum

User posts lwalzer
25 January 2018 15:51
Hello! I don't know if this is maybe a stupid question, but is it possible to use multiple JS files to control b4w functions? Because usually you have to type everything b4w-related in the "place your code here" section of the default JS file, otherwise it won't work. I'm imagining having the default file and then multiple other sub-files "linked" into it, that just contain the specific code, without having to register all b4w modules first and so on. I can't really believe that studios like VisCircle can handle their large configurator data by just typing in everything into the default file, so I thought I might ask here if and how this would be possible.
Sorry, I'm quite new to Javascript at all …
20 November 2017 13:09
OK, worked perfectly with the new version! Thank you for your help!
20 November 2017 11:55
OK, seems I use an outdated blend4web version (because that would be the only explanation why it works for you). I'll update and check again. Thank you!
20 November 2017 11:30
Sorry, but that doesn't work either. I tried sun, point and spot, but it didn't change anything.
20 November 2017 10:12
I did. :-(
17 November 2017 18:24
Ah, sorry, the map wasn't packed. Here it is with packed textures:

Forum_test.blend
17 November 2017 18:22
Yes, of course!

Forum_test.blend
17 November 2017 17:16
Hello everybody!

I was trying to shade this tire model in B4W. This is the node tree and how the model looks in Blender's viewport. Everything's fine.



And this is how it looks like when I run the blend4web Preview:



As you see there's a weird shading issue going on and I can't figure out why. I have already thought of several common pitfalls but found no working solution so far.
Can anybody help me? Thanks in advance!