@MrValentine : I've already dark occlusion, some parts of my map become invisible with it ...
@Le verdier : I'll look at this
@Brendy Boy : It seem interesting, I'll do some test.
Otherwise, I thought to hide all limbs that are behind the player, so I've a little code but it doesn't seem to work, I must be wrong, someone can see it please ?
limbid = 1
while limb exist(MapObj,limbid)
plrdistx = limb position x(mapobj,limbid) - camera position x()
plrdistz = limb position z(mapobj,limbid) - camera position z()
plrdist = sqrt(abs(plrdistx*plrdistx)+abs(plrdistz*plrdistz))
distanglex = camera position x() - limb position x(mapobj,limbid)
distanglez = camera position z() - limb position z(mapobj,limbid)
diffangle = abs(wrapvalue(camera angle y()) - wrapvalue(atanfull(distanglex,distanglez)))
if plrdist>5000 or returnkey() or (diffangle>=90 and diffangle<=270)
exclude limb on MapObj,limbid
else
exclude limb off MapObj,limbid
endif
inc limbid
ENDWHILE
Thanks a lot
Eternal suffering ...
I'm french