basic theora usage is rendering black cube
https://github.com/netpipe/IrrlichtDemo ... eoraPlayer
going to try using the libs from here in the mein time https://github.com/brion/ogv.js/
emscripten video player
emscripten video player
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%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: emscripten video player
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%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: emscripten video player
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).
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: emscripten video player
thanks ,im unsure how to implement at this point i'll keep picking away at it.
tried this
might try https://github.com/d0n3val/SDL_theora with irrlicht next
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;
might try https://github.com/d0n3val/SDL_theora with irrlicht next
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%