论坛

由用户创建的信息 pixelstrong
23 December 2015 01:00
UPDATE from poster:

OK I found this in blend4web\deploy\tutorials\examples\making_a_game_p4\game_example.js. At line 325

function detect_mobile() {
    if( navigator.userAgent.match(/Android/i)
     || navigator.userAgent.match(/webOS/i)
     || navigator.userAgent.match(/iPhone/i)
     || navigator.userAgent.match(/iPad/i)
     || navigator.userAgent.match(/iPod/i)
     || navigator.userAgent.match(/BlackBerry/i)
     || navigator.userAgent.match(/Windows Phone/i)) {
        return true;
    } else {
        return false;
    }
}

My guess is that "function detect_mobile" is calling from b4w.min.js to trigger the touch UI load. Is there a "userAgent.match(/firefox/i)" or non-mobile?
23 December 2015 00:41
Petigor's Tale UI only show on mobile devices, Right?
How can I turn on the UI for the desktop?
Looking in blend4web/deploy/tutorials/examples/making_a_game_p1-3 folder I found game_example.html.
I was looking for a CSS platform sniffer for mobile to turn off. But could not find one.

It would be great to have the desktop cursor click on the mobile UI controls

thanks for any help
23 December 2015 00:21
I take it B4W stands on three legs. Blender, the B4W addon and Java. YES?

If one doesn't code then your limited in development, YES
23 December 2015 00:17
Yuri,

I reviewed "Petigor's Tale" on my desktop but past it by. The UI only show on the mobile version so I'll have an other look, thanks

16 December 2015 20:40
QUESTION:
Understanding UI buttons. Not geo parented to camera. Buttons like "cartoon interior" Or like the "Settings" UI in corner of "sunglasses" that could control things like camera.

thanks

16 December 2015 19:48
Will,

THANKS:
I've watched your videos and learned much. I very much appreciate your no nonsense approach to teaching.

GOAL:
More examples to deconstruct.


COMMENT:
Many people could learn from your style of videos, things like:
Speak clearly, Good audio, no background noise.
Talk slow but not too slow.
Don’t talk with your mouse. Only move your mouse when needed. Your audience are not cat’s chasing a laser dot.
Stay on point don’t digress.
16 December 2015 03:57
I'm not finding the resources I need from the B4W SDK. Dose anyone have a link to more examples ?