![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Mods and Maps Find gaming mods and maps here. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 13
OS: xp
|
Hi, im kinda new-ish at this GTKRadiant stuff, but I DEFINATELY know my way around. Its gotten quite easy for a while, and then I decided to undertake a map based on World 1-1 for the original SMB.I want a question block shader and I want the textures to switch in this order. Like I would want it to go in a loop from top left and then clockwise. ----->
Any help would be appreciated!![]() If you dont know how just tell me how to make my own shader Im sure somehow ill figure it out!
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator, Games Team
|
Re: Custom Shader for GTKRadiant???
I believe for many games this is an animated image and not a shading technique. I could be wrong, my forte is only the Source Engine. You can add animated textures to the game and have them change accordingly to a trigger input.
If the game your setting it up for can understand a gif image file (Or has its own image file system) then this would be your best bet in making an animated texture. A free program is GIMP, add each picture to a layer then save as a gif texture. You may want to change the default delay that occurs when it changes images to suit your needs. http://www.gimp.org/
__________________
Folding@Home |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 13
OS: xp
|
I have this set as my shader file in my assets0.pk3 file:
textures/mariojpg/block { surfaceparm nomarks surfaceparm nolightmap cull none q3map_surfacelight 500 q3map_globaltexture qer_editorimage textures/mariojpg/block1.jpg { animMap 10 textures/mariojpg/block1.jpg textures/mariojpg/block1.2.jpg textures/mariojpg/block1.3.jpg blendFunc GL_ONE GL_ONE rgbGen wave sawtooth 0 1 0 10 } { animMap 10 textures/mariojpg/block1.jpg textures/mariojpg/block1.2.jpg textures/mariojpg/block1.3.jpg blendFunc GL_ONE GL_ONE rgbGen wave sawtooth 0 1 0 10 } } And the shader is not even showing up in the editor. What am I doing wrong, please somebody help me. By the way this was a blank template it told me to edit the values and It would work so somebody help me! PLZ =C ![]() ![]()
|
|
|
|
|
|
#7 (permalink) |
|
Moderator, Games Team
|
Re: Custom Shader for GTKRadiant???
Ive done this for you. See if it works.
Code:
textures/mariojpg/block
{
map $lightmap
{
}
q3map_material Brick
surfaceparm nomarks
q3map_surfacelight 500
q3map_globaltexture
qer_editorimage textures/mariojpg/block1.jpg
}
animMap 10 textures/mariojpg/block1.jpg textures/mariojpg/block1.2.jpg textures/mariojpg/block1.3.jpg
blendFunc GL_ONE GL_ONE
rgbGen wave sawtooth 0 1 0 10
}
{
animMap 10 textures/mariojpg/block1.jpg textures/mariojpg/block1.2.jpg textures/mariojpg/block1.3.jpg
blendFunc GL_ONE GL_ONE
rgbGen wave sawtooth 0 1 0 10
}
}
__________________
Folding@Home |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 13
OS: xp
|
Re: Custom Shader for GTKRadiant???
THANK YOU!
Once again, compiling, I hope it works- ? but I still cant get passed one problem- JK2 says it doesnt recognize the line 'aniMap' but I saw someone else do it, so I guess my scripting is a failure... *crosses fingers(again)* |
|
|
|
|
|
#10 (permalink) |
|
Registered User
Join Date: Oct 2009
Location: Michigan
Posts: 1
OS: XP
|
Re: Custom Shader for GTKRadiant???
Animaps work just fine in JK2, I use them all the time.
Your shader is likely in the wrong place. First, why is it in Asset anything? Make your own pk3 with the shader in the shaders folder, place that in the Base folder, and you're good. q3map_material Brick doesn't exist, and q3map_globaltexture isn't needed for this, so take those out. Finally, try renaming your textures to block1, block2, etc. I don't know if radiant can read file names with extra dots. |
|
|
|
|
|
#11 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 13
OS: xp
|
WOW! I am seriously impressed with all the help I am getting here... thx especially to ds615. Its working!!!
![]() Only one thing... its running at 10x the speed i want it to... again, thanks for all the help! |
|
|
|
|
|
#12 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 13
OS: xp
|
YAY!
okay i figured out how to do that... and fixed a problem where it would flash uncontrollably running my fps up a wall... so, I suppose thats about it! thank you everyone for keeping me informed. Check out my map to be released sometime in January on JK2files on filefront! woohoo! kbai!
|
|
|
|
![]() |
| Thread Tools | |
|
|