Sprite pop-up

BlitzMax Forums/MiniB3D Module/Sprite pop-up

siread(Posted 2008) [#1]
Why is it my sprites only appear when the mid-point enters the view? The pop-up is really obvious and disconcerting. Can I fix it?


simonh(Posted 2008) [#2]
Using MeshCullRadius should fix it.


siread(Posted 2008) [#3]
Ah thanks.


daaan(Posted 2008) [#4]
I'm having the same problem and I can't figure how MeshCullRadius will fix this?


simonh(Posted 2008) [#5]
It sets the culling radius of a mesh (a sprite is a mesh). You need to do this as MiniB3D doesn't take into account the size of scaled sprites. In the next version you won't need to set this, it will be done automatically.


siread(Posted 2008) [#6]
If you scale your sprite you need to set the MeshCullRadius to the same scale. Took me a while to realise that too. :)