Jump to content

Home

Force Field Shader


Eldritch

Recommended Posts

I'm making a level that includes a hangar, and I want to have a force field (like in the Death Star MP stage) that looks out onto the skybox. I have two solid brushes of the same size lined up touching each other where I want the force field/skybox to be seen, covered in caulk except for the surface the player will see. The one closer to the inside has a force field shader on it, the one closer to the outside has the sky shader on it. My problem is this: when I compile and load up the map, I get a HOM effect where the forcefield should be, and obviously can't see the skybox. I've looked in FAQs and Tutorials but there doesn't seem to be any help on making forcefields, so I am unsure of what to do, or if I am doing it wrong. Any help here would be nice. Thanks.

Link to comment
Share on other sites

Originally posted by JEDI_Anakin_S

I'm making a level that includes a hangar, and I want to have a force field (like in the Death Star MP stage) that looks out onto the skybox. I have two solid brushes of the same size lined up touching each other where I want the force field/skybox to be seen, covered in caulk except for the surface the player will see. The one closer to the inside has a force field shader on it, the one closer to the outside has the sky shader on it. My problem is this: when I compile and load up the map, I get a HOM effect where the forcefield should be, and obviously can't see the skybox. I've looked in FAQs and Tutorials but there doesn't seem to be any help on making forcefields, so I am unsure of what to do, or if I am doing it wrong. Any help here would be nice. Thanks.

 

I had same kind of problem when I tried to do a hangar to my map. I was about to give up but then I decided make some outer parts of the hangar visible, in other words, the distance between sky shader(skies/stars) and forcefield(tests/forcefield) came longer, and the HOM effect disappeared and it looked perfect. I'm not sure is this the only way to fix it but it worked fine.

Link to comment
Share on other sites

I had a similar problem (altho with different textures) and what I did was put caulk on all the faces that were touching other brushes, put the force field shader on the one face that the player would see, and nodraw on the other side which was not touching any brush and the player could not see it. I also put a brush in front of my force field brush that had nodraw_solid on it. I was using the tests/energything_3 shader for the force field and skies/stars for the sky shader. Putting the caulk and nodraw stuff seemed to fix it, I dunno if that will work for you though, good luck anyway!

Link to comment
Share on other sites

Originally posted by JEDI_Anakin_S

Unfortunately, it didn't work. :(

I am using the tests/forcefield and the skies/yavin shaders; still getting the HOM effect. I must be overlooking something.

 

I made a second hangar to my level and had the same problem, but I found a solution. Now I will copy some your text :)

 

"I have two solid brushes of the same size lined up touching each other where I want the force field/skybox to be seen, covered in caulk except for the surface the player will see. The one closer to the inside has a force field shader on it, the one closer to the outside has the sky shader on it."

 

I did exactly everyhing like you did, but the brush that has forcefield shader on one side must be turned into a detail brush by selecting it and pressing ctrl + m. Now it should work.

Link to comment
Share on other sites

Actually it works without nodraw. I just checked what richdiesal's tutorial brushes 201: lesson 8 said about a shader (in this case the forcefield, rich's tutorial is about glass) being next to sky, and all you have to do is caulk all sides not be seen and convert the "inner" brush to a detail brush.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...