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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Gaming Forum > Mods and Maps
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Mods and Maps Find gaming mods and maps here.

Reply
 
LinkBack Thread Tools
Old 07-02-2009, 06:55 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Question [SOLVED] Custom Shader for GTKRadiant???

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!
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 07-03-2009, 03:30 AM   #2 (permalink)
Moderator, Games Team
 
Aus_Karlos's Avatar
 
Join Date: Mar 2007
Location: Western Australia
Posts: 3,424
OS: Vista Ultimate x64, Windows XP 32-bit/64-bit, Ubuntu x64, Windows 7 x64 Beta

My System

Blog Entries: 2
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
Aus_Karlos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-03-2009, 06:31 PM   #3 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Grin Re: Custom Shader for GTKRadiant???

THANK you. I already have gimp, and im compiling the map now-*crosses fingers*
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-03-2009, 06:43 PM   #4 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Mistake Re: Custom Shader for GTKRadiant???

ooohhh...
nopes. Ill use a func_usable, I guess...
But anybody who owns radiant can you tell me how to make an animated image?
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-03-2009, 09:48 PM   #5 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Question Animated Shader/ GTKRadiant v1.5.0

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
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-03-2009, 10:30 PM   #6 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Re: Custom Shader for GTKRadiant???

Okay now the shader shows up but its not working.
same shader file, i just added in the shaderlist.txt
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-03-2009, 11:08 PM   #7 (permalink)
Moderator, Games Team
 
Aus_Karlos's Avatar
 
Join Date: Mar 2007
Location: Western Australia
Posts: 3,424
OS: Vista Ultimate x64, Windows XP 32-bit/64-bit, Ubuntu x64, Windows 7 x64 Beta

My System

Blog Entries: 2
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
}
}
You may have to play around with the Syntax "{" and "}" as i fully dont understand them. And you may have to change this line "q3map_material Brick" to suit the correct Material name, i just guessed there.
__________________


Folding@Home
Aus_Karlos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-04-2009, 09:12 PM   #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)*
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-06-2009, 09:14 PM   #9 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Re: Custom Shader for GTKRadiant???

AAAARGH
did not work
thanks for your help and time, just seems like jk2 cant handle aniMaps.
o well...
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-27-2009, 10:00 AM   #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.
ds615 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-07-2009, 10:07 PM   #11 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Grin Re: Custom Shader for GTKRadiant???

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!
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 11-07-2009, 10:24 PM   #12 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 13
OS: xp


Laugh Re: Custom Shader for GTKRadiant???

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!
atsdo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:43 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85