We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Video as material

Home Forums General Questions Video as material

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #13526
    EmmaEmma
    Licensee

    Hi at all,

    There’s a way (tutorial , example, demo or …) to assigne video as material like example to have a tv in a room ?

    Emma

    • This topic was modified 1 month, 2 weeks ago by Avatarwpadm.
    #13532
    zjbcoolzjbcool
    Licensee

    1.create a new app

    2.copy the code to .html

    3.copy the code to .js file

    4.result.

    sorry my poor English. :unsure:

    ——https://zjbcool.com/

    #13537
    EmmaEmma
    Licensee

    Hi zjbcool,

    I’ve already read your page (https://zjbcool.com/video-texture.html), but ( I’m not programmer :mail: ) I don’t understand How to replace material to video :unsure: .

    Have you an easy demo ?

    Best
    Emma

    #13573
    EmmaEmma
    Licensee

    Hi,

    I’ve create new project named “video”, in Blender 2.79, I’ve video.blend where there’s only a plane called screen and other parameters called always screen (see attachments).
    In body of file video.html I wrote

    and in file video.js I wrote

    but at the end I’ve only white page :cry: .

    I don’t know where I’m wrong

    Emma

    • This reply was modified 1 year, 7 months ago by EmmaEmma.
    Attachments:
    You must be logged in to view attached files.
    #13587
    zjbcoolzjbcool
    Licensee

    As far as I know,It is only by code.
    do you have a video file like sintel.mp4?You should place ‘sintel.mp4’ with your own video file in the .html.
    And here is an example file, hope to help you.

    • This reply was modified 1 year, 7 months ago by zjbcoolzjbcool.

    ——https://zjbcool.com/

    #13596
    EmmaEmma
    Licensee

    Thanks Perfect !!!,

    I don’t know why, in past I follow your step but don’t worked.

    Now It’s working !!

    However thanks for your help zjbcool!

    Emma

    #13598
    zjbcoolzjbcool
    Licensee

    Glad to hear that! :good:

    ——https://zjbcool.com/

    #13783
    Yuri KovelenovYuri Kovelenov
    Developer

    Glad you found a solution!

    @zjbcool
    Thanks for helping out!

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #15804
    Philip FongPhilip Fong
    Licensee

    Awsome! Thank you very much!!! :yahoo:

    • This reply was modified 1 year, 4 months ago by Philip FongPhilip Fong.
    #15824
    Philip FongPhilip Fong
    Licensee

    Unfortunately Chrome browser always have issue with autoplay video, the interactive will behave abnormal. Worked on Firefox.

    • This reply was modified 1 year, 4 months ago by Philip FongPhilip Fong.
    #15829
    CrunchCrunch
    Licensee

    I have been messing around with getting video into my scenes and so far I think you might have to have the ‘muted’ flag added to the html to get the video to autoplay.. of course, the video then plays, but no sound.

    Example:
    <video id=”video” autoplay loop muted>

    Fyi The sample video zjbcool used, starts with a black frame. So when I saw black, I figured I did something wrong and nothing was displaying, when in fact, it was just freezed on the first frame, which was black.

    I have a cold beer for anyone who can figure out how to add a video texture that allows the alpha channel so the background is transparent.

    Here is an article I am trying to digest right now on a related concept. Viewer discretion suggested 😊

    Transparent video texture in three.js

    #15851
    Philip FongPhilip Fong
    Licensee

    How to add a click object to play the video? if possible would be good enough. Thanks.

    #25948
    AvatarXen Wildman
    Licensee

    The moment I add this to my js file it kills the app and it won’t load anymore. Can someone provide an updated example of a video material?

    Verge3d devs, it would be prudent to have this as an example project included with Verge3d or a puzzle to plug videos in to the application.

    #25967
    Yuri KovelenovYuri Kovelenov
    Developer

    I think we’ll make a puzzle for that :good:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #26935
    Avatargroock
    Newbie

    Hi thanks for this, it would be great if we could see the example file again, very close to fixing a problem with this video and would be interested in checking it out, thanks

    Groock

Viewing 15 posts - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.