Page 1 of 1
emscripten video player
Posted: Sun Dec 01, 2019 6:38 pm
by netpipe
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/
Re: emscripten video player
Posted: Tue Dec 03, 2019 6:03 am
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
Re: emscripten video player
Posted: Tue Dec 03, 2019 11:34 am
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).
Re: emscripten video player
Posted: Tue Dec 03, 2019 9:47 pm
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