BillboardSet how to use
Posted: Tue Oct 31, 2017 8:58 pm
So I create a billboardset with a pool of 1 (I only need one billboard) and it looks like I need to do:
for it to work since I need to force the buffers' creation before I am allowed to set the datablock (for some reason). After getting this out of the way I have the following error:
Any idea how to make it reach addRenderableV1() because I am not seeing it in the cullFrustum() from SceneManager.
The material file that is used for the datablock is this:
Code: Select all
billboardSet.beginBillboards(billboardSet.getNumBillboards());
billboardSet.endBillboards();
billboardSet.setDatablock(mDatablock);This happens because the SceneManager::cullFrustum() tries to add this v1 object using the addRenderableV2() method and of course fails."Vaos meshLod/shadowLod not set. "
"Note: If this is a v1 object, it is in the wrong RenderQueue ID "
"(or the queue incorrectly set)."
Any idea how to make it reach addRenderableV1() because I am not seeing it in the cullFrustum() from SceneManager.
The material file that is used for the datablock is this:
abstract hlms BaseSettingsAlphaBlend unlit
{
scene_blend alpha_blend
depth_check off
depth_write off
cull_mode none
}
hlms Fx/ExplosionMaterial unlit : BaseSettingsAlphaBlend
{
diffuse_map explosion0.png
}