Esempio n. 1
0
Hook_VClient_RenderView::~Hook_VClient_RenderView() {
	ExportEnd();
	ImportEnd();

	delete m_CamExport;
	delete m_CamImport;
}
Esempio n. 2
0
bool Hook_VClient_RenderView::ImportBegin(wchar_t const *fileName)
{
	ImportEnd();

	m_Import = g_BvhImport.LoadMotionFile(fileName);

	return m_Import;
}
Esempio n. 3
0
bool Hook_VClient_RenderView::ImportToCamPath(bool adjustInterp, double fov)
{
	if(!m_Import)
		return false;

	bool bOk = g_BvhImport.CopyToCampath(m_ImportBaseTime, fov, m_CamPath);

	if(bOk)
	{
		ImportEnd();

		if(adjustInterp)
		{
			m_CamPath.PositionInterpMethod_set(CamPath::DI_LINEAR);
			m_CamPath.RotationInterpMethod_set(CamPath::QI_SLINEAR);
			m_CamPath.FovInterpMethod_set(CamPath::DI_LINEAR);
		}

		m_CamPath.Enabled_set(true);
	}

	return bOk;
}
Esempio n. 4
0
Hook_VClient_RenderView::~Hook_VClient_RenderView() {
	ExportEnd();
	ImportEnd();
}