Page 1 of 1

Shader help

Posted: Fri Sep 16, 2011 11:19 pm
by GtkRadiant
Hey Eraser, on the issue about the light coming from the player, you said:

"Last problem, light styles are not a feature of the version of id Tech 3 used in Quake 3 Arena. This was added later on for games like Jedi Knight 2."

light styles ARE possible in q3, in fact, I'm using them in my map. in order to use them, this must be set to the worldspawn:

key: rbg
value: waves

Re: EntityPlus - A single player Q3 mod

Posted: Fri Sep 16, 2011 11:20 pm
by GtkRadiant
only, from first glance, it looks like only one style works.

Re: EntityPlus - A single player Q3 mod

Posted: Fri Sep 16, 2011 11:36 pm
by GtkRadiant
While I'm still rambling, can anyone help me with my water shader? there's no error messages in the console, but the texture is missing.

here's what the shader looks like:


textures/factory/water //this is the water shader that I'm having problems with.

{
qer_editorimage textures/factory/water.tga
surfaceparm water
surfaceparm nolightmap
surfaceparm nodlight
}

textures/factory/waterflow //the waterfalls, not the water, I need to edit this though, the water flows up the waterfall. XD

{
qer_editorimage textures/factory/waterflow.tga
surfaceparm nolightmap
surfaceparm nodlight
{
map textures/factory/waterflow.tga
tcMod scroll 0 .5
blendFunc GL_ONE GL_ZERO
alphaFunc GE128
depthWrite
rgbGen identity
}
{
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

textures/factory/spring1

{
qer_editorimage textures/factory/spring1.tga
surfaceparm trans
deformvertexes autosprite2
surfaceparm nolightmap
surfaceparm nodlight
{
map textures/factory/spring1.tga
blendFunc GL_ONE GL_ZERO
alphaFunc GE128
depthWrite
rgbGen identity
animMap 8 textures/factory/spring1.tga textures/factory/spring2.tga textures/factory/spring3.tga textures/factory/spring4.tga textures/factory/spring5.tga textures/factory/spring6.tga textures/factory/spring7.tga textures/factory/spring8.tga
}
{
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}


textures/factory/ENV/celsky
{
qer_editorimage textures/factory/ENV/celsky_ft.tga
surfaceparm sky
surfaceparm noimpact
surfaceparm nolightmap
q3map_globaltexture
q3map_lightsubdivide 256
q3map_surfacelight 300
q3map_sun 0.6 0.6 0.6 100 120 60
skyparms textures/factory/ENV/celsky - -\
}

sorry for the huge post...

and here's a pic of the problem.

Re: EntityPlus - A single player Q3 mod

Posted: Sat Sep 17, 2011 12:14 am
by Hipshot
You are cluttering the thread with things non essential to this mod, can't you take it in a new thread instead?

Re: EntityPlus - A single player Q3 mod

Posted: Sat Sep 17, 2011 2:54 am
by obsidian
Split this thread off to stop it cluttering up the other thread.




In the first shader, you don't have an actual texture stage, just an editor image. The shader needs to be told what texture to use, each stage needs it's own set of curly brackets "{ ... }". A simple texture stage should contain the directive "map path/to/texture.tga". See the existing id Software shaders for examples.

For the second shader, can't you just rotate the texture 180-degrees in the editor to make the water flow the other way? :dork:

Read the shader manual. Lots of tips and the best place to start. Link on my signature.

Re: EntityPlus - A single player Q3 mod

Posted: Tue Sep 20, 2011 11:55 pm
by GtkRadiant
obsidian wrote:Split this thread off to stop it cluttering up the other thread.




In the first shader, you don't have an actual texture stage, just an editor image. The shader needs to be told what texture to use, each stage needs it's own set of curly brackets "{ ... }". A simple texture stage should contain the directive "map path/to/texture.tga". See the existing id Software shaders for examples.

For the second shader, can't you just rotate the texture 180-degrees in the editor to make the water flow the other way? :dork:

Read the shader manual. Lots of tips and the best place to start. Link on my signature.
thanks for the help, I'll fix those problems. :D

Re: Shader help

Posted: Tue Sep 20, 2011 11:56 pm
by GtkRadiant
...And sorry for cluttering up the other thread, I don't know how to make a new one...

Re: Shader help

Posted: Wed Sep 21, 2011 12:06 am
by deqer
GtkRadiant wrote:...And sorry for cluttering up the other thread, I don't know how to make a new one...
That's because the New Topic button is not where it usually is (left side, above list.) Instead, they moved it to be where the User Menu is (right side), and it doesn't look like a button.

Honestly, the usability of this site could be a lot better.