and I want to trying this feature
I wrote this code for testing only, I just wanna checking camera space rendering abbility with random static object
Code: Select all
void ISelectable::Initialize()
{
//...code
// camera space
m_pEntity->LoadGeometry(2, "Assets\\Objects\\selection.cgf");
flags = ENTITY_SLOT_RENDER | ENTITY_SLOT_RENDER_NEAREST;
GetEntity()->SetSlotFlags(2, flags);
auto *pMaterial = gEnv->p3DEngine->GetMaterialManager()->LoadMaterial("Assets\\Objects\\selection.mtl");
m_pEntity->SetSlotMaterial(2, pMaterial);
m_pEntity->SetSlotCameraSpacePos(2, Vec3(10, 10, 10));
}
What range for Vec3 I should use in method SetSlotCameraSpacePos ?