Newbie Spellweaver
- Joined
- Feb 2, 2015
- Messages
- 77
- Reaction score
- 53
for who don't know what that map shadow meaning. just skip this topic.
few days ago. i just found some ace video. that server have custom map. but still have map shadow from original map that they clone. so i will give a guide to fix that poop.
how this happen?
when you clone dat. map that have shadow layer without remove.
your new map will render that shadow and make your map look glitch.
there have 2 solution here. just pick one
1. create some app that can read dat structure then clean VERTEXINFO->nor from structure.
2. skip map shadow render on client soruce.
ProjectAtum\main\Background.cpp inside HRESULT CBackground::InitDeviceObjects()
few days ago. i just found some ace video. that server have custom map. but still have map shadow from original map that they clone. so i will give a guide to fix that poop.
how this happen?
when you clone dat. map that have shadow layer without remove.
your new map will render that shadow and make your map look glitch.
there have 2 solution here. just pick one
1. create some app that can read dat structure then clean VERTEXINFO->nor from structure.
2. skip map shadow render on client soruce.
ProjectAtum\main\Background.cpp inside HRESULT CBackground::InitDeviceObjects()
Code:
memcpy(&m_pTileVertexArray[i], p, sizeof(VERTEXINFO));
[COLOR=#ff0000][B]m_pTileVertexArray[i].nor = D3DXVECTOR3(0.0f,1.0f,0.0f); // Add this line
[/B][/COLOR] p += sizeof(VERTEXINFO);