I'm trying to create a map and i noticed that i am not completely confident with shaders. so i have few questions that i would like to ask to experts of the forum :)
1) let start from the first one:
i decompiled casa with q3map2 in order to learn and this was the output
2 threads
Q3Map - v1.0r (c) 1999 Id Software Inc.
Q3Map (ydnar) - v2.5.16
GtkRadiant - v1.5.0 Oct 8 2004 08:08:27
Voter turnout
VFS Init: ..//q3ut4/
VFS Init: ..//baseq3/
Loading C:\Giochi\urt411mapping\q3ut4\maps\ut4_casa.bsp
--- Convert BSP to MAP ---
writing C:\Giochi\urt411mapping\q3ut4\maps\ut4_casa_converted.map
WARNING: Couldn't find image for shader textures/common/caulk
WARNING: Couldn't find image for shader textures/sweetnutz/ut_stonewall1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall27
WARNING: Couldn't find image for shader textures/sweetnutz/sn_dirt1_walk
WARNING: Couldn't find image for shader textures/sweetnutz/sn_dirt1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall25
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall2
WARNING: Couldn't find image for shader textures/sweetnutz/sn_under_stairs
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_brick3_dirt
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wall29_trim
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wall29
WARNING: Couldn't find image for shader textures/sweetnutz/sn_grass1
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wood3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_metal1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall13
WARNING: Couldn't find image for shader textures/sweetnutz/sn_w2_sw1_trim
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall22
WARNING: Couldn't find image for shader textures/sweetnutz/sn_brick2
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_stonefloor3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall14
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_brick2_dirt
WARNING: Couldn't find image for shader textures/sweetnutz/grasslm
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wood2
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window2
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window10
WARNING: Couldn't find image for shader textures/sweetnutz/sn_door5
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window9
WARNING: Couldn't find image for shader textures/sweetnutz/ik_sn_wood_roof1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_stair_trim1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall24
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wall28_trim
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wall28
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wall15_new
WARNING: Couldn't find image for shader textures/sweetnutz/sn_brick4_wall27
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall16
WARNING: Couldn't find image for shader textures/sweetnutz/sn_walltrim7
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_brick4_new
WARNING: Couldn't find image for shader textures/sweetnutz/dd_casa_sky
WARNING: Couldn't find image for shader textures/sweetnutz/sn_brick3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window8
WARNING: Couldn't find image for shader textures/sweetnutz/miles_sn_rooftile1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_walltrim11
WARNING: Couldn't find image for shader textures/aamjs_misc/detail43b
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window11c
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window11a
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window11b
WARNING: Couldn't find image for shader textures/urban_terror6/ww-window01
WARNING: Couldn't find image for shader textures/wetwired/ww-blinds01
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window1
WARNING: Couldn't find image for shader textures/aamjs_win/12panwindownlm
WARNING: Couldn't find image for shader textures/sweetnutz/sn_concrete3
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_roof3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_poster4
WARNING: Couldn't find image for shader textures/sweetnutz/sn_poster3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_poster1
WARNING: Couldn't find image for shader textures/aamjs_grnd/tile_04_256
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_walltrim10
WARNING: Couldn't find image for shader textures/aamjs_grnd/tile_stone_01_dk_256
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_metal
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_stonefloor3_dirt1trim
WARNING: Couldn't find image for shader textures/aamjs_grnd/tile_02_256
WARNING: Couldn't find image for shader textures/urban_objects/fs_metalbox_b_top
WARNING: Couldn't find image for shader textures/urban_objects/fs_box2_front1
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_stonefloor2_stairs
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_concrete3_stairs
WARNING: Couldn't find image for shader textures/sweetnutz/sn_tilefloor4
WARNING: Couldn't find image for shader textures/sweetnutz/sn_tilefloor3
WARNING: Couldn't find image for shader textures/sweetnutz/sn_dirt1_walk_end
WARNING: Couldn't find image for shader textures/sweetnutz/sn_rooftrim1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_roof_edge
WARNING: Couldn't find image for shader textures/sweetnutz/sn_door4
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall19
WARNING: Couldn't find image for shader textures/sweetnutz/sn_blinds1
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall3
WARNING: Couldn't find image for shader textures/aamjs_wall/wall80b
WARNING: Couldn't find image for shader textures/sweetnutz/sn_pipe1
WARNING: Couldn't find image for shader textures/aamjs_door/door65
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window1int
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_wood3_end
WARNING: Couldn't find image for shader textures/sweetnutz/sn_tag
WARNING: Couldn't find image for shader textures/sweetnutz/sn_door7
WARNING: Couldn't find image for shader textures/sweetnutz/sn_poster2
WARNING: Couldn't find image for shader textures/sweetnutz/sn_coinbird
WARNING: Couldn't find image for shader textures/sweetnutz/sn_wall1
WARNING: Couldn't find image for shader textures/aamjs_misc/wood15l
WARNING: Couldn't find image for shader textures/aamjs_grnd/tile_old_01
WARNING: Couldn't find image for shader textures/aamjs_wall/wallpaper_panel_04
WARNING: Couldn't find image for shader textures/aamjs_grnd/tile_stone_01_256
WARNING: Couldn't find image for shader textures/aamjs_door/door39
WARNING: Couldn't find image for shader textures/sweetnutz3/dickdastardly
WARNING: Couldn't find image for shader textures/sweetnutz/sn_logo
WARNING: Couldn't find image for shader textures/sweetnutz3/yourking
WARNING: Couldn't find image for shader textures/sweetnutz3/thnom
WARNING: Couldn't find image for shader textures/sweetnutz/sn_dirt_doggus
WARNING: Couldn't find image for shader textures/wetwired/coins
WARNING: Couldn't find image for shader textures/sweetnutz/sn_stand2
WARNING: Couldn't find image for shader textures/sweetnutz/sn_stand_crate
WARNING: Couldn't find image for shader textures/sweetnutz/sn_window8int
WARNING: Couldn't find image for shader textures/sweetnutz/sn_door8
WARNING: Couldn't find image for shader textures/common/clip
WARNING: Couldn't find image for shader textures/common/weapclip
WARNING: Couldn't find image for shader textures/common/ladderclip
WARNING: Couldn't find image for shader textures/sweetnutz/sn_fence1
WARNING: Couldn't find image for shader textures/common/nodraw
WARNING: Couldn't find image for shader textures/sweetnutz/sn_tanktop
WARNING: Couldn't find image for shader textures/sweetnutz/sn_jeans
WARNING: Couldn't find image for shader textures/sweetnutz/sn_brazierre
WARNING: Couldn't find image for shader textures/sweetnutz/sn_cinderblock1
WARNING: Couldn't find image for shader textures/cow7/fs_gate2
WARNING: Couldn't find image for shader textures/cow7/fs_gate3c
WARNING: Couldn't find image for shader textures/sweetnutz/sn_railing_support
WARNING: Couldn't find image for shader textures/sweetnutz/sn_railing
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_ivy2
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_ivy3
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_tree1
WARNING: Couldn't find image for shader textures/sweetnutz3/sn_tree3
WARNING: Couldn't find image for shader textures/sweetnutz/watercaulk
WARNING: Couldn't find image for shader textures/sweetnutz3/clear_ripple1
WARNING: Couldn't find image for shader textures/common/botclip
WARNING: Couldn't find image for shader textures/common/nodrop
WARNING: Couldn't find image for shader textures/common/clusterportal
WARNING: Couldn't find image for shader textures/bbq/tank_insides
WARNING: Couldn't find image for shader textures/common/skip
WARNING: Couldn't find image for shader textures/common/hint
WARNING: Couldn't find image for shader textures/liquids/clear_ripple3
2 seconds elapsed
Disconnecting
i can open the map file with radiant and this is the result
http://img412.images.../i/gtkcasa.jpg/
as you can see i can open the map but i cannot see many shaders and i do not understand why because i have decompressed all the pk3 files and so i should have all the necessary files.
what's the problem here?? why i cannot see many shaders?
2) i have a more basic doubt about the shader nature. in the script folder there are many shader files, for instance if i open cave.shader i can read the code
textures/terrain/rock_moss3_512
{
{
map textures/terrain/rock_moss3_512.tga
}
{
map $lightmap
blendfunc gl_dst_color gl_src_color
}
}
textures/terrain/rock_moss4_512
{
{
map textures/terrain/rock_moss4_512.tga
}
{
map $lightmap
blendfunc gl_dst_color gl_src_color
}
}
textures/terrain/rock_moss2_512
{
q3map_surfacelight 100
q3map_lightRGB .4 .8 0
{
map textures/terrain/rc_rock3_lichen1024.tga
}
{
map textures/terrain/rock_moss2_512.tga
tcmod scale 2 2
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphagen vertex
}
{
map $lightmap
blendfunc gl_dst_color gl_src_color
}
}
...
but what exactly is a shader?? is the whole file a shader itself?? is the single code in brackets a shader itself (and so in this case i posted as an example 3 shaders??)??
3) the third question is simple as well. While I am using gtkradiant, how can i know the name of an object's shader? for instance if I select an object how can i know the name of the shader applied to that object?
thank you very much for your kindness. i like to read material and discover solutions by myself but i have not been able to solve these problems by myself, and this is slowing down my work! :)
Marco