Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show content (other than camera stream) behind #3

Open
calebguy opened this issue Oct 29, 2019 · 4 comments
Open

Show content (other than camera stream) behind #3

calebguy opened this issue Oct 29, 2019 · 4 comments

Comments

@calebguy
Copy link

Currently using to overlay alpha video on top of an image, but where the image (background) should be showing, I am only seeing the camera feed (essentially looking through the background image). Is there anyway to see the background image properly with alpha transparent video on top?

@ravikundu
Copy link

hi @calebcarithers, did you find an answer for the issue you mentioned? If so, can you share it with me please.

@calebguy
Copy link
Author

calebguy commented Sep 1, 2020

Hey @ravikundu unfortunately not. Best of luck.

@ivanho521
Copy link

ivanho521 commented Oct 13, 2020

put the a-image element below the a-video

<a-video></a-video>
<a-image></a-image>

Apart from 3d position , it seems there is a rendering sequence. In the code, write the "backthings" first.

@lijualivenow
Copy link

lijualivenow commented Nov 24, 2020

Hi, I found the solution, add this component https://www.npmjs.com/package/aframe-render-order-component. After that add some higher render order like render-order="50".

Here is my sample code.

         <a-entity id="modelVideo" position="-0.3 0.2 -0.3" rotation="0 90 0" class="cantap"
            render-order="50"
            material="shader: chromakey; src: #alphavideoModel ; color: 0.1 0.9 0.2; side : double;transparent: true; alphaTest: 0.5; opacity: 1;"
            geometry="primitive: plane; height: .42; width: .75;">
        </a-entity>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants