xboxscene.org forums
OG Xbox Forums => Software Forums => Development => Topic started by: BenJeremy on November 26, 2002, 10:51:00 AM
-
Ugh. Looks like I'm going to have to do this the hard way tonight.... I looked at the swizzle code (what a non-compiling mess) from the XDK, and of course, YUV support is not there, either.
It seems you can't use YUY2-formatted textures as textures, they only work as overlays, and only directly to video memory.
Perhaps what MIGHT be able to be done is to use a non-displayed portion of video memory to put the overlay on (Open another D3D Device?), then read that portion of video memory back into a texture surface????
AARRGGHHH!!! It's either that or directly translate the YUY2 to ARGB/swizzled, which doesn't look too nice, either.
I want get video working for my screen shots in MXM without using overlays.... that way, I can have multiple video textures (for ex. backgrounds and screenshots) or use video textures on 3D objects.
Any ideas would be greatly appreciated. Thanks
-
Well, I've done about as much as I can for now. I did find a RenderStageState of YUVENABLE, but it didn't work for me at all, as described in the doco. I may be using it wrong.
I also had no luck with XGSwizzle()
So, I'm officially putting video textures on the side. It won't be a supported feature for 1.0.
If anybody is interested in the work I've done, I'm going to leave the code in, and I can send it to anybody interested in playing with it and maybe making it happen. I'm sure I'm missing something simple... if we can get video textures working, there are a whole lot more potential applications for it.