hey,
...since IOhannes has been producing some cool things in cvs (thanks for moving the arb_program stuff to main!), I thought I'd throw out a recent thing I got going with multitexture: you can load two films which are then textured to rectangles, then a third rectangle is textured by a blending of the two...this is cool because it's all on the gpu!...it requires latest cvs, or at least [pix_texture] that outputs texID's...
...so if this works for other platforms, I'll continue to wrap it up in an object, which'll have a creation arg for how many texUnits you want to work with (card limited)...I suppose later objects will then allow manipulation of the texEnv() state for different blending modes...
jamie
james tittle wrote:
hey,
...so if this works for other platforms, I'll continue to wrap it up in
it works somewhat (2 films _are_ blended) but there seem to be some problems with rectangle vs normalized textures. (but i have very little video material here that i can test on)
mfg.a.sr IOhannes
On Sep 28, 2005, at 11:59 AM, IOhannes m zmoelnig wrote:
james tittle wrote:
...so if this works for other platforms, I'll continue to wrap it up in
it works somewhat (2 films _are_ blended) but there seem to be some problems with rectangle vs normalized textures. (but i have very little video material here that i can test on)
...yeh, the problem with that patch is that it doesn't really provide a way to pass the changing from rectangle to texture_2d, mainly because the 2nd film's dimensions are constantly sent to the multitexcoords...so, you could disconnect those and then hand reset the multitexcoords and make a few other changes (ie. mode, GL_TEXTURE_2d,...), or you can just trust me that it works ;-) This is something that'll be much easier to do in the actual object...
...anyway, it's good that it's working, so I'll proceed!
jamie