Model trees help

03/27/2018 20:50 tutstuts#1
Does anyone know the name of these two models of trees?
Type autumn trees ...

thank you.

I'm behind them but I do not know their names.

[Only registered and activated users can see links. Click Here To Register...]
03/27/2018 21:18 Kiseku#2
[Only registered and activated users can see links. Click Here To Register...]
03/28/2018 02:33 Dr. Peacock#3
Open your WdMadrigal with ATools and Check the Model...

#Close #request #wrong #section #hashtag #is #useless ##
03/28/2018 03:32 ZeroTwo02#4
Quote:
Originally Posted by Dr. Peacock View Post
Open your WdMadrigal with ATools and Check the Model...

#Close #request #wrong #section #hashtag #is #useless ##
The trees change according to the seasons.

Code:
#ifdef __ENVIRONMENT_EFFECT

		if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
		{
			if( stricmp( m_szFileName, "obj_macoprtr16.o3d" ) == 0 || stricmp( m_szFileName, "obj_macoprtr17.o3d" ) == 0 )
			{
				pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE2X );
			}
			else
			{
				pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
			}
		}

#else // __ENVIRONMENT_EFFECT

#ifdef __JAPAN_SAKURA
		if( stricmp( m_szFileName, "obj_macoprtr16.o3d" ) == 0 || stricmp( m_szFileName, "obj_macoprtr17.o3d" ) == 0 )
		{
			pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE2X );
		}
		else
		{
			pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
		}
#else
		pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
#endif //__JAPAN_SAKURA
Code:
void CDPClient::OnEnvironmentSetting( CAr & ar )
{
	int nSeason = SEASON_NONE;
	ar >> nSeason;
	CEnvironment::GetInstance()->SetSeason( nSeason );

	if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING || CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
	{
		CFixedArray< tagMODELELEM >* apModelElem = &(prj.m_modelMng.m_aaModelElem[OT_OBJ]);
		for( int i = 0; i < apModelElem->GetSize(); ++i )
		{
			LPMODELELEM pModelElem = (LPMODELELEM) apModelElem->GetAt( i );
			if( pModelElem )
			{
				if( _tcsicmp(pModelElem->m_szName, "MaCoPrTr01") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr03") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr10") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr20") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr14") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr11") == 0 )
				{
					pModelElem->m_fScale = 1.0f;

					if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
					{
						_tcscpy( pModelElem->m_szName, "MaCoPrTr16" );
					}
					else if( CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
					{
						_tcscpy( pModelElem->m_szName, "MapleTree01" );
					}
				}

				else if( _tcsicmp(pModelElem->m_szName, "MaCoPrTr04") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr05") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr12") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr15") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr13") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr02") == 0 )
				{
					pModelElem->m_fScale = 1.0f;

					if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
					{
						_tcscpy( pModelElem->m_szName, "MaCoPrTr17" );
					}
					else if( CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
					{
						_tcscpy( pModelElem->m_szName, "MapleTree02" );
					}
				}
			}
		}
	}
}
03/28/2018 16:10 tutstuts#5
Quote:
Originally Posted by naruto66620 View Post
The trees change according to the seasons.

Code:
#ifdef __ENVIRONMENT_EFFECT

		if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
		{
			if( stricmp( m_szFileName, "obj_macoprtr16.o3d" ) == 0 || stricmp( m_szFileName, "obj_macoprtr17.o3d" ) == 0 )
			{
				pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE2X );
			}
			else
			{
				pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
			}
		}

#else // __ENVIRONMENT_EFFECT

#ifdef __JAPAN_SAKURA
		if( stricmp( m_szFileName, "obj_macoprtr16.o3d" ) == 0 || stricmp( m_szFileName, "obj_macoprtr17.o3d" ) == 0 )
		{
			pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE2X );
		}
		else
		{
			pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
		}
#else
		pd3dDevice->SetTextureStageState( 0, D3DTSS_COLOROP,   D3DTOP_MODULATE );
#endif //__JAPAN_SAKURA
Code:
void CDPClient::OnEnvironmentSetting( CAr & ar )
{
	int nSeason = SEASON_NONE;
	ar >> nSeason;
	CEnvironment::GetInstance()->SetSeason( nSeason );

	if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING || CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
	{
		CFixedArray< tagMODELELEM >* apModelElem = &(prj.m_modelMng.m_aaModelElem[OT_OBJ]);
		for( int i = 0; i < apModelElem->GetSize(); ++i )
		{
			LPMODELELEM pModelElem = (LPMODELELEM) apModelElem->GetAt( i );
			if( pModelElem )
			{
				if( _tcsicmp(pModelElem->m_szName, "MaCoPrTr01") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr03") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr10") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr20") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr14") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr11") == 0 )
				{
					pModelElem->m_fScale = 1.0f;

					if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
					{
						_tcscpy( pModelElem->m_szName, "MaCoPrTr16" );
					}
					else if( CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
					{
						_tcscpy( pModelElem->m_szName, "MapleTree01" );
					}
				}

				else if( _tcsicmp(pModelElem->m_szName, "MaCoPrTr04") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr05") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr12") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr15") == 0 ||
					_tcsicmp(pModelElem->m_szName, "MaCoPrTr13") == 0 || _tcsicmp(pModelElem->m_szName, "MaCoPrTr02") == 0 )
				{
					pModelElem->m_fScale = 1.0f;

					if( CEnvironment::GetInstance()->GetSeason() == SEASON_SPRING )
					{
						_tcscpy( pModelElem->m_szName, "MaCoPrTr17" );
					}
					else if( CEnvironment::GetInstance()->GetSeason() == SEASON_FALL )
					{
						_tcscpy( pModelElem->m_szName, "MapleTree02" );
					}
				}
			}
		}
	}
}

Thanks.
It's because I did not find her in WorldEditor.
03/28/2018 20:43 Nick#6
#moved