Product Chat / Use a video as a texture/material

Author
Message
evalu-a-tron
3
Years of Service
User Offline
Joined: 22nd Apr 2021
Location:
Posted: 22nd Apr 2021 14:22
I wish to display videos on planes, sides of cube, etc. similar to a computer monitor or projected image. In blender this is a material / texture type. I can't seem to find it in GG and google has not assisted me. Please point me at it, or suggest another product that may assist (appgamekit?). Thank you!
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 22nd Apr 2021 17:25
Did this a while ago now and tuts several times here. Do a search on videotexture should point you to my tutorials hopefully .
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++ VS2019, SQL, PL-SQL, JavaScript, HTML, Three.js, others
Hardware: ULTRA FAST Quad Core Gaming PC Tower WIFI & 16GB 1TB HDD & Win 10 (x64), Geforce GTX1060(3GB). Dell Mixed Reality VR headset, Aerodrums 3D
Avenging Eagle
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 22nd Apr 2021 19:05
This cannot be done in Game Guru like it could in FPSC. In FPSC, you could simply select an AVI file to be a texture. The method Bored of the Rings is referring to is a workaround that involves making an atlas texture where you basically lay out every frame of your video on a huge texture and the shader just displays each frame one after another. It's totally impractical for anything longer than a few seconds though. Let's say your video is 25 seconds long; that's 625 frames at PAL 25 fps. Even if each frame is only 256 x 256, which is really low resolution but might work for a screen or something, your atlas texture would need to be 6,400 pixels wide and 6,400 tall. That's a huge memory overhead for something that's effective a background prop.

It's sad TGC never carried over this functionality from FPSC, I miss it dearly.

AE
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 22nd Apr 2021 19:55 Edited at: 22nd Apr 2021 19:57
here is a link, if you want to try this workaround:

https://forum.game-guru.com/thread/217140#msg2568774

and here:

https://forum.game-guru.com/thread/217140#msg2568821

and more info here:

https://forum.game-guru.com/thread/217140#msg2568989
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++ VS2019, SQL, PL-SQL, JavaScript, HTML, Three.js, others
Hardware: ULTRA FAST Quad Core Gaming PC Tower WIFI & 16GB 1TB HDD & Win 10 (x64), Geforce GTX1060(3GB). Dell Mixed Reality VR headset, Aerodrums 3D
Defy
16
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 24th Apr 2021 14:46
Great to see this was looked at in the past, nice links for those diving in.

Here's a random video, had to do a new shader for this one. Biotech 100% real

PM
evalu-a-tron
3
Years of Service
User Offline
Joined: 22nd Apr 2021
Location:
Posted: 25th Apr 2021 06:24
Thank you very greatly indeed Bored of the Rings, Avenging Eagle. Great info. My use case is much longer video, 4 streams, 30 minutes each in my test case. I feel a different tool set might be needed for my solution.
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 3rd May 2021 18:10
Video textures working in a forked/modified version of (old) GG Classic, it would be great to have something similar in Max at some point in the future:



Cheers.

GPU: GeForce RTX 2070 SUPER PassMark: 18125
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 3rd May 2021 20:43
Miss video textures in GGMax, love them.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-05-06 10:46:32
Your offset time is: 2024-05-06 10:46:32