Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: BNG Da BZ Fool on October 23, 2008, 04:27:04 PM

Title: Transparent cockpits: How are they done?
Post by: BNG Da BZ Fool on October 23, 2008, 04:27:04 PM
I'm trying to add them them to my units, but is it done by setting the opacity of the texture? Does the game engine set this by reading the cockpit object, and then converting the object as transparency? How do I get my cockpits to look like the stock unit transparent cockpits? Tanks...BNG.
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 23, 2008, 04:53:26 PM
Opacity as material setting or mesh setting. I use REFLECTION3.PIC with some blackish material settings and some slight transparency myself.
Title: Re: Transparent cockpits: How are they done?
Post by: TheJamsh on October 23, 2008, 06:24:57 PM
the stock models dont have any transparency i dont think, they are instead textured with 'glare.pic', which is just a black texture with some fake (and unconvincing) glare marks. personally i prefer them over transparent ones.
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 23, 2008, 06:52:26 PM
The ISDF mortar bike has a transparent cockpit for sure. I think they all do.
Title: Re: Transparent cockpits: How are they done?
Post by: General BlackDragon on October 23, 2008, 06:55:37 PM
Thats because of a graphics glitch, something to do with eyepoint being inside model.
Title: Re: Transparent cockpits: How are they done?
Post by: VSMIT on October 23, 2008, 06:55:48 PM
It's usually hard to tell because they're usually so thin on the body (i.e.: the Sabre).  Apparently, it does have some transparency, but it's so close to the body that it's almost impossible to tell.

VSMIT.
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 23, 2008, 06:58:13 PM
Quote from: General BlackDragon on October 23, 2008, 06:55:37 PM
Thats because of a graphics glitch, something to do with eyepoint being inside model.

It can't be since when in First Person the unit is not drawn at all. It had to be specially coded so another unit's target cam will show your vehicle if you are in first person. (In 1.2 you are still missing.)
Title: Re: Transparent cockpits: How are they done?
Post by: Avatar on October 23, 2008, 07:18:56 PM
Whoa...hold on...

If you make an object transparent by using the opacity of the material you end up with it being white under the 'no lights' setting.

If you use an Alpha Channel to make something transparent you keep the transparency under the 'no lights' setting.

You can also make something semi-transparent by using the 'glass' modifier on the name (myobject__g), which can do cool things to various materials.  :)

Finally, you can make something transparent with an alpha channel AND also define the object as 2 sided (myobject__2).  If you're really brave toss in the glass modifier also (myobject__2g).

Warning:  You can cause quite a framerate hit by having one transparent object behind another...  I have a 'lag cannon' that can bring even powerful computers to their knees when my ship morphs...  :evil:

-Av-

Title: Re: Transparent cockpits: How are they done?
Post by: TheJamsh on October 23, 2008, 07:31:18 PM
lag cannon haha
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 23, 2008, 08:00:43 PM
Lag cannon? *raises eyebrow*

So this is what Avatar has been up to is it? All this *talk* of BZC and now the truth comes out.  :lol:
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 23, 2008, 09:31:17 PM
I never knew about __g, if I set opacity at the mesh object level I don't have the light issue.
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 23, 2008, 10:07:19 PM
Only if it is absolute 0. It happens during lightning strikes too.
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 23, 2008, 11:44:47 PM
Oh good, I never use absolute zero except for things that are already __h

BTW, BBB, your the one who gave me the idea to use REFLECTION3.PIC after I looked at your QF Tower thing.
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 23, 2008, 11:56:26 PM
Yeah... its a damn good effect isn't it.
Title: Re: Transparent cockpits: How are they done?
Post by: BNG Da BZ Fool on October 24, 2008, 08:45:31 PM
Cool, I noticed the __2g thingy on the ISDF terminal object as I'm currently making my own recycler variant as I now have quite a few units that need a home now. I think I've finally begun to overcome my fear of making stuff. I guess it won't be too much longer before I have enough assets to make a completely new race of BZII freedom fighters. Dam shame that animations are out of my reach for now, but it sounds like even without them I can still make most of the units. Has anybody ever gotten a non animated walker type to work in the game? Will it still some how move to engage targets, or is animation the only way to get a walker to function in-game? 
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 24, 2008, 09:25:27 PM
You will need animations for a walker, definitely.
Title: Re: Transparent cockpits: How are they done?
Post by: OvermindDL1 on October 24, 2008, 10:37:31 PM
A walker that does not walk... what is that, a building?  If it slides around then a (hover)tank?  Does not sound like a walker in either case. :P
(http://www.overminddl1.com/image_scripts/image_sig.php?type=ODL1signitures&image/sig.gif)
Generated by OvermindDL1's Signature Auto-Add Script (http://overminddl1.com) via GreaseMonkey (http://greasemonkey.mozdev.org/)

Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 24, 2008, 10:40:43 PM
A sitter or slider perhaps.
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 24, 2008, 10:42:08 PM
I thought a walker without moving foot parts wont work?
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 24, 2008, 10:43:57 PM
Correct.

Well it wont walk anyway.
Title: Re: Transparent cockpits: How are they done?
Post by: TheJamsh on October 26, 2008, 11:52:22 AM
well

armored core, the old PS1 game had a four-legged set of legs that actually allowed you to glide/hover around. you could 'animate' those by using different XSI's in a hover tank ODF.

http://i219.photobucket.com/albums/cc161/ngeekhiong4/TMD_ArmoredCore_04.jpg it didnt walk, just glided and the legs moved around a bit
Title: Re: Transparent cockpits: How are they done?
Post by: bigbadbogie on October 26, 2008, 08:29:24 PM
Wow - It looks like a walker - it smells like a walker, but wait... IT HOVERS!!!
Title: Re: Transparent cockpits: How are they done?
Post by: Nielk1 on October 26, 2008, 09:13:05 PM
In the newer ACs the quad-legs actually walk. The hover legs still hover.