Path: chuka.playstation.co.uk!news From: "Peter Dollochan" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Transparency and TMDs Date: Wed, 10 Sep 2003 12:14:35 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 59 Message-ID: References: NNTP-Posting-Host: host81-128-93-176.in-addr.btopenworld.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 As far as I can see you have to use FT4N instead with the _tsb flag being your trans bit. Just use single colour 4X4 textures to cover your polys instead of flat shading them ? You use attribute bit 30 to set trans on in GsDOBJ2. #define setTMD_FT4N(t,_cba,_tsb,_u0,_v,_u1,_v1,_u2,_v2,_u3,_v3,_r,_g,_b,_vert0,_vert 1,_vert2,_vert3) \ (t)->mode = FT4N, (t)->flag = 1, (t)->ilen = 7, (t)->olen = 9, \ (t)->cba = (_cba), (t)->tsb = (_tsb), \ (t)->u0 = (_u0), (t)->v0 = (_v0), \ (t)->u1 = (_u1), (t)->v1 = (_v1), \ (t)->u2 = (_u2), (t)->v2 = (_v2), \ (t)->u3 = (_u3), (t)->v3 = (_v3), \ (t)->r0 = (_r), (t)->g0 = (_g), (t)->b0 = (_b), \ (t)->vert0 = (_vert0), (t)->vert1 = (_vert1), \ (t)->vert2 = (_vert2), (t)->vert3 = (_vert3) Is it sprite, box and line that dont work in tmd's ? cant remember sorry :-/ Pete. "Andrew Partington" wrote in message news:bjltp1$k322@www.netyaroze-europe.com... > Hi All > > Does anyone know if its possible to get the same degree of control over > transparencies with TMDs as it is with GsSPRITE and GsBOXF? > > I've been reading some of the posts in s.y.p.3d_graphics, some people > say that the attribute in GsDOBJ2 has some undocumented bits at 29-28 to > control the type of transparency, others say that it isn't possible and > you need to use a texture instead. I've tried the so-called > undocumented bits, but they don't seem to do much (then again i'm > viewing through a cheap capture card, so I can't really tell TBH - I do > know they don't look as good as the 2D versions though) > > Thing is, i'd like additive mixing in this case - i've written a 3D > (well, 2.5D anyway) version of my explosion routine - but without being > able to set the same kind of transparency I had when using GsBOXF it > looks nowhere near as good - and i'm not sure that using a texture would > compensate if you need to blend the particles with each other. > > On a related note - is there a TMD primitive for GsBOXF? I'm currently > using plain TMD_F4N for particles, it would be nice not to have n * 4 > vertices for each particle, since I have to move each one - it would > have been nice if the pointer to GsCOORDINATE2 was in TMD_OBJ instead of > GsDOBJ2, then you could use the last parameter of GsLinkObject4() in a > more sane way (well, maybe). > > Cheers, > > > Andy P >