Page 1 of 2

Transparency / reflection not working right

Posted: Thu Jul 29, 2010 10:56 pm
by Marvel4
Hi, I'm currently working on a Kamino conversion and try to get the transparency / reflection to work. It doesn't work with shadows on high, but works with shadows on low:
Image Image

How can I get this to work? :(

Re: Transparency / reflection not working right

Posted: Thu Jul 29, 2010 11:36 pm
by AQT
Try placing omni-directional lights in the indoor areas with Cast Shadows set to No.

Re: Transparency / reflection not working right

Posted: Thu Jul 29, 2010 11:59 pm
by Marvel4
That didn't work... :(

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 12:15 am
by AQT
Okay, so I just opened up SWBF1 Kamino in ZE and noticed that the Shadow Regions don't have any values assigned to them. That could be the problem. Can you confirm this?

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 12:23 am
by Marvel4
Yes, it was like that at the beginning, but I changed the values and it didn't seem to change anything. And if I remember correctly, I even removed the shadow regions and had no luck.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 12:52 am
by AQT
Hmm, I'm not sure what's going on here. Maybe it's not supposed to work? I mean take a look at stock SWBF2 Kamino, the floors are no longer reflective. Sorry, I'm just out of ideas.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 1:09 am
by Marvel4
Well, it worked in BF1, and there are maps in BF2 where it works, too, like Death Star or Tantive IV.
I just don't get it why it works perfectly with shadows on low... :?

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 4:00 am
by Jendo7
What if you copy the lighting system from Tantive IV. It might work.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 4:33 am
by Marvel4
Good idea, but it didn't work. :(

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 2:24 pm
by CressAlbane
Tantive 4 looks like that because there is a "other floor" beneath the floor that looks like a reflection.
But I think you need some lighting stuff too.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 2:33 pm
by Maveritchell
I don't know how this map is set up in ZE, and I don't know if the models themselves are necessarily using a reflection render flag or a transparency render flag. What you may want to try is simply changing any reflection render flags to transparency render flags (in the .msh itself) and then setting up a reflection region in ZE (if this is not already how it's set up).

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 3:48 pm
by Marvel4
Yes, the floor is using a transparency flag, but it doesn't work except when shadows are set to low.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 6:30 pm
by AQT
Try adding this line to the .msh.option file:

Code: Select all

-noprojectionlights
If that doesn't work, there might be one more last thing I'll look into.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 6:43 pm
by Marvel4
Didn't work either. :(

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 6:50 pm
by AQT
Eek, alright, here's my last idea: I noticed that the transparency setting on the Death Star hangar floor is 88 fifth place after ATRB. I'm assuming this value enables both specular and double sided transparency. The setting for all instances of transparency found in the kam_bldg_mushplatform_interior MSH is 04, or single sided transparency. Try changing all the 04 values (fifth place after ATRB) to 08s to see if it makes a difference.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 7:06 pm
by Marvel4
Umm, something very strange happened... now the complete interior is invisible and I can go through the walls :shock:
EDIT: I don't know what I did wrong, but now its back to normal, but still not working.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 7:34 pm
by AQT
Well that's all the possible solutions I can think of. If nothing else comes up I guess you can just turn off the transparency completely or leave everything as it is.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 8:59 pm
by FragMe!
The big difference between BF1 Kamino and the Death Star is the Death Star has the reflected walls underneath the Kamino buildings do not. The Convopack does the same thing to the reflected floors as what you described.
I think it because Kamino is relying solely on refections regions (BF2 Kamino BTW doesn't have any) and some how hires shadow in the game engine overide the reflection regions.

Just looked again and the reflection is still there on hires shadows, look at a CP, unit or health droid and you can see the relections. Think once again it is a shadow being generated for the walls or ceiling that is killing the other reflection.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 9:13 pm
by Marvel4
No, in BF1 Kamino there are also walls under the floor, the problem is, the floor is not transparent when shadows are set to high.

Re: Transparency / reflection not working right

Posted: Fri Jul 30, 2010 10:06 pm
by FragMe!
Dang you're right must have clicked way too many little box things on 3dunwrap.

The model bit within kam_bldg_mushplatform_interior.msh for the floor is called reflective_floor (imagine that) if it helps.

Also doing a comparison between death star corridor and the mushroom for the reflective_floor part the only difference I can see is MNDX that appear just before reflective_floor on both models the death star is 0400 0000 0200 0000 while the kamino one is 0400 0000 0100 0000