Tremulous Forum
Media => Mapping Center => Topic started by: rankok on May 03, 2010, 04:52:01 am
-
i have 2 shaders i want to install a water and a water_caulk one
textures/liquids/clrip3
{
qer_editorimage textures/liquids/clear_ripple3.tga
qer_trans .5
q3map_globaltexture
surfaceparm trans
surfaceparm nonsolid
surfaceparm water
cull disable
deformVertexes wave 64 sin .5 .5 0 .5
{
map textures/liquids/pool3d_5.jpg
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod transform 1.5 0 1.5 1 1 2
tcmod scroll -.05 .001
}
{
map textures/liquids/pool3d_6.jpg
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .5 .5
tcmod transform 0 1.5 1 1.5 2 1
tcmod scroll .025 -.001
}
{
map textures/liquids/pool3d_3.jpg
blendFunc GL_dst_color GL_one
rgbgen identity
tcmod scale .25 .5
tcmod scroll .001 .025
}
{
map $lightmap
blendFunc GL_dst_color GL_zero
rgbgen identity
}
}
textures/liquids/watercaulk
{
qer_trans 0.40
qer_editorimage textures/liquids/watercaulk.tga
surfaceparm nodraw
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
surfaceparm nomarks
surfaceparm water
}
so how do i install these so they will work with netradiant on mac
-
In tremulous/base make a folder named 'scripts' if it doesn't already exist, in which you make a text file named 'mymap.shader' in which you put the shaders. Then you add 'mymap' on an empty line in the shaderlist.txt in the same folder.
-
okay ive done that but its not showing up in my texture list on netradiant i called it watercaulk.shader and added watercaulk to the textures.txt what could be going wrong?
path is tremulous/base/scripts
this is the code i used
textures/liquids/watercaulk
{
qer_trans 0.40
qer_editorimage textures/liquids/watercaulk.tga
surfaceparm nodraw
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
surfaceparm nomarks
surfaceparm water
}
-
no you need to put the name of the file that the code is in into shaderlist.txt
aka in a file called rankok, put that code in, and add rankok to the shaderlist file.
-
textures.txt ??? Should be in shaderlist.txt. Anyway, the shader should show up under 'liquids' in NetRadiant.
-
sorry i meant shadelist.txt but here is a screenshot of what ive done http://i783.photobucket.com/albums/yy115/obloby/trem/Picture2.png
-
Well, that seems to be done right. Now in radiant on the textures tab/window/whatever, where you have mapnames, do you have 'liquids' there?
-
nop i dont have liquids iv also tried doing show shaders only and cant find it
-
I have the same problem on mac. Can't see any shaders, not even the default ones. When I compile a map with lights in, it is completely dark.
-
Umm... in the texture window, View menu, check 'Show Shaders'. Either that, or you didn't setup properly and radiant can't find your Trem folder. Check that in netradiant folder games/trem.game (open with text editor) you have the engine path for your operating system set properly. It has to point to the folder INSIDE WHICH is the executable and base folder.
-
i changed the trem.game file to this but still get nothing i thinks its because i need to change the Tremulous 1.1.0 bit but im not sure to what
<?xml version="1.0" ?>
<game
type="q3"
index="1"
name="Tremulous 1.1.0"
enginepath_win32="C:/Program Files/Tremulous/"
enginepath_linux="/usr/local/games/tremulous/"
enginepath_macos="/Users/test/Desktop/Tremulous"
engine_win32="tremulous.exe"
engine_linux="tremulous"
engine_macos="Tremfusion.app"
prefix=".tremulous"
basegame="base"
basegamename="Tremulous 1.1.0"
unknowngamename="Tremulous Mod"
shaderpath="scripts"
archivetypes="pk3"
texturetypes="tga jpg png pcx bmp"
modeltypes="md3 ase lwo obj 3ds picoterrain"
maptypes="mapq3"
shaders="quake3"
entityclass="quake3"
entityclasstype="def"
entities="quake3"
brushtypes="quake3"
patchtypes="quake3"
/>
-
No, you don't need to change the Tremulous 1.1.0 part. I guess you are using Mac? You seem to be missing a / at end of the enginepath_macos. Other then that, are the shaders and shaderlist in /Users/test/Desktop/Tremulous/base/scripts/?
-
yeah the shaders and shaderlist is in tremulous/bas/scripts and i have added the slash but still no liquids or watercaulk shader anywhere