Blend4Web Usage

08 November 2015 11:59 #4838
Hi Evgeny,

Thanks for your reply.

There are no collisions with walls at all. I have tried the settings that you have mentioned but without any luck.

Also, we have another issue, you can see the paintings descriptions text on top of the walls (You will see that once you export the file to JSON and view it in the viewer). Is there anyway we can have them hide behind the walls when navigating between rooms?

I have attached the Blender file for your reference and a screen shot of the text issue. Is it possible to have a look and let me know what I am doing wrong?

Thanks in advance,
08 November 2015 16:23 #4841

To enable camera collision you need to specify "Object Physics" and "Ghost" options on the camera. It's not perfect solution, so i would recommend using character instead. Check firstperson demo to see how to do that.

For the second question. It's possible to make anchors semi-transparent when they are behind some geometry. To enable such feature activate "Detect Visibility" option on your anchors.
Blend4Web Team
10 November 2015 00:21 #4865
Hi Alexander,

Thanks for the reply.

The semi-transparent anchors works great.

Regarding the collision detection, i tried to implement the "Object Physics" and "Ghost" options on the camera, and enabled the physics in the js file, but when i start the application i'm stuck outside the room :P even-though the camera is inside the room , please see below image. can i invert it?

so i went for the second solution, the first person example you mentioned, but whenever i tried to run the application i got the following exception in the console log:

i have attached the blender file for reference.

I have also one more question please, whenever i press the third button on the mouse, the asdw stops working, i tried to deactivate it in JS but still same result.

Thanks for help, really appreciated.

10 November 2015 11:52 #4873

There are several problems on this scene.

1) Many static objects use Object Physics flag which overrides material physics settings. This makes them use collision primitives instead of their own mesh. You need to choose what to use: Material physics or Object physics. The easiest solution is to remove Object physics from every static object. (but this is not an optimized approach).

2) It is better to apply Scale and Rotation for all objects because physics tends to work incorrectly when object has some default transformation.

3) You need to remove Object Physics from Camera as well because you've already added a character. Camera will automatically bound to the first character in Viewer.

And as for the error. You need to add physics parameter to the "init" function:
        physics_enabled: true,
Blend4Web developer
30 July 2016 08:43 #10867
Hi Roman,
I am beginner to blend4web,Now i am creating web UI blend4web using the method-3,now i created the app with 3D view,selection of object,changing color of an object,etc,..after i finished the work,it was work fine.But after deploy the project as Zip file and open index.html it shows nothing like black i can not see any object in it.i already know to view the app from the project manager.Now my question is after the deployment of the project how to view the index.html as target app and what are the files require to view the app.Pls help me,thanks in advance
30 July 2016 23:13 #10874

Could you show me your browser console messages? (press F12)

Maybe your should setup your browser for loading local resources.
Blend4Web developer
01 August 2016 02:53 #10883
hi Roman,
thanks for reply,You are really great,.I finally got the idea to view the page after the deployment.Thank you so much,…
01 August 2016 17:14 #10895
I finally got the idea to view the page after the deployment

Glad to hear it.
Blend4Web developer
10 August 2016 17:35 #11132
Hello, I have just joined the forum and I have seen various topics and have collected useful information from this awesome forum. It’s such a great and beneficial place to be. I was having the same issue and i find this article very helpful.
Thanks mate:-)
Please register or log in to leave a reply.