emscripten video player

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

emscripten video player

Post by netpipe »

basic theora usage is rendering black cube

Image

https://github.com/netpipe/IrrlichtDemo ... eoraPlayer

going to try using the libs from here in the mein time https://github.com/brion/ogv.js/
Last edited by netpipe on Fri May 29, 2020 10:27 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: emscripten video player

Post by netpipe »

https://github.com/netpipe/IrrlichtDemo ... /ffmpeg-em for other video player was able to compile with this to get the static libs but emscripten is giving ctime errors
Last edited by netpipe on Sun May 31, 2020 4:51 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: emscripten video player

Post by CuteAlien »

About the "Non-power-of-two textures must have a wrap mode of CLAMP_TO_EDGE". If this is about the 2d texture material you can try setting ETC_CLAMP_TO_EDGE for TextureWrapU, TextureWrapV, TextureWrapW in first texture in IVideoDriver::getMaterial2D() and then set IVideoDriver::enableMaterial2D(true).
I guess if that's required we can try doing that by default somehow in the WebGL driver as well (maybe with size-check for texture). But I can only put this on todo for now for next year (or post Irrlicht 1.9 release as WebGL will still not be in there, sorry).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: emscripten video player

Post by netpipe »

thanks ,im unsure how to implement at this point i'll keep picking away at it.

Code: Select all

  driver->getMaterial2D().TextureLayer[0].TextureWrapU = ETC_CLAMP_TO_EDGE;
driver->getMaterial2D().TextureLayer[0].TextureWrapV = ETC_CLAMP_TO_EDGE;
driver->getMaterial2D().TextureLayer[1].TextureWrapU = ETC_CLAMP_TO_EDGE;
driver->getMaterial2D().TextureLayer[1].TextureWrapV = ETC_CLAMP_TO_EDGE;
tried this

might try https://github.com/d0n3val/SDL_theora with irrlicht next
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply