|
Bug with decals
#377818
07/16/11 18:01
07/16/11 18:01
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
I'm having problems with decals since I've started working with A8. First I've faced problem with decal shadows, it looks like they have ZNEAR flag set on them And this happens with particles as well, they disappear if there is a decal shadow on the background. Another problem with decal that I've faced, is that they really have ZNEAR flag set on sometimes I've made bulletholes here: And when I walk away from it, decals appear throw the wall: When I walk closer, they disappear again... and appear as soon as I walk away... One more problem I've faced is this one: All sprites have proper alpha channel, and it worked flawlessly with A7, so there is nothing wrong with script and sprites as well. I asked on the forum, no one can fix this, and I'm not the only one who faced this problem. Some dude told me to read manual... and all of my stuff will work flawlessly, I do my best, but this one still doesn't work...
|
|
|
Re: Bug with decals
[Re: 3run]
#377941
07/18/11 08:10
07/18/11 08:10
|
Joined: Jul 2000
Posts: 27,978 Frankfurt
jcl
Chief Engineer
|
Chief Engineer
Joined: Jul 2000
Posts: 27,978
Frankfurt
|
Please read here about how to use decals properly: http://manual.3dgamestudio.net/ent_decal.htm When particles disappear when you see a decal shadow, your particle number is too small. Either limit your particles and decals or increase the particle number. Z-beating and elements appearing through walls are caused by a wrong clip_near/far range. Use careful level design and don't tamper with the view range settings. Otherwise increase clip_near and reduce clip_far until the problem is fixed. I think this should be easily fixed by yourself - if not, please post again and we'll help.
|
|
|
Re: Bug with decals
[Re: jcl]
#377951
07/18/11 08:38
07/18/11 08:38
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
Thank you, I've already tried to fix this myself (and not only me I guess): Thread link I've played with "clip_near" and "clip_far", but no results.. I've increased number of particles (actually, when I faced problem, I was using too much of them already), same no results... I can post my script that I use to create decals, if needed, I think I'm using them pretty properly (worked great with A7). Plus, one more question, why does model disappear if there is a decal shadow under it?
|
|
|
Re: Bug with decals
[Re: jcl]
#377959
07/18/11 09:25
07/18/11 09:25
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
|
|
|
Re: Bug with decals
[Re: 3run]
#377966
07/18/11 11:51
07/18/11 11:51
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
I've managed to fix the problem, but the result isn't that good... Here is the demo I've wanted to send to support team: Download link (298.77 KB) I found out, that I can fix most of the problems if I rice "clip_near" to number around "5". But then I face another problem, like this: I would like to know how to avoid this... Do I still need to send anything to support team? BTW, "clip_near" doesn't fix this problem:
|
|
|
Re: Bug with decals
[Re: 3run]
#377973
07/18/11 13:13
07/18/11 13:13
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
the second problem is because lot of decals are in the same position, thats a common problem that doesn't happend just with decals, try to place models or blocks with their surfaces in the same place
Last edited by painkiller; 07/18/11 13:13.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
|