|
Post by sfranzyshen on Jul 5, 2011 19:24:30 GMT -5
I have seen a few engines starting with BeefQuake that claim cinematic files as textures. However, I have never seen any examples of this ... also, other then the BeefQuake code are there any tutorials, or other code available?
Thanks
|
|
|
Post by Kaal979 on Jul 5, 2011 20:07:42 GMT -5
Maybe youre referring to animated textures like those for the water?
|
|
|
Post by sfranzyshen on Jul 5, 2011 21:32:07 GMT -5
Nope! I am talking about using .cin files as textures in a map. I remember talk about this in early development of quake2 but it never got finished. later on, after the source was released, someone fix it up and got it working. I now see at least two engines who say they have support for it, but I have never seen any maps or edited maps that show this feature off. Anyone else?
|
|
Mikemc
Quake 2 Mapping Club
Reminiscing this & that & having such a good time
Posts: 344
|
Post by Mikemc on Jul 17, 2011 3:07:16 GMT -5
Could Paril's 'Clean Code' be used for this?
|
|
|
Post by Paril on Jul 18, 2011 14:24:57 GMT -5
.cin as a texture, no, it was never done or created. Animated textures are all you can do (either via .wal, or the animated textures in Quake 3-style shaders).
Most obvious reason it was never done is because the .cin format sucks, and because there would be no built-in way, with keeping compatibility, that you could "turn the movie on", so to speak.
No engine, afaik, supports 'videos as textures'. However, you COULD edit the shader format, which does the animated texture thing, to support infinite amounts of textures, so you could have a huge amount of textures to imitate a movie.. but it would be space-intensive.
-P
|
|
|
Post by knightmare on Jul 26, 2011 20:18:28 GMT -5
This is doable in the Quake3 engine- shaders can incorporate .roq files. Judging from its source code, Quake2Evolved appears to have this functionality as well. Here's a working example of this in Jedi Academy: jediknight3.filefront.com/file/Movie_Academy;39831Here's the shader this map uses: textures/sjc_EIII/eiii { { videomap EIII.roq blendFunc add rgbGen identity } }
EDIT: Just got the RtCW intro cinematic displaying in the BeefQuake test map under Q2E. Here's the shader I used, almost exactly like in the Q3 engine: textures/24bit/matrixcode { { videomap video/wolfintro.roq blendFunc add rgbGen identity tcmod scale 0.0833 0.1667 } }
Q2E also supports .cin textures: textures/alpha/video { { videomap video/ctc.cin tcmod scale 2 2 } { map textures/env/course2.jpg blendfunc GL_SRC_ALPHA GL_DST_ALPHA } }
And here's the original script for the BeefQuake test map (scripts/maps/<mapname>.txt): textures/alpha/video { { map video/ctc.cin } { map textures/env/course2.jpg blendfunc GL_SRC_ALPHA GL_DST_ALPHA envmap } }
I would post a screenshot of this, but any attempted upload to my QuakeDev site right now results in a disk full error. The BeefQuake test map is in the file bqtech_v12.zip, which is just under 6 MB. I haven't been able to find it anywhere for download, as the BeefQuake site is quite broken.
|
|
|
Post by Paril on Jul 27, 2011 10:47:57 GMT -5
Oh, appears I was wrong - nice to know that engines do support this, I would like to of seen a better video format support for playing though.
-P
|
|