Bug 4745 - [patch] Support non-256x256 videos in shaders
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: PC All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2010-08-28 21:56 EDT by Zack Middleton
Modified: 2011-02-11 09:46:44 EST
1 user (show)

See Also:


Attachments
Support all videos in shaders (4.78 KB, patch)
2010-08-28 21:56 EDT, Zack Middleton

Description Zack Middleton 2010-08-28 21:56:04 EDT
Created attachment 2434 [details]
Support all videos in shaders

Support videos that are not 256x256 in shaders for ingame use. This allows any video (like video/idlogo.RoQ)  to be used in a shader and appear as a texture ingame.
Comment 1 Thilo Schulz 2010-08-29 14:07:55 EDT
I am not comfortable applying this. You have basically written an interpolation routine which scales all videos to 256x256. Quite a large change. I would like to have Timbo/Angst wheigh in on this before I apply it, and whether we really want this.
Comment 2 Zack Middleton 2010-08-30 13:56:15 EDT
I did not write the interpolation routine (CIN_ResampleCinematic), it was moved (without modification) out of CIN_DrawCinematic to be reused for videos in shaders. Videos are only resampled if the hardware doesn't support textures larger than 256x256 (see end of readQuadInfo function), this is also true for normal cinematics (with and without patch).

Basically it removes the hardcoded size of 256x256 for videos in shaders. Full size of the video is used, unless hardware doesn't support textures large enough. This is the same as normal cinematics (with and without patch).
Comment 3 Thilo Schulz 2011-02-11 09:46:44 EST
fair enough. Applied.