mesh-clip help!


(BlitzZ) #1

Hi mappers, i come here today to seek wisdom of the following.

I want to create a texture (in photoshop 7) that players can look throu, like the siwa carpets and so on.

ive tried and failed :\ my friend that know he`s way around photoshop mutch better than me couldnt break the nut. :<<

would much appreciate any answers

/peace


(Shaderman) #2
  1. Have a look at the images in textures/alpha and you should see how it works.
  2. Images must be in the tga format.
  3. You need at least Photoshop 7.0.1 to save tga images with alpha channel.

(BlitzZ) #3

omg my coup ran over this time grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
my friend saves the tga with alpha, and when i open it, it has no alpha
rofl pantofl NOT
i saved a texture from the alpha folder but the alpha dont get saved, yes i have marked the thingy called save alpha channels
i have photoshop 9


(DAbell) #4

I take it you are familiar with the concept of shaders controlling the actions of textures that you wish have transparent areas.

If you do then this link http://www.heppler.com/shader/shader/section7.htm should help you.

If you are yet to understand shaders then its a different matter.

This one looks good too

http://www.qeradiant.com/manual/Q3AShader_Manual/ch06/pg6_1.htm

Hope these help you out, the key i think is to ensure that you save in 32 bit TGA mode so the alpha channel is saved, then you need to look at the shaders of one of the simple alpha textures.

This is the shader used for the carpets in Oasis.

textures/siwa_props_sd/siwa_carpet2
{
	qer_editorimage textures/siwa_props_sd/siwa_carpet2.tga
	cull disable
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	{
		map textures/siwa_props_sd/siwa_carpet2.tga
		blendfunc blend
		rgbGen Vertex
	}
}

Give it a try and come back if you need further assistance.

<DJ>


(P4nth3r) #5

TGA with alpha channel most be 32bit right? did you do that?


(BlitzZ) #6

thx DAbell i got it, yes its 32bit, i was missing the shader file :x didnt know that it was needed

cheers