Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
Video playback features in Pro version

fg
Registered User
Quote
2017-07-06 16:53:32

I am considering the CC pro version just to get access to the video playback feature for the wbGL target. But I find very sparse documentation on this from Ambiera and hesitate. Have anyone tried this and are you happy with how it works for WebGL?

- Satisfying framrate?

- Any practical resolution limits?

- Other practical limitations for the WebGL target? For example how many scenenodes can play videos simultaneously?

- Can all types of texture information be fed with video or is it just for the diffuse channel? Could we feed a normal map video through the system and if so would the video feature allow video feed of diffuse and normal maps simultaneously?

- Would it work to use a video feed of the normal map info for the "water surface" object. I have tried to work with the "animate texture" behaviour with the water surface but had severe problems with artefacts. (I wanted to simulate raindrops into the water).

Thank you!


niko
Moderator
Quote
2017-07-06 19:12:23

It basically works like this: If the browser can play back the video, it usually should also work inside of WebGL. A limitation is that the video needs to be located on the same server as the webgl app, it is a browser security restriction.

Other limitations are only based on the speed of your CPU, browser and network. You will probably have to try it out.

No normal map video supported, no, sorry. It is only designed to be used for showing ingame video sequences such as intros or similar.

You can see a demo here: http://www.ambiera.com/coppercub...

Here is the documentation for video playback: http://www.ambiera.com/coppercub...

For raindrops: Hm, interesting idea. The animate texture behavior is only for the texture channel one, I think, but with a bit of scripting, this could also be done, I guess. No video should be necessary, just a bunch of textures.


fg
Registered User
Quote
2017-07-09 20:14:59

Okay, thank you Niko. Now I have purchased the pro version off CC but I still cannot get the video playback to work. I´m sure there´s a reasonable explanation. I have a mp4 video in the same folder as the CC document, and I have assigned the "every few seconds do something" behaviour with the action "play a video" to a piece of geomety in the scene. Nothing happens in the editor. When publishing for the WebGL that geometry just goes black...

I cannot find any further documentation, tutorial or trouble shooting guide about this so I guess you will need to help me.

Best

Fredrik


fg
Registered User
Quote
2017-07-10 13:44:30

I also tried to publish the same scene to the windows target. Didn´t work any better, but at least I got an error message saying "Video-player: Could not open video....", this tells us that the issue might not have anything to do with the browser (Chrome).
Hope that you can help me with a trouble shooting guide or some hints in order to get the video function to work properly.


niko
Moderator
Quote
2017-07-11 10:07:35

You won't see the video playing in the editor, it is only visible in your app.

For the video to play in WebGL, you need to run it from a web server. And the video need to come from the same web server as your app. CopperCube usually runs one (on Windows at least), but best would be to use a real webserver and try from there. This could be one of the reasons why your video is black.

Also, starting a video every second isn't probably a good idea. The browser needs a bit of time to download, decode and start the video playing. Try playing it once for a start.

To see what problem exactly there is, open the developer console in your browser (Ctrl + Shift + I) and see if there are any errors printed under 'Console'.

To make an .mp4 video play in the windows .exe target, you need to install a DirectShow decoder for mp4.


3dblendsphinx
Registered User
Quote
2017-07-11 18:50:53

Hey fg,

I don't have Pro but it sounds like the way you have it setup in the behavior it will stop the video from fully playing because you're calling the Play function every few seconds to play the video so even if it started it would restart at the beginning each call. Which could possibly cause the video player to crash. So you might want to try what Niko suggested and use the 'On First Draw Do Something' to trigger the video to play.


bob
Guest
Quote
2017-07-13 09:39:44

+1 for animated normalmap, example of the rain drop is exactly a good use of this...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact