PDA

View Full Version : Playermodels disappear when too close



serthy
2nd May 2014, 12:53
Hello everyone!

I encountered some stupid bugs with my playermodels.
This happans for any of my custom character models:
when you are too close or aim at them on a specific angle, they disapear!
I have tested this with only these models as replacement for the standard ones,
so no other mod parts conflict.
The models are out of one piece (no head attached etc.)

Heres a video:


https://www.youtube.com/watch?v=n1Nkz4mTjoY&feature=youtu.be

Tally
2nd May 2014, 13:30
It would be a materials setting. Please post your Asset Manager settings.

serthy
2nd May 2014, 14:18
These are pretty much the default settings

696

Tally
2nd May 2014, 16:48
There it is - in frame buffer operations, you have cullface set to "back". This will only show you one face of the model. Set it to "none".

serthy
2nd May 2014, 19:00
There it is - in frame buffer operations, you have cullface set to "back". This will only show you one face of the model. Set it to "none".
Thanks Tally, but this doesnt work either.
Youre right with what culling is, but it should have been the same for any distance. It seems to me theres something wrong with the model (too much bones, improper setup, no lods etc)

Tally
2nd May 2014, 20:44
Thanks Tally, but this doesnt work either.
Youre right with what culling is, but it should have been the same for any distance. It seems to me theres something wrong with the model (too much bones, improper setup, no lods etc)

I'm sorry it doesn't work, but you are confusing "cull" with "lod" (level of detail) - cull with "cut off" the back or front of a texture so that only 1 side is shown; lod will only show the whole thing at a certain distance.

serthy
2nd May 2014, 21:07
I'm sorry it doesn't work, but you are confusing "cull" with "lod" (level of detail) - cull with "cut off" the back or front of a texture so that only 1 side is shown; lod will only show the whole thing at a certain distance.

Yes, therefore it must something with the lod.
The model looks correct until you get to a certain distance and it will disappear, as the closest lod model isnt loaded.
If it is a problem with the materials cull face mode, wouldnt the model look either weird (frontculling) or normal (backface culling / none)?
And wouldnt it look like this the whole time?

However i didnt set any lod in assetmanager here aare the models settings:

700

serthy
2nd May 2014, 21:20
Fixed it!

simply set all lod distances to a proper value and the same lod model for all
+ calculate bounds
+ default hitbox model

EDIT:

seems that calculate bounds is the culprit
when unticked the bug appears, so select calculateBounds