Video Textures
17 December 2014 12:16
17 December 2014 12:52
19 December 2014 02:35
I just tried video texture for 1st trial and used OGV. It only plays in Chrome. In FF, it causes horrendous camera slow down, and shows no movie. In IE, it does not even try to load the OGV, so no slowdown in moving the camera.
http://www.trepaning.com/b4w/movie.html
http://www.trepaning.com/b4w/movie.html
19 December 2014 08:51
19 December 2014 09:31
Ok guys
I'd recommend using webm format. It has better quality and is open-sourced (myvideo.webm). For browsers like safari and IE you need also MPEG4 video, so you should use some converter, append lossconv suffix and place the new file along webm one (myvideo.lossconv.m4v). You may also check our converter from SDK, in the upcoming release it will be even better.
About ogv issue, thats some kind of a bug, will check it, thanks for report.
I'd recommend using webm format. It has better quality and is open-sourced (myvideo.webm). For browsers like safari and IE you need also MPEG4 video, so you should use some converter, append lossconv suffix and place the new file along webm one (myvideo.lossconv.m4v). You may also check our converter from SDK, in the upcoming release it will be even better.
About ogv issue, thats some kind of a bug, will check it, thanks for report.
Blend4Web Team
https://twitter.com/AlexKowel
https://twitter.com/AlexKowel
19 December 2014 19:17
I have some updates about this issue
We have looked and encountered that there is a Firefox bug. Thus it's not possible to use video textures (any format) from html in this browser, so consider json export.
Also there is no support for video fallback in html (for IE or Safari if you use webm, for Firefox and Chromium if you use m4v). Again, consider json export.
We have looked and encountered that there is a Firefox bug. Thus it's not possible to use video textures (any format) from html in this browser, so consider json export.
Also there is no support for video fallback in html (for IE or Safari if you use webm, for Firefox and Chromium if you use m4v). Again, consider json export.
Blend4Web Team
https://twitter.com/AlexKowel
https://twitter.com/AlexKowel
20 December 2014 04:31
Today, I started doing json export for work stuff and will be using it more, so that works fine for me. What I don't like is the M4V website, dang thing designed and written by engineers. Just give me a download link for encoder and instructions! I look forward to the upcoming release of B4W, a few very handy additions like inverse parenting, click object to go to another page, audio fix for Firefox, better converter…
CSS question: How do I go about making a json load fill an entire browser window? I only seem to be able to set a specific pixel height, in the case above, that is 800px height, but I'd like the canvas to fill the entire browser window.
CSS question: How do I go about making a json load fill an entire browser window? I only seem to be able to set a specific pixel height, in the case above, that is 800px height, but I'd like the canvas to fill the entire browser window.
20 December 2014 15:28
Hi
Encoding video can be a tricky job, I don't know about websites, you may try Handbrake or some other GUI utility. Our converter depends on ffmpeg (libav tools) to operate and tested for UNIX OSes only (Linux/OS X). This converter designed for large amount of resources and can also convert textures and audio.
About css, the canvas size is setup by resize() function from main module. This is how it handled in webplayer app:
Encoding video can be a tricky job, I don't know about websites, you may try Handbrake or some other GUI utility. Our converter depends on ffmpeg (libav tools) to operate and tested for UNIX OSes only (Linux/OS X). This converter designed for large amount of resources and can also convert textures and audio.
About css, the canvas size is setup by resize() function from main module. This is how it handled in webplayer app:
window.addEventListener("resize", on_resize, false);
on_resize();
function on_resize() {
var w = window.innerWidth;
var h = window.innerHeight;
m_main.resize(w, h);
}
Blend4Web Team
https://twitter.com/AlexKowel
https://twitter.com/AlexKowel