Maniphest T103731

"Render animation" (Ctrl + F12) function: MP4 encoding is failing by issues regarding; 'Colored base layer' in corelation with a/the misplaced 'Shadow caustic layer'
Closed, Archived

Assigned To
None
Authored By
Thomas Due Nielsen (tdneren)
Jan 8 2023, 10:52 AM
Tags
  • BF Blender
Subscribers
Richard Antalik (ISS)
Thomas Due Nielsen (tdneren)

Description

OS: Windows 10
GPU: MSi GeForce RTX 2060 VENTUS GP OC

Blender Version
Broken:


Worked: The function has worked on Windows 10' mediaplayer, but has never worked in Chrome/as PlayCanvas export.

"One second video is playing, but as a 'split up' into (sort of) a 'colored base layer', and a 'shadow caustic layer' upon other platforms [in a PlayCanvas-example executed within Chrome, Opera, FireFox and Microsoft Edge]"
(cf this scrdump)

Exact steps for others to reproduce the error

  1. While exporting the video from Blender 3.3, to a varity of encodings (all possible within the Blender 3.3 interface:


)

  1. I thereafter; have tried to import the (most preferred encoding [by PlayCanvas]) to the PlayCanvas platform in the main .MP4-encoded format.
  2. Every time I play the Alpha-layer example (and as one can tell in example below), the video is executing the 1 second video, but as 'split up' into a base layer, and a overlaying 'caustic layer' + it seem to have issues in regards to X/Y-origins {meaning; that there is a fault in regards to where the renderer starts executing its pixels in the 'pixelbase-envelope' [or whatever better exact terms You might have]}
  1. Here is the (temporary accessible for approx. 1-3 months) exported example in PlayCanvas:

https://playcanv.as/b/1807e65c

X) If any help; here is the issue from within the PlayCanvas Forum: https://forum.playcanvas.com/t/need-help-regarding-alpha-mask-to-video/21439/12

//br and I hope the issue will dealt with soon (preferably before next version if somehow possible :-) ... obt )

Event Timeline

Thomas Due Nielsen (tdneren) renamed this task from "Render animation" (Ctrl + F12) function: MP4 encoding is failing by issues regarding; Colored base layer' in corelation with a/the misplaced 'Shadow caustic layer' to "Render animation" (Ctrl + F12) function: MP4 encoding is failing by issues regarding; 'Colored base layer' in corelation with a/the misplaced 'Shadow caustic layer'.Jan 8 2023, 10:52 AM
Thomas Due Nielsen (tdneren) created this task.
Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Tue, Jan 17, 7:43 PM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

Thanks for report, but it's not quite clear to me what the issue is. is it, that rendered .mkv file is not playable in chrome?

Thomas Due Nielsen (tdneren) added a comment.EditedWed, Jan 18, 7:12 PM

Ok, thanks for the reply.

The .mkv-file (or maybe the image of the 'Matroska file' export displayed), is not the focus.
Actually the PlayCanvas Forum-thread, was extended with some very useful postings from a After Effects-skilled user (Praven Jose in particular) - please revisit:
https://forum.playcanvas.com/t/need-help-regarding-alpha-mask-to-video/21439/12

In this regard the real focus has changed a little. Whereas the PlayCanvas now can play a very adjusted video-file, the question/issue has become two smaller ones, that still have the same core as the initial:

  1. Why do Blender users have to do such a cumbersome trick in After Effects, in order to play an alphalayer- & Shadow Caustics-based .mp4-video file in PlayCanvas? {should the exporter in Blender not be agile enough on beforehand? ... or at least give some setting options, capable of bypassing a 'trip to After Effects'?}
  2. Why does the video still lose its shadow-color? (If one is to play the video in a Windows media player, there is still color in the shadow from the light passing through the glass)

// Hope You find a solution :-)

Richard Antalik (ISS) closed this task as Archived.Wed, Jan 18, 9:24 PM

I think I understand now what the issue is - alpha channel was missing in the rendered video. In any case I can't help you to solve these kind of issues, because this is not user support forum. We handle only bugs and development tasks here. For user support, please try one of the community websites: https://www.blender.org/community/

For shadow issue I think this is because color is unpremultiplied since output is byte image. To avoid such issues, usually EXR files are used as output instead of videos, see T81199.

Thomas Due Nielsen (tdneren) added a comment.Wed, Jan 18, 9:40 PM

I disagree: I did not put this up as a "support issue". The thread is meant as a 'feature request' - being that: There is a video format that is not covered.
As such both I and many others would likely benefit, from an export option, that can avoid the After Effects step.

Likewise for the 'shadow color' sub-issue.

{One can argue that it will be a matter of time before 'the options for this particular video format' will be within Blender anyways -> this should remain a question of time and effort (at least conceptually)}

Richard Antalik (ISS) added a comment.Wed, Jan 18, 9:49 PM

AFAICS you could produce such output with compositor as well, but in any case, we do not handle feature requests here, only bugs.

Please use other channels for user feedback and feature requests: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug