Home › Forums › General Questions › Video Texture
- This topic has 7 replies, 3 voices, and was last updated 3 years, 1 month ago by gf3d.
-
AuthorPosts
-
2021-10-18 at 1:43 pm #46274gf3dCustomer
Hi there,
i´m experimenting with the load Video Texture for a new project.
I loaded the video texture project from verge3d and changed the link to a video that should be loaded from my page. see the puzzles attached.
But the screen remains black…nothing is being loaded.
Any ideas why?…..
Question?…what video formats are supported?
Greets
Ger
Attachments:
You must be logged in to view attached files.2021-10-18 at 2:43 pm #46277xeonCustomerHi there
If the video is very small loading it it on demand will work however in my testing I had to preload it onto a small object hidden in the scene just like a material swap. Otherwise I could get a black screen while the file loaded.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-10-18 at 4:43 pm #46281gf3dCustomerHi Xeon,
the puzzle i took from the verge project….the original fish movie was far bigger than mine…so as you say it i can use the video as a texture on a hidden object…just like any other texture?
I thought that videos of any kind could not be used as a texture?
Greets
Ger
2021-10-18 at 6:02 pm #46282xeonCustomerThe video loader demo provided works as long as certain conditions are true. I won’t get into those since your puzzles are pretty much identical to the example and your video is very small in file size.
The main difference you are fighting are resolution, UV mapping and probably, the fact your video starts on a black screen.
The example fish video is 1280×720 and your video is 300×224. I am betting that the video is playing but since the UVs are set for a 1280 image…your image is just not visible. You could start with mapping a 300×224 image to the video display object…adjusting the UVs and then I would bet this example will work.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-10-18 at 7:41 pm #46284xeonCustomerI take it back its not UVs.. its something to do with your video…working onit.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-10-18 at 7:50 pm #46285xeonCustomerIf you are trying to do this from App Manager and are not trying to view this from your server you will get a CORS error. The file can’t be loaded from a different website…if you are using App Manager you are using localhost and nothing external will load.
You can move the video file local or when you publish your project to the same server you have the video it will work.
Note these puzzles will work under limited circumstances. You will want to preload the video prior to playing it and validate it’s able to play before requesting it to play for the user. Otherwise, you can get black screens for other reasons related to memory issues, especially on slower internet connections and mobile devices.
Attachments:
You must be logged in to view attached files.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-10-19 at 3:24 am #46287CrunchCustomerI would first try getting things working locally (meaning dropping a copy of the mp4 mp4 inside your project folder.. as opposed to pulling from web server)
It has been a while since I played with video textures but from what I recall, there were some black screen issues depending on how I encoded the video.
Did you by chance use Vegas Video to render the video file?
I always use Magix encoder and remember it working fine at the default 1080p 29fps setting but when I would try a lower resolution, the file wouldn’t play. I believe after re-encoding the file with Adobe Media encoder and things started working.
Sorry I can’t be of more help.
2021-10-19 at 7:16 am #46294gf3dCustomerThanks a lot….its working now
Greets
Ger
-
AuthorPosts
- You must be logged in to reply to this topic.