Forum

User posts laishi
28 August 2015 21:29
where is mouse event in B4Wlogic ?

eg: mouseover mousedown mouseup and so on
03 June 2015 18:07
Ask Blend4Web developer:

Plan to add some blender Modifier fun ? such as Subdivision, Analysis of client ,I think it very usefull!

Thanks!
31 May 2015 07:29
I Want use your APP Realization toggle fullscreen an autorotate , like webapp,

1. Auto FullScreen
I found app.request_fullscreen can do this , then I try but failed
Excuse me for what reason?

html like this:

<body class="B4W-demo">

	<div id="canvas3d" ></div>
	<div id="ctrbar" >
		<button id="togglefullscreen" type="button">ToggleFullScreen</button>
		<button id="autorotate" type="button">AutoRotate</button>
	</div>
	<!-- Use B4W Function JS -->
	<script src="js/b4w.full.min.js"></script>
	<script src="js/ctrbar.js"></script>

</body>


js like this:

window.onload = function () {

    var isfullscreen = false;
    var canvas3d = getElementById('canvas3d');
    var togglefullscreen = getElementById('togglefullscreen');

	function gofullscreen() {
	    if (!isfullscreen) {
	        m_app.request_fullscreen(canvas3d,
	            function() {
	                isfullscreen = true;
	            },
	    } else {
	        isfullscreen = false;
	    }
	}

    togglefullscreen.addEventListener('click', gofullscreen, false);

}


2. Auto Rotate

Which Module Can do ? I don't find

Thank you my teacher answer my questions

15 May 2015 08:43
Is there a way to display Webpage in Blender
06 May 2015 16:25
ok very good work
06 May 2015 12:18
about 1 point


about 4 point



if you use blender material viewport shading not same as webbrower test and test
if you use b4w viewport same as webbrower I think this is very humane.
06 May 2015 10:43
  • Add curve output suport
  • Add useful Internal texture suport
  • Add real mirror material
  • Add B4W viewport

  • Thanks!
    24 April 2015 19:19
    can you help me use this project as As an example?
    24 April 2015 12:15
    Thank you our developer Evgeny Rodygin:
    Through my efforts, but failed, because I was too stupid!

    I present my error code

    I want to by clicking on the above color change the color of the cube
    I didn't have know JS friends, I ask you my teacher, PLZ fix the error code.
    Thanks+
    24 April 2015 08:54
    HI master
    i found json file define mix color,

                            "name": "Mix",
                            "type": "MIX_RGB",
                            "inputs": [
                                {
                                    "name": "Fac",
                                    "identifier": "Fac",
                                    "is_linked": true,
                                    "default_value": 0.5
                                },
                                {
                                    "name": "Color1",
                                    "identifier": "Color1",
                                    "is_linked": false,
                                    "default_value": [
                                        1,
                                        0.859,
                                        0.55,
                                        1
                                    ]
                                },
                                {
                                    "name": "Color2",
                                    "identifier": "Color2",
                                    "is_linked": false,
                                    "default_value": [
                                        0.638,
                                        0,
                                        0.04,
                                        1
                                    ]
                                }
                            ],
    


    i want use html& js get default_value and click some buttom change default_value color ,how do it ?