Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,709 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Face problem when creating a Entity : #262007
04/21/09 15:12
04/21/09 15:12
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
Hi Every one !
I have a Models in 3DS file (and the texture is *.dss file)
I Imported it in to MED. It's ok (see Picture)



But When I load it it's into a level (by scrip (ent_create))
it's had a problem : some faces didn't appear (see Picture)



It's had many Pat of Texture :



You can Download Models here :

http://www.mediafire.com/download.php?w2nz2mjyr1z

Please Help !

Thanks All !

Re: Face problem when creating a Entity : [Re: TrQuocAn] #262010
04/21/09 15:23
04/21/09 15:23
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Maybe the camera is too close from the model?

Re: Face problem when creating a Entity : [Re: Cowabanga] #262020
04/21/09 15:45
04/21/09 15:45
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
why not try to convert dds to TGA or BMP?


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Face problem when creating a Entity : [Re: Jaxas] #262099
04/21/09 22:24
04/21/09 22:24
Joined: Jul 2008
Posts: 4
E
edlucas1988 Offline
Guest
edlucas1988  Offline
Guest
E

Joined: Jul 2008
Posts: 4
Yo to fix this problem you either need to one of two things, get rid of the alpha channels on each of the textures that dont need them or use a shader for the model that does proper alpha channels because the engine doesnt render alpha-ed stuff properly.

Heres one that i use:

Give your model this material and it should work fine.

function mtl_alpha_init
{
mtl.skill1 = pixel_for_vec(vector(128,0,0),0,8888); // the first value in the vector is the threshold
}

material mtl_alpha
{
event=mtl_alpha_init;
effect=
"
texture entSkin1;
dword mtlSkill1;

technique vegetation
{
pass p0
{
Texture[0]=<entSkin1>;
ZWriteEnable=True;
AlphaBlendEnable=False;
AlphaTestEnable=True;
AlphaRef=<mtlSkill1>;
AlphaFunc=Greater;
CullMode=None; // CCW or None

ColorArg1[0]=Texture;
ColorOp[0]=Modulate2X;
ColorArg2[0]=Diffuse;
}
}
technique fallback{pass p0{}}
";
}

Re: Face problem when creating a Entity : [Re: edlucas1988] #262116
04/22/09 01:23
04/22/09 01:23
Joined: Apr 2009
Posts: 39
T
TrQuocAn Offline OP
Newbie
TrQuocAn  Offline OP
Newbie
T

Joined: Apr 2009
Posts: 39
@edlucas1988 : THANKS YOU VERY MUCH
It's work smooth !

Thanks.

I'm a newbie in 3DGS .
I Can read and understand the source code of 3DGS but I don't know what the shader is (also HLS) ?

would you mid to share me and basic book or tutorial about shader ?

I found it's very interesting .

Thanks laugh

Re: Face problem when creating a Entity : [Re: TrQuocAn] #262141
04/22/09 06:01
04/22/09 06:01
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
See the wiki wink.


Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1