Status of emscripten backend?

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 61

Status of emscripten backend?

Post by frostbyte »

ogre look great on browser https://github.com/joeyview/ogre/wiki/document
unfortunately, this is only a demo and is unoptimized/buggy/unsupported/works only on chrome 33....only ogre 1.9....

so i've seen that ogre 1.10 and 2.0 have an official emscripten backend...( replaced flashcc backend...did that ever work??? )
does anybody know if it's usable?
can be nice if someone can direct me on how to build and link it to a some c++ code...

edit: ok,now i understand that i need to use emcmake( correct me if i'm wrong... ) to build ogre...
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: status of emscripten backend???

Post by Wolfmanfx »

Yes emscripten is working fully and the code is pushed into 1.10 - build docs are missing and the sample is not pushed.

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 61

Re: status of emscripten backend???

Post by frostbyte »

thanks man, good to know - now i have a reason to move to 1.10...and a new toy to mess with... :D
appriciate your work...thanks again...
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos

dertom
Gnoblar
Posts: 5
Joined: Mon Sep 10, 2012 8:38 pm

Re: status of emscripten backend???

Post by dertom »

Wolfmanfx, thx for you efforts! You rock....!

Edit: Just for info,WindowEventUtilities doesn't notify its listeners about WindowResize...! Not that important,yet! More Important, it really does work! Yeah,yeah,yeah :D

Edit2: Here, my first test with my engine (and also a very 'personal' birthday-present :D ) http://thomas.trocha.com/misc/boris/release.html

User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: status of emscripten backend???

Post by Mind Calamity »

Welp, happy birthday, Boris! :lol:

How did you compile that though ? I found the code in OgreMain/Emscripten, but I didn't see a CMake option to enable it.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 61

Re: status of emscripten backend???

Post by frostbyte »

How did you compile that though ? I found the code in OgreMain/Emscripten, but I didn't see a CMake option to enable it.
you need to use the emscripten cmake tool chain file...only then the emscripten option will show up...( in cmake options )

instructions on windows with msvc:( only msvc10 is supported by emscripten )
after installing the off-line emscripten full version and updating the sdk to 1.27 using instructions on emscripten.org....
dropped "opgredeps" to ogreSDK folder...
at configure i used msvc10 target compiler with the emscripten.cmake tool chain file...( located at /emscripten/1.2X/cmake ... )
then disabled build samples, enabled unity builds.....hit configue twice...generate... nmake...nmake install..
Last edited by frostbyte on Tue Jan 13, 2015 7:57 am, edited 3 times in total.
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 61

Re: status of emscripten backend???

Post by frostbyte »

Wolfmanfx : your prebuild ogre version doesn't link with demo project on the "downloaded emscripten installer" version....
i guess you used 1.28 sdk to build ogre while "downloaded sdk" is still at 1.27...
maybe its better to compile prebuild ogre against sdk 1.25/1.27( or just wait for kripken's to update... )
most people would probably prefer using the installer(sdk1.27) rather then building emscripten from source(sdk1.28)...
thanks man...ogreJS for sure made some people happy :wink:
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: status of emscripten backend???

Post by Wolfmanfx »

Hi,

yes I have build against 1.28 (atm 1.29.1 is the latest) - I would say its really easy to build the emscripten source :)
I have no plans to build against the older version.

frostbyte
Orc Shaman
Posts: 737
Joined: Fri May 31, 2013 2:28 am
x 61

Re: status of emscripten backend???

Post by frostbyte »

sorry my bad... :mrgreen:
it seems "./emsdk install latest"," and "./emsdk activate latest"... actualy installs the latest stable branch sdk( currently 1.27 )
to work with prebuild ogre, one should use "/emsdk install sdk-incoming-64bit" and "./emsdk activate sdk-incoming-64bit" for latest development branch
as stated here... http://kripken.github.io/emscripten-sit ... e_sdk.html
party on... 8)
the woods are lovely dark and deep
but i have promises to keep
and miles to code before i sleep
and miles to code before i sleep..

coolest videos link( two minutes paper )...
https://www.youtube.com/user/keeroyz/videos

Post Reply