FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:JK3 Modding, Mapping and Editing (http://forums.filefront.com/sw-jk3-modding-mapping-editing-528/)
-   -   Shader Issue (http://forums.filefront.com/sw-jk3-modding-mapping-editing/283546-shader-issue.html)

The One and Only October 22nd, 2006 08:27 AM

Shader Issue
 
Hmm, you know the shader which makes textures "glow"? Like the one used by the jawa eyes. I've created a set of textures for my skin, all in jpg format, and created a shader, but for some reason it won't work. Now, I think what I'm doing is right, but somewhere along the line it is going wrong. arms.jpg is the basic texture, armsg.jpg is the "glow" texture.

models/players/fire02/arms.jpg
{
{
map models/players/fire02/arms.jpg
blendFunc GL_ONE GL_ZERO
rgbGen lightingDiffuse
}
{
map models/players/fire02/arms.jpg
blendFunc GL_SRC_ALPHA GL_ONE
detail
glow
alphaGen lightingSpecular
}
{
map models/players/fire02/armsg.jpg
blendFunc GL_ONE GL_ONE
glow
rgbGen identity
}
}

Bluestormtrooper October 22nd, 2006 09:42 AM

Re: Shader Issue
 
If you want to save yourself the trouble you can go download the Admin Skin on jk3files and use that shader.

The One and Only October 22nd, 2006 10:03 AM

Re: Shader Issue
 
Hmm... still nothing. I'm also putting a reflectivity shader onto the same part, might that have an effect?

Inyri Forge October 22nd, 2006 10:06 AM

Re: Shader Issue
 
Do you actually have dynamic glow turned on?

The One and Only October 22nd, 2006 10:10 AM

Re: Shader Issue
 
Yes. But what I'm really after is just something to make the eyes (and details on the arms) stand out. For instance, put a jawa in a dark room and the eyes appear as though they are fully lit, that sort of thing.

Inyri Forge October 22nd, 2006 10:38 AM

Re: Shader Issue
 
There should be a blending option that has the texture unaffected by map lighting. I think it's probably in one of the Q3 shader tutorials.

Jedi_Mediator October 22nd, 2006 01:43 PM

Re: Shader Issue
 
remove the ".jpg" extensions from the shader line. For example, change "arms.jpg" to just "arms". The extensions are never in any of the shader files that come with the game, and it always works fine without the extensions, so try removing them from the image files' names.


To make a texture unaffected by map lighting, enter the line "q3_nolightmap" before the texture. So:

q3_nolightmap
{


I'm pretty sure that will work.

The One and Only October 22nd, 2006 02:55 PM

Re: Shader Issue
 
The problem is that I what the eyes to glow, but the eyes are on a texture with the rest of the face.

Szico VII October 22nd, 2006 05:45 PM

Re: Shader Issue
 
ok. Firstly, its q3map_nolightmap, not q3_nolightmap.

Secondly, you shouldn't have 2 glow stages in the same shader if you can avoid it.

models/players/fire02/arms
{
{
map models/players/fire02/arms
blendFunc GL_ONE GL_ZERO
rgbGen lightingDiffuse
}
{
map models/players/fire02/arms
blendFunc GL_SRC_ALPHA GL_ONE
detail
alphaGen lightingSpecular
}
{
map models/players/fire02/armsg
blendFunc GL_ONE GL_ONE
glow
}
}


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.