Content

Post new topic Reply to topic

Tutorial: Water

Author Message
Baldwin Lost Soul View user's profile Send private message

Reply with quote Thursday, February 13, 2014

Firstly, lets set up a shader for your water.

maps/water/water
{
   qer_editorimage maps/water/water.png
   qer_trans .5
   q3map_globaltexture
   surfaceparm trans
   surfaceparm nonsolid
   surfaceparm water
   surfaceparm nolightmap
   {
      map maps/water/water.png
   }
}



Defining keywords.

maps/water/water - Shaders name. Shaders like water, you would always want to add the full path, not a simple name.

qer_editorimage maps/water/water.png- (Telling netradiant where to find the texture to load it in the preview window.)

qer_trans .5- (Telling netradiant to make the texture transparent, preview only does not effect ingame)

q3map_globaltexture- Do not remmeber

surfaceparm trans - (Telling the game to render this texture transparent, if the properties are set correctly on the texture.)

surfaceparm nonsolid- (Telling the game to make this object a non-solid surface, players and other entities an pass through this object in the game world.)

surfaceparm water - (Telling the game to add water to the surface)

surfaceparm nolightmap(- Telling the game not to render light on the surface)

map maps/water/water.png- (Actual path for the game to find the texture.


Now that you understand what each keyword does, lets move on.

Create a shader by right clicking---->New---->Text Document. Paste the code in it, and save it as water.shader, NOT water.text.


Next, put the shader file in ZEQ2/scripts. Open shaderlist.text always add your newly created shader in shaderlist. Write "water" without quotes under "common". Save, exit.

Create a folder in maps called water, and put your water texture in the new folder (water) you created.
Preferably .png Very Happy

Open netradiant. Add a brush, apply the shader to the brush, do not forget to seal the map with a hollowed brush add _blocksize 8192 to the hollow void brush for faster compiling.

If you follow the steps correctly, you'll come out with this.

Modified version of Netradiant that uses /maps instead of the standard /textures. For better and cleaner structure.

http://www.mediafire.com/download/9zfqqn71mp84w4l/NetRadiant.zip

ivanhoeGT View user's profile Send private message

Reply with quote Thursday, February 13, 2014

question,how to apply shader to the brush?

Baldwin Lost Soul View user's profile Send private message

Reply with quote Thursday, February 13, 2014

ivanhoeGT wrote : question,how to apply shader to the brush?



Select the brush, open up the texture browser. Then locate the water texture, "/water" then click on it. It should apply it to the selected brush.

ivanhoeGT View user's profile Send private message

Reply with quote Thursday, February 13, 2014

Baldwin wrote :

ivanhoeGT wrote : question,how to apply shader to the brush?



Select the brush, open up the texture browser. Then locate the water texture, "/water" then click on it. It should apply it to the selected brush.



oh okay,..I worked,thanks
what code to make it reflective?

Baldwin Lost Soul View user's profile Send private message

Reply with quote Thursday, February 13, 2014

ivanhoeGT wrote :

Baldwin wrote :

ivanhoeGT wrote : question,how to apply shader to the brush?



Select the brush, open up the texture browser. Then locate the water texture, "/water" then click on it. It should apply it to the selected brush.



oh okay,..I worked,thanks
what code to make it reflective?



Will make a tutorial later on that.

qwerty In Advance View user's profile Send private message

Reply with quote Thursday, February 13, 2014

Thank you very much. Nice tutorial.
I suggest you to upload the modified NetRadiant as attachment.
I'm waiting for more tutorials. Smile

maybe move this tutorial in the learning section.

It would be nice a program that compile automatically the shaders.

It would be nice integrate this modified NetRadiant in the official build to encourage people to make maps.

ivanhoeGT View user's profile Send private message

Reply with quote Thursday, February 13, 2014

is it posible to add light on maps? so the maps could have shadows

Baldwin Lost Soul View user's profile Send private message

Reply with quote Friday, February 14, 2014

Updated - Netradiant can now be downloaded from the attachment.

mantis tubogan View user's profile Send private message

Reply with quote Friday, February 14, 2014

Baldwin wrote : Updated - Netradiant can now be downloaded from the attachment.



Is the download in the first post?

Baldwin Lost Soul View user's profile Send private message

Reply with quote Friday, February 14, 2014

mantis tubogan wrote :

Baldwin wrote : Updated - Netradiant can now be downloaded from the attachment.



Is the download in the first post?



The download is in my first post on this topic, yes. Two mirrors, mediafire, and the attachment to this site. You may choose one.

mantis tubogan View user's profile Send private message

Reply with quote Thursday, February 20, 2014

How do I use Netradiant?

Think View user's profile Send private message

Reply with quote Friday, February 21, 2014

Read this tutorial.

gigirs50 Protege View user's profile Send private message

Reply with quote Friday, February 21, 2014

Someone should move this to learning forum

ivanhoeGT View user's profile Send private message

Reply with quote Tuesday, March 18, 2014

how to make an animated maps? like I wanna make a moving car..also,is it possible to make waves?

Gokua View user's profile Send private message

Reply with quote Tuesday, March 18, 2014

ivanhoeGT wrote : how to make an animated maps? like I wanna make a moving car..also,is it possible to make waves?



I think qwerty knows he's an amazing mapper

Post new topic Reply to topic

Actions

Online [ 0 / 6125]