Q3A Shader for dpmodel

Discuss the creation of various model formats for Quake engines, and related matters to modeling.
Post Reply
marcelatlaskalova
Posts: 7
Joined: Thu Aug 20, 2009 4:51 pm

Q3A Shader for dpmodel

Post by marcelatlaskalova »

Hi guys.I try to make some custom models.But got ione problem.Lordhavoc wrote script for knight model.It works fine.But now i have one problem wich have 3 textures.1st for body and head,2nd for legs and cloak and the 3rd for sword.When i disable the script the model is like the 1st image but when i enable the script the model is like on the 2nd image.So please can somobody write how can i fix this bug?

1st picture
Image


2nd picture
Image

I am using this script and the textures got aplha func.

avatar
{
cull none
{
map avatar_a_t01.tga
alphaFunc GE1
rgbGen lightDiffuse
}
}
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Post by ceriux »

i dont see whats wrong other than all the black is going see through?

why not just do it normal and use darkplaces tga support for the alpha mask?
marcelatlaskalova
Posts: 7
Joined: Thu Aug 20, 2009 4:51 pm

Post by marcelatlaskalova »

ceriux wrote:i dont see whats wrong other than all the black is going see through?

why not just do it normal and use darkplaces tga support for the alpha mask?
Here is another image you can see that the texture is transparent:

Image
Downsider
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Post by Downsider »

Missing alpha channel support?
MeTcHsteekle
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Post by MeTcHsteekle »

i think he doesn't want the holes at the knees and things like that, like maybe there's supposed to be black there or something
bah
Downsider
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Post by Downsider »

To me it looks like the depth buffer is buggering up :?
ceriux
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Post by ceriux »

if things are messed up then maybe its the alpha channel is messed up? open up the texture file some how and look at the alpha channel.
marcelatlaskalova
Posts: 7
Joined: Thu Aug 20, 2009 4:51 pm

Post by marcelatlaskalova »

ceriux wrote:if things are messed up then maybe its the alpha channel is messed up? open up the texture file some how and look at the alpha channel.
You are right.I got wrong alpha channel on modle texture.THank you
Chip
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland
Contact:

Post by Chip »

MeTcHsteekle wrote:i think HE doesn't want ...
I think HE is a SHE as far as I know. Marcela.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
marcelatlaskalova
Posts: 7
Joined: Thu Aug 20, 2009 4:51 pm

Post by marcelatlaskalova »

Chip wrote:
MeTcHsteekle wrote:i think HE doesn't want ...
I think HE is a SHE as far as I know. Marcela.
:wink:
MeTcHsteekle
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Post by MeTcHsteekle »

oh dear, im terribly sorry :S
bah
r00k
Posts: 1111
Joined: Sat Nov 13, 2004 10:39 pm

Post by r00k »

the weapon has dark areas that are not transparent, yet the back of the leg is. You may just have to recolor some spots that use a different color than your alpha mask?
Post Reply