common/adjustable_color texture

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

common/adjustable_color texture

Post by Bjarne BZR »

Is the common/adjustable_color texture... I don't know... ADJUSTABLE by any chance?

If so: what about it is adjustable and how do I adjust it?
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Key K

Post by tltrude »

Highlight the surface and hit key K.
Tom Trude,

Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Nope, its still a stylish pink in the game... :cry:
Admin .MAP Forums
Image
Head above heels.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

shader

Post by tltrude »

Well, I don't know how it works then, but here is the shader for it.

Code: Select all

textures/common/adjustable_color
{
	qer_editorimage textures/common/white.tga
	surfaceparm nolightmap
	{
		map $whiteimage
		blendFunc GL_DST_COLOR GL_ZERO
		rgbGen fromEntity
	}
}
Maybe it has to be a script_object or some other entity targetnamed "whiteimage".
Tom Trude,

Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Yeah, that rgbGen fromEntity shure looks like it is ment to be adjustable... anyone else have an idea?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Ritualistic wrote: 5.12.2 rgbGen entity
Colors are grabbed from the entity’s modulate field. This is used for things like explosions.
I think it means the texture uses the entity lighting grid.

I couldn't find 'fromEntity' :?

http://www.ritualistic.com/games/fakk2/tooldocs.php3

In shaders a $ is not a targetname operator: $whiteimage is just a white texture. You could also use $lightmap instead.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

There is a rgbGen entity in the fakk2 doc. It says: "Colors are grabbed from the entity?s modulate field. This is used for things like explosions."
Make any sense to anyone?
Admin .MAP Forums
Image
Head above heels.
Post Reply