RE: [GD-Windows] Direct3D 8.0 texture stage states
Brought to you by:
vexxed72
From: Carsten O. <car...@se...> - 2004-03-03 08:41:17
|
This might be obvious, but you _are_ setting up three stages for color _and_ alpha operations, right? It might also be helpful to not only disable stage 3 but to do it all the way up to stage 8. Just in case... Carsten Orthbandt Founder + Development Director SEK SpieleEntwicklungsKombinat GmbH http://www.sek-ost.de Wenn ich Visionen habe, gehe ich zum Arzt. - Helmut Schmidt =20 > -----Original Message----- > From: gam...@li...=20 > [mailto:gam...@li...] On=20 > Behalf Of Jon Watte > Sent: Wednesday, March 03, 2004 3:19 AM > To: gam...@li... > Subject: [GD-Windows] Direct3D 8.0 texture stage states >=20 >=20 >=20 > We're porting an OpenGL renderer to Direct3D 8.0. >=20 > The documentation in concordance with the device caps for a=20 > GeForce2 claim > that you can configure up to 8 texture stage states, but you=20 > can only bind > two textures. We have a specific texturing set-up that in=20 > OpenGL looks like > this: >=20 > Texture0 \ > LERP \ > Texture1 / MODULATE -> done > Diffuse / >=20 > This uses 2 texture environments on OpenGL, but it appears=20 > that DirectX 8 > for fixed-function hardware cannot route two textures to one=20 > texture stage > state. Thus, we want to use three stage states, in the following > configuration: >=20 > Texture0 \ > SELECT1 \ > LERP \ > Texture1 / MODULATE -> done > Diffuse / >=20 > We can get the first two stages to work fine, but as soon as=20 > we turn on the > third stage, the operations from the first two stages=20 > disappear, and we get > solid-white diffuse lit geometry. Note that we get that, even=20 > if we choose > SELECTARG1 for the operation for the third stage state (i e=20 > stage state > index 2). >=20 > We are disabling the stage state with index 3, just to make=20 > sure that we've > gotten nothing wrong. However, no matter what we do, we can't=20 > make this > work. We've tried both debug and release DirectX 9.0b runtime (can't > downgrade on the development machines to try with 8.0 proper). >=20 > Right now, we're feeling pretty glum. Any ideas? >=20 > Cheers, >=20 > / h+ >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 |