i have tried to run the example at https://coderabbit.at/webgl/viewer/.
Chrome and Opera browser crashes after the play button is clicked.
IE will do nothing after pressing the play button.
Finaly only FireFox loads the engine(gray background and fps counter). Within FireFox it seems to run because the fps counter changes its values, but the download model button doesn't load the model.
some month ago I have tested it without any errors.
i'm not sure that creating a minimal example by my own will fix the problem.
is there anybody who is able to run the coderabbit example or a own project for all web browsers?
thanks a lot
ogre emscripten/webGL demo is not running anymore
-
- Gnoblar
- Posts: 2
- Joined: Thu Oct 29, 2015 12:02 pm
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
Re: ogre emscripten/webGL demo is not running anymore
Yes I have to fix that. The problem is that I have installed a SSL cert and am forcing it.
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
-
- Gnoblar
- Posts: 2
- Joined: Thu Oct 29, 2015 12:02 pm
Re: ogre emscripten/webGL demo is not running anymore
thanks a lot for the info with the ssl certification.
You say you have fixed the ssl-problem in your demo but i still can't see any webGL in chrome, ie and opera. only firefox will display the engine(but still without the model).
i think i will try to build a minimal example by my own now to get an better overview what happens exactly.
greetings from munich
You say you have fixed the ssl-problem in your demo but i still can't see any webGL in chrome, ie and opera. only firefox will display the engine(but still without the model).
i think i will try to build a minimal example by my own now to get an better overview what happens exactly.
greetings from munich
- Wolfmanfx
- OGRE Team Member
- Posts: 1525
- Joined: Fri Feb 03, 2006 10:37 pm
- Location: Austria - Leoben
- x 99
- Contact:
Re: ogre emscripten/webGL demo is not running anymore
You have to click "Download Model" button after you see the blank screen.
Also try this link https://coderabbit.at/webgl/
Also try this link https://coderabbit.at/webgl/
Re: ogre emscripten/webGL demo is not running anymore
Hello,
I'm trying to follow the same tutorial in order to build the viewer example on a Win7 64 bit machine. I've downloaded OgreEmscriptenSDK 1.10 and I have emscripten sdk-1.35.0-64bit installed and activated.
I'm somehow able to build but I have errors in the browser (Firefox, IE) when opening "release.html".
For example:
and
My build command is:
(I've tried various combinations of flags and none has worked)
So I'm looking for any advice about how to figure out what I'm doing wrong. I can post more data if necessarily just tell me what information to add.
Thanks,
Ionel
I'm trying to follow the same tutorial in order to build the viewer example on a Win7 64 bit machine. I've downloaded OgreEmscriptenSDK 1.10 and I have emscripten sdk-1.35.0-64bit installed and activated.
I'm somehow able to build but I have errors in the browser (Firefox, IE) when opening "release.html".
For example:
Code: Select all
TypeError: asm.js type error: incompatible number of arguments (6 here vs. 7 before)
Code: Select all
Invalid function pointer '1661' called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)
Code: Select all
set INCLUDE=-I. -I%OGRE% -I%OGRE%/include/OGRE -I%OGRE%/include/OGRE/Overlay ^
-I%OGRE%/include/OIS -I%OGRE%/freetype ^
-I%OGRE%/include/OGRE/RenderSystems/GLES2
set EXTRA=-s ASSERTIONS=2 -s DEMANGLE_SUPPORT=1 -s RETAIN_COMPILER_SETTINGS=1
set LIBS=-lOgreMain -lOgreOverlay -lOgreRTShaderSystem -lOGRE/RenderSystem_GLES2
set OPTIM=-O2 --llvm-opts 2
call "%EMSCRIPTEN%/em++" --clear-cache
call "%EMSCRIPTEN%/em++" Main.cpp Sample.cpp -L%OGRE%/lib/ %INCLUDE% %LIBS% %EXTRA% ^
%OPTIM% --preload-file media/@. -o release.html ^
-s EXPORTED_FUNCTIONS="['_passAssetAsArrayBuffer', '_clearScene', '_main']" ^
-s DISABLE_EXCEPTION_CATCHING=1 -s ALLOW_MEMORY_GROWTH=1 ^
-Wno-c++11-extensions --closure 1 >build.log 2>build_aux.log
So I'm looking for any advice about how to figure out what I'm doing wrong. I can post more data if necessarily just tell me what information to add.
Thanks,
Ionel
-
- Gnoblar
- Posts: 2
- Joined: Thu Jan 07, 2016 10:10 pm
Re: ogre emscripten/webGL demo is not running anymore
In the end I was able to build & run the example by compiling the Ogre Emscripten SDK from the sources (and not with the prebuilt SDK). The only possible remaining problem is that I don't see a 3D model when opening "release.html", only the Ogre logo, engine stats, etc. But otherwise it looks fine. I've used Emscripten sdk-1.35.0-64bit for compiling both the Ogre SDK and the example code.
Ionel (== ynr)
Ionel (== ynr)