Jump to content
The Dark Mod Forums

Search the Community

Showing results for tags 'texture'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • News & Announcements
    • The Dark Mod
    • Fan Missions
    • Off-Topic
  • Feedback and Support
    • TDM Tech Support
    • DarkRadiant Feedback and Development
    • I want to Help
  • Editing and Design
    • TDM Editors Guild
    • Art Assets
    • Music & SFX

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. Hello, I'm not familiar with darkmod, but using darkradiant has been a blessing for me. I have a problem with texturing inverted endcaps, I can't seem to normalise the UV on the patch. I try everything in surface inspector but I keep ending up with "overstretched" texture. What am I missing?
  2. I created this script for personal use, but thought it would be of enough interest to share here. I'm in the process of porting a few texture packs into TDM from Xonotic... each texture containing a diffuse / normal / specular map, as well as optionally a glow / reflection map. Obviously I don't want to have to manually create the same material for every texture, so I made a script to do it for me! Usage: Save this as a .sh file and place it in your texture pack's directory, next to the texture pack's subdirectories. Adjust the variables to match your texture package. Then just run the script: A mtr file should be generated, containing entries for each texture based on the maps it offers. #!/bin/bash # idTech4 material generator, by MirceaKitsune # texture pack info name="mypack" author="myself" # file and directory paths base="textures/mymod/${name}" mat="tdm_${name}.mtr" ext="tga" # special maps map_glow="glow" map_norm="norm" map_gloss="gloss" map_reflect="reflect" cubemap="env/gen2" # special parameter param="metal" rm "./${mat}" echo "// Name: ${name}" >> "./${mat}" echo "// Author: ${author}" >> "./${mat}" echo "// Material Directory: ${base}" >> "./${mat}" for d in *; do if [[ -d "${d}" ]]; then cd "./${d}" for f in *.tga; do if [[ -f "${f}" ]] && [[ "${f}" != *"_${map_glow}.${ext}"* ]] && [[ "${f}" != *"_${map_norm}.${ext}"* ]] && [[ "${f}" != *"_${map_gloss}.${ext}"* ]] && [[ "${f}" != *"_${map_reflect}.${ext}"* ]]; then f_noext=$(echo "${f}" | cut -d "." -f 1) echo "" >> "../${mat}" echo "${base}/${d}/${f_noext}" >> "../${mat}" echo "{" >> "../${mat}" echo " qer_editorimage ${base}/${d}/${f_noext}" >> "../${mat}" echo " description \"${name}, ${d}, ${f_noext}\"" >> "../${mat}" echo "" >> "../${mat}" echo " ${param}" >> "../${mat}" echo "" >> "../${mat}" echo " diffusemap ${base}/${d}/${f_noext}" >> "../${mat}" if [[ -f "${f_noext}_${map_norm}.${ext}" ]]; then echo " bumpmap ${base}/${d}/${f_noext}_${map_norm}" >> "../${mat}" fi if [[ -f "${f_noext}_${map_gloss}.${ext}" ]]; then echo " specularmap ${base}/${d}/${f_noext}_${map_gloss}" >> "../${mat}" fi if [[ -f "${f_noext}_${map_glow}.${ext}" ]]; then echo "" >> "../${mat}" echo " // Glow" >> "../${mat}" echo " {" >> "../${mat}" echo " blend add" >> "../${mat}" echo " map ${base}/${d}/${f_noext}_${map_glow}" >> "../${mat}" echo " }" >> "../${mat}" fi if [[ -f "${f_noext}_${map_reflect}.${ext}" ]]; then echo "" >> "../${mat}" echo " // Reflection" >> "../${mat}" echo " {" >> "../${mat}" echo " maskcolor" >> "../${mat}" echo " map makealpha(${base}/${d}/${f_noext}_${map_reflect})" >> "../${mat}" echo " }" >> "../${mat}" echo " {" >> "../${mat}" echo " blend gl_dst_alpha, gl_one" >> "../${mat}" echo " maskalpha" >> "../${mat}" echo " cubeMap ${cubemap}" >> "../${mat}" echo " texgen reflect" >> "../${mat}" echo " }" >> "../${mat}" fi echo "" >> "../${mat}" echo " // Frob highlighting" >> "../${mat}" echo " {" >> "../${mat}" echo " if ( parm11 > 0 )" >> "../${mat}" echo " blend gl_dst_color, gl_one" >> "../${mat}" echo " map _white.tga" >> "../${mat}" echo " rgb 0.40 * parm11" >> "../${mat}" echo " }" >> "../${mat}" echo " {" >> "../${mat}" echo " if ( parm11 > 0 )" >> "../${mat}" echo " blend add" >> "../${mat}" echo " map ${base}/${d}/${f_noext}" >> "../${mat}" echo " rgb 0.15 * parm11" >> "../${mat}" echo " }" >> "../${mat}" echo "" >> "../${mat}" echo " // TDM Ambient Method" >> "../${mat}" echo " {" >> "../${mat}" echo " if ( global5 == 1 )" >> "../${mat}" echo " blend add" >> "../${mat}" echo " map ${base}/${d}/${f_noext}" >> "../${mat}" echo " scale 1, 1" >> "../${mat}" echo " red global2" >> "../${mat}" echo " green global3" >> "../${mat}" echo " blue global4" >> "../${mat}" echo " }" >> "../${mat}" echo "}" >> "../${mat}" fi done cd ".." fi done
  3. Hey there, I've been making a map for a few months now, and am finishing up with polish before I can pass it off for critique. One thing I want to fix is making it so that an instance of the model the_hammer_small1.lwo can highlight when frobbed, as the goal of my map is to steal this particular item. I understand that this particular model wasn't intended as a loot item (as I had to make it an atdm:loot_broach entity), but I figured getting a highlight wouldn't be too much work. Several hours later, I'm ready to pull my hair out. I've managed to make a .mtr file: sk/the_hammer_small_highlight { metal diffusemap models/darkmod/props/textures/thehammer_small_bronze_d_ed { if ( parm11 > 0 ) blend add map models/darkmod/props/textures/thehammer_small_bronze_d_ed rgb 0.15 * parm11 } } As well as a .skin file, which is showing up in DarkRadiant: skin small_hammer_highlight { model models/darkmod/decorative/statues/the_hammer_small1.lwo sk/the_hammer_small_highlight models/darkmod/props/textures/thehammer_small_bronze_d_ed } However, the texture used in editor and the game isn't the bronze texture that I've specified, which makes me believe there's an issue with the .mtr file, either in its being read, or its syntax. Would someone be able to explain to me how to get this working? Much appreciated!
  4. Saw this link over at TTLG forums. http://www.ttlg.com/...ad.php?t=142281 and Ricebug's link. I think we look for higher res than 512x512 but can we use any of these?
  5. Hey there I'm making a model that requires transparency textures, hair planes on the werebeast, but since I was never able to make a model in-game I need some help at least to produce files that can be used by the good soul willing to import the model to the engine. I understand that transparency in this engine has no gray areas, it's either opaque or invisible, what else should I know? TGA file type? is it advisable to have the transparent parts in a different UV set or the whole texture could be together, even the parts that don't need transparency?
×
×
  • Create New...