FSIC Messageboard
  Old Tech Info
  How does non-texture transparency work?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   How does non-texture transparency work?
Bryan Russell
Pilot
posted 12-13- 08:58 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
All of the LODs I look at have the alpha component of the polygon colour value set to 0, which is full transparency. I guess that this means that the alpha part of the colour is ignored. So... is the transparency for the cockpit glass etc based on the material value applied to it ather than the alpha of the polygon colour? In other words do all of the polygons that are set to a material of "glass" get rendered white with a certain amount of alpha?

If so I must have fluked it bigtime for a canopy I did, I completely ignored the material thing and instead changed the alpha.

Thanks,

Bryan

IP: Logged

mposis
Pilot
posted 12-13- 10:38 PM     Click Here to See the Profile for mposis   Click Here to Email mposis     Edit/Delete Message   Reply w/Quote
Bryan,

If I want to use a transparency without textures I just use an alpha of 1 to f and a texture index of 0. If you want to use textured transparencies you also have to set the texture flags in the asc file as well as the alpha in the lod.

[This message has been edited by mposis (edited 12-13-1999).]

IP: Logged

Bryan Russell
Pilot
posted 12-13- 11:58 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
mposis,

I understand that, and thats they way I would have thought it all would have worked.

Are you saying that you set the alpha part from 1 (almost solid) to F (transparent) to get transparency? I had just assumed that the alpha in the LOD polygons was 0 for transparent to F for solid, as it would be for most other systems (I just scale the values and push them at D3D). If this is the case then this would be my problem, which would mean that all of the untextured LODs might have the wrong colour in OPS.

IP: Logged

Bryan Russell
Pilot
posted 12-14- 05:10 AM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
OK, its official, I'm a fool!

The alpha being 0 disabling transparency thing through me, and coupled with a few co-incidences I was forced down a wild goose chase from which there was no escape until utter humiliation set in

Turns out I had a slight problem in OPS which caused some things to look "right" and not others.

Sorry for the wasted topic.

IP: Logged

jedi
Pilot
posted 01-09- 10:10 PM     Click Here to See the Profile for jedi   Click Here to Email jedi     Edit/Delete Message   Reply w/Quote
Maybe I'm an idjit, but I've tried this two or three times and it works (in AC3D)...

Build your canopy however you want (I usually "hijack" one from another plane and modify it).

Now, import the canopy from the P-51 into your workspace in AC3D (be sure not to have anything selected or it will get replaced)
When you do this, it will bring the COLOR of the P-51 canopy into the AC3D pallet. Use the edit feature to view it. You'll see that it's got some color, no texture, and a "transparency" of 0.188 or so.

Now, delete the P-51 canopy; you only wanted the color (unless you just want to modify it to use for your own).

Now, highlight your canopy, and set it to ONE-SIDED surfaces (IMPORTANT!). Use the 3D screen to rotate the canopy around. You need to be able to "see" the canopy ONLY from the outside--any inside surfaces must be invisible. If not you may have to "explode" your canopy and delete all the "inner" surfaces.

Now, you've got a one-sided canopy. Set all surfaces to the Mustang canopy color, and then export your canopy .lod back into your working directory.

In the sim, you should now have a canopy that's invisible from inside the cockpit, and has a very slight blue tint from the outside, showing the "edges" of the glass surface.

You can use two-sided surfaces to get a "tinted" canopy, but it's hard to get the transparency right, and of course it tints the outside world


------------------
--jedi--

IP: Logged

Bryan Russell
Pilot
posted 01-10- 07:06 PM     Click Here to See the Profile for Bryan Russell   Click Here to Email Bryan Russell     Edit/Delete Message   Reply w/Quote
Thanks jedi, it was more about what SDOE needed colour value wise, and since the value 0, which would normally be fully transparent is used by SDOE as a "don't make transparent" value it put me into a lack of sleep induced wild goose chase.

Unfortunaitly I don't use AC3D so I can't use any of your excellent advice.

Bryan

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Fighter Squadron Information Center

(This site Copyright (c) 1999 Inertia LLC)

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.45c