Page 1 of 1

Question about WebBrowser component

PostPosted: Sat May 30, 2015 2:02 am
by UltraVox
Hi all,

I would like to see this web page in NeoBook, with a WebBrowser component :
http://math.hws.edu/eck/cs424/notes2013/threejs/cube-map-demo.html

But in NeoBook WebBrowser, the three 3D elements are not displayed.
In Firefox, everything appears normal, but not in NeoBook. :(

Do you know why ?

I know that these three 3D elements are generated by Three.js (http://www.threejs.org : 3D engine WebGL / Javascript). But Internet Explorer refuses the "Canvas".

Do NeoBook use my browser (Firefox) to view this page ? Or is it always uses Internet Explorer ?

Thank you.
UltraVox

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 3:12 am
by UltraVox
Go to : http://get.webgl.org/

Result is :
"Your browser supports WebGL"
and you see the 3D CUBE...

Now, go to NeoBook WebBrowser, with the same URL ( http://get.webgl.org/ )
Result :
"Oh no! We are sorry, but your browser does not seem to support WebGL."
"You can upgrade Explorer by clicking this link."

The whole problem is there.
On my computer, Internet Explorer, Firefox and Chrome see this web page correctly. But not in NeoBook :(

An idea ??

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 3:53 am
by HPW

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 4:39 am
by UltraVox
Hello HPW,

Thank you a lot. This is a very informative topic.
Unfortunately, it does not change the problem :(

I do not know where to take the issue...

I downloaded the web page (http://math.hws.edu/eck/cs424/notes2013/threejs/cube-map-demo.html) and I use it locally. By double-clicking on it, it opens in Firefox with no problem. The same web page in NeoBook, locally or on the Web, do not display properly. This is not normal.

I like to know if it's coming from my computer, or if other users are experiencing the same problem ?

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 5:31 am
by UltraVox
I simplified the problem.

Here is a link to download my Cubemap.rar :
http://sendbox.fr/pro/p449ujvpejkq/Cubemap.rar.html

Unzip and Double-click on Cubemap.htm
The page opens in your favorite browser, and you see a 3D Cube, whose position changes with a left click of the mouse.

So everything works fine with Internet Explorer, Firefox and Chrome.

Now open NeoBook, create a WebBrowser Object and insert Cubemap.htm file.

... it does not work ...

The goal is to understand why.

Thanks to all helpers.

Best,
UltraVox

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 6:33 am
by Gaev
Ultravox:

Try and run http://yourbrowser.is/ in your Internet Explorer Browser and in your WebBrowser object in NeoBook.

Note that the email report provides some additional information (HTTP Headers) that might provide a clue.

Compare the email reports ... and post (any) differences here.

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 6:50 am
by UltraVox
Hello Gaev, good idea !

Reports compare :

Browser make & version : Internet Explorer 11.0 (With NB : Internet Explorer 7.0)
Color depth : 24 bit (With NB : 32 bit)

No other differences ... but ... With NB ---> IE 7 ???
It is impossible to display WebGL in IE 7...

Almost found the solution, Gaev :)
How NeoBook uses IE7 on a Windows 7 64-bit Pro ?

Best,
UltraVox

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 6:56 am
by UltraVox
I copy also the header mail, for Gaev :

Internet Explorer 11 :
HTTP_ACCEPT
text/html, application/xhtml+xml, */*

HTTP_ACCEPT_LANGUAGE
fr-FR

HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

HTTP_ACCEPT_ENCODING
gzip, deflate

HTTP_HOST
yourbrowser.is

HTTP_DNT
1

HTTP_CONNECTION
close

HTTP_COOKIE
yourbrowser=82v2ob0cjoa4sjr5hup2u09o46; __utma=6604602.1657435040.1432993092.1432993092.1432993092.1; __utmb=6604602.1.10.1432993092; __utmc=6604602; __utmz=6604602.1432993092.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1


in NeoBook :
HTTP_ACCEPT
*/*

HTTP_ACCEPT_LANGUAGE
fr-FR

HTTP_ACCEPT_ENCODING
gzip, deflate

HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

HTTP_HOST
yourbrowser.is

HTTP_CONNECTION
close

HTTP_COOKIE
__utma=6604602.1449229231.1432993189.1432993189.1432993189.1; __utmb=6604602.1.10.1432993189; __utmz=6604602.1432993189.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 6:57 am
by Gaev
UltraVox:

On my computer, Internet Explorer, Firefox and Chrome see this web page correctly. But not in NeoBook

According to this page ... http://caniuse.com/#feat=webgl ... WebGL is supported only on version 11 of Internet Explorer ... were you running version 11 when you saw this page under Internet Explorer ?

Perhaps you can post the versions reported by yourbrowser.is under all scenarios.

Note: On my machine, even with Firefox 38, this page did not work (tells me that I need to upgrade video drivers before I can see the page) ... on Chrome, it worked fine.

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 7:07 am
by UltraVox
were you running version 11 when you saw this page under Internet Explorer ?

Yes Gaev, Internet explorer 11 is installed on my computer.

Perhaps you can post the versions reported by yourbrowser.is under all scenarios.

It's done, read above. I do not know where is that "IE7", but it does not exist on my computer...

Note: On my machine, even with Firefox 38, this page did not work (tells me that I need to upgrade video drivers before I can see the page) ... on Chrome, it worked fine.

For me, the page works perfectly with the 3 browsers (IE 11, Firefox and Chrome). With NB, it does not work...

Strange.

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 7:29 am
by Gaev
UltraVox:

How NeoBook uses IE7 on a Windows 7 64-bit Pro ?

The post referenced by Hans-Peter (above) talks about how the Windows code called by the WebBrowser object can be set (in Windows Registry) to emulate different versions of Intertnet Explorer.

Check the current value in your machine ... and post here.

I do not know where is that "IE7", but it does not exist on my computer

Perhaps, when you purchased the machine, it came with IE 7 ... later, when you upgraded to IE 11, it did not automatically change the Registry entries (for browser objects like NeoBook) ... if it did, it might cause the Applications (that relied on IE 7 responses/rendering) to fail.

If you feel confident enough, you can play around with suggested changes to the Windows Registry (to make it emulate IE v11).

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 8:17 am
by UltraVox
Well, I added my application in the register, in 2 places :

In HK CURRENT USER :
MyAppName.exe REG_DWORD 0x00002af9 (11001)

in HKEY LOCAL MACHINE :
MyAppName.exe REG_DWORD 0x00002af9 (11001)

it works with the web page that contains three 3D elements !
and also with http://yourbrowser.is/ = IE 11 !

Now, I have to understand why the file "Cubemap.htm" is not textured in Local mode.
So it appears textured in Local mode when I double-click to open it with Firefox.

It's still curious, because it should appear as locally..

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 9:26 am
by UltraVox
To try to end it.
Please, download this Cubemap.rar file :
http://we.tl/ct7ClxC4cl

Unzip and use a WebBrowser Object for the Cubemap.htm file.

Post here the answer... Is it working ?
You see a textured cube, or a black cube ?

I see a 3D black cube in NeoBook, but if I double-click on Cubemap.htm, I see a textured 3D cube.

Thx to all.

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 10:19 am
by Gaev
UltraVox:

I don't have IE11 ... I only use FF and Chrome ... so, I can't do your test ... but when I go to this web page ...

http://math.hws.edu/eck/cs424/notes2013 ... -demo.html

... it works in Chrome Browser ... but shows just a black rectangle (not cube) for the canvas area ... and this message ...

Sorry, WebGL is required but is not available.

... probably because of the video drivers that need to be upgraded.

If you are going to distribute your NeoBook application, consider the problems your users will encounter (and they may not be savvy enough to update the WIndows Registry).

Re: Question about WebBrowser component

PostPosted: Sat May 30, 2015 10:40 am
by UltraVox
The problem was elsewhere. It is much simpler...
Read this : https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally

In the WebBrowser Object, insert "file: ///" before the local address to "simulate a server".
Now everything works in 3D and textured ;) I had the afternoon to learn that...

I will also consider your driver problem, but my application is intended for 3D developers.
These people have no problem graphics drivers !

Thank you everything, Gaev and HPW ;)
I am pleased that the problem is solved !

Cheers,
UltraVox