R: [Plib-users] Transparent texture
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2000-06-16 12:20:05
|
Dear plib/ssg friends, I didn't hear anything related to the subject, and I am a bit surprised that a community around a game-oriented library is not much sensitive to it. The easy explanation could be that all works ok, and I'm doing something wrong... but the fact is that I don't set anything special for getting trasparent textures, other than to supply the alpha-equipped [2/4 compoments] texture. The little step forward, that anyway doesn't solve the general problem, is to set materials[...]->setAlphaClamp(0.5f) into the 3DS loader. This actually rises the threshold of the transparent part with respect to the opaque, but I'm still in trouble with the full [0:255] alpha range support in rgba/inta textures. Does anybody work with full alpha'ed textures for special effects in plib/ssg-based games? I read 3DS files for tests, so if anyone does it with (secene data) in a different format, it could lead to understand that there is some bad setting in the 3DS reader, so we could modify it... Sorry for insisting on it, but I'm very disappointed (still loving plib, anyway!) - Paolo ---------------------------------------------------------------------------- - Paolo Leoncini phone: +39 (0823) 623134 Scientific Visualization Group fax: +39 (0823) 623126 CIRA - Italian Center for Aerospace Researches p.l...@ci... Via Maiorise - 81043 Capua (CE) Italy www.cira.it/research/vis > -----Messaggio originale----- > Da: pli...@li... > [mailto:pli...@li...]Per conto di Paolo > Leoncini > Inviato: martedì 6 giugno 2000 12.06 > A: pli...@li... > Oggetto: [Plib-users] Transparent texture > > > Why in SSG my transparent (rgba/inta) textures appear with a sharp > transition from alpha=255 to alpha<255, like 1-bit alpha? > > Better explained, whilst alpha channel is fully exploited (i.e. [0:255] > range), transparent area on such textures is limited to where > alpha is 255. > This obviously results in a bad "halo" where, let's say, 0<alpha<255, and > effects like steam, smoke are thus impossible to be done thru textures. > > Should I enable some special flag in the state node? (the image loader > correctly understand the zsize 2 or 4 of such textures). > > Greetings - > > Paolo > > ------------------------------------------------------------------ > ---------- > - > Paolo Leoncini > phone: +39 (0823) 623134 > Scientific Visualization Group fax: +39 > (0823) 623126 > CIRA - Italian Center for Aerospace Researches p.l...@ci... > Via Maiorise - 81043 Capua (CE) Italy www.cira.it/research/vis > > > _______________________________________________ > plib-users mailing list > pli...@li... > http://lists.sourceforge.net/mailman/listinfo/plib-users > |