Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Q3 Arena shaders: Work in JA?

Page: 1 of 1
 Druid Bremen
12-09-2003, 6:51 AM
#1
Is the shader code for Q3 changed, so that it does not work for JA? Whenever I load up a md3 made for Q3, I get: WARNING: Activate shader failed for (namehere)
 razorace
12-09-2003, 9:18 AM
#2
It's probably related to the use of a .md3. JKA has been modifed to mainly use .glm format for models.
 Druid Bremen
12-09-2003, 11:44 AM
#3
Are we talking about the same thing? What I mean is, a map model, not the player models lol.
 razorace
12-09-2003, 4:45 PM
#4
ok. Post the shader file then.
 Druid Bremen
12-10-2003, 6:38 AM
#5
Nevermind, just tell me all the differences between JA shader code and Q3 shader code, so I can replace the parts of the code, to the best of your knowledge.

Edit: I revised my decision, here's the code:

models/mapobjects/flame/flame
{
surfaceparm alphashadow
cull disable
{
animmap 15 models/mapobjects/flame/flame.jpg models/mapobjects/flame/flame01.jpg models/mapobjects/flame/flame02.jpg models/mapobjects/flame/flame03.jpg models/mapobjects/flame/flame04.jpg models/mapobjects/flame/flame05.jpg
blendfunc add
rgbGen identity
}
}

models/mapobjects/flame/lord
{
{
map models/mapobjects/flame/flame.jpg
tcMod scroll 1 1
rgbGen identity
}
{
map models/mapobjects/flame/lord.tga
blendfunc blend
rgbgen vertex
}
}


But I still would like you to give me the differences between JA shader code and Q3 shader code.
 razorace
12-10-2003, 8:14 AM
#6
Well, it might be because your models/mapobjects/flame/lord.tga is in .tga format. Try converting it to .png. In addition, .pngs are smaller and lossless.
 Druid Bremen
12-10-2003, 8:17 AM
#7
Omg I forgot about that lol! I'll try that and see. Thanks.

Edit: Didn't work.

Fine... I'll give you what's in the models/mapmodels/flame directory, before I converted to .png.
fire.jpg
flame01.jpg
flame02.jpg
flame03.jpg
flame04.jpg
flame05.jpg
flame.jpg
flame.MD3
lord2.tga
lord.tga -------------I converted these 2.

Also, am I supposed to change the cull disabled to cull twosided?
 razorace
12-10-2003, 10:08 AM
#8
No, I think that command still works...
 Druid Bremen
12-10-2003, 10:57 AM
#9
Everything doesn't work.
 razorace
12-10-2003, 6:35 PM
#10
Try removing the shader file and see if it works ingame.
 Druid Bremen
12-11-2003, 2:04 AM
#11
What? Removing the shader file?? The model requires the shader to work, for there is an animation, for the flame to seem to move. I think it needs the shader file. But I'll try.
 Lil Killa
12-11-2003, 3:57 AM
#12
All Q3 shaders work in JA as long as the corect files are included with the shader...

I think I know wha is wrong with the shader..

1. As far as I know your not supposed to have the .jpg extension anywhere in a shader file.

2. This chunk of data looked screwy just at a glance:

{
animmap 15 models/mapobjects/flame/flame.jpg models/mapobjects/flame/flame01.jpg models/mapobjects/flame/flame02.jpg models/mapobjects/flame/flame03.jpg models/mapobjects/flame/flame04.jpg models/mapobjects/flame/flame05.jpg
blendfunc add
rgbGen identity
}

Try either getting rid of the .jpg extension or make it .tga (yes I know the files are .jpg's but that's just how a shader works.) Also that "chunk" of stuff just blobed together like that looks wrong but as I don't know completely what this shader does I can't realy say much more..


Again get rid of those .jpg file extensions in some way, shape, or form as they have "something" to do with your shader not working. (Check the original shader, if there was one, to see what extension were used in it.)
 Druid Bremen
12-11-2003, 4:20 AM
#13
Bah, this IS the original shader. And yes, that did seem screwy to me, but I did not dare edit it. What should I convert the .jpg to?
 razorace
12-11-2003, 8:45 AM
#14
ACtually that's not nessicary. The engine automatically tries different file extentions if it can't find them. I beleive the order is jpg->png->tga.
 Druid Bremen
12-11-2003, 11:06 AM
#15
Unless... Someone help me rewrite the shader code? I'll send the model to you if you want. I'm desperate, I really want this model.
 razorace
12-11-2003, 7:43 PM
#16
Again, try just running the model without a shader file. You'll at least know if it's the shader file or not.
 Druid Bremen
12-12-2003, 2:15 AM
#17
Err.... I removed the shader. The model turned the color of my wall. The flame turned to caulk. Result in JA is as though I never removed the shader file. WTF!???
 razorace
12-12-2003, 2:39 AM
#18
It means that it's something wrong with your shader file. If no shader for a given texture is inputted, I beleive it just uses the default shader settings.
 Druid Bremen
12-13-2003, 1:51 AM
#19
Umm.. So... Do I send the entire model with textures and shader to you? HEEEEEEEEEEEEEEEEEELLLP!
 razorace
12-13-2003, 3:19 AM
#20
Sorry, but no. I have plenty of crap to work on as is.
 Druid Bremen
12-13-2003, 6:39 AM
#21
Does that mean I have to give this up?
 razorace
12-13-2003, 7:36 PM
#22
no, it means you're going to have to learn shaders on your own (http://www.qeradiant.com/manual/Q3AShader_Manual/).
 Druid Bremen
12-14-2003, 4:53 AM
#23
Bah, I can't assimilate all that information at once. Darn.. Looks like I'll have to use another model.
Page: 1 of 1