Archived

This topic is now archived and is closed to further replies.

Problem!

This topic is 5652 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The title "Problem!" already told us enough about your problem, so there was no need for such an exact description.

The error lies clearly in line 212 of meshimport.cpp, where you''re overwriting the skybox'' memory using an uninitialized pointer.


By the way,
What system are you developing on, what platform ?
Which engine are you using ? Homebrewn ? Code ?
How do you load your mesh ? MD2 import, 3DSmax, custom file format, ...?
How is your mesh related to the game world ? BSP, SceneGraph, Brute-Force ?
SkyBox corruption means ? Does is rotate ? Flicker ? Deform ?



-Markus-

Share this post


Link to post
Share on other sites
OK you are right about my stupid question. anyway, i am developing space combat game, but i am still beginner in DirectX development.

1. you are right about pointers, so i fix the problem
2. another problem is here: speed of my ship!

i cant figured out how to include speed. when i press key its move just once, but i want to increased and decreased my speed all the time!here is fragment of code how my ship is moving around space:

float speed = 0.5f;

if (KEYDOWN(KeyboardState, DIK_UP ) || KEYDOWN(KeyboardState, DIK_W))
{

pozicijaX -= sinf(D3DXToRadian(ugaoY)) * cosf(D3DXToRadian(ugaoX)) * speed;
pozicijaY += sinf(D3DXToRadian(ugaoX)) * speed;
pozicijaZ += cosf(D3DXToRadian(ugaoY)) * cosf(D3DXToRadian(ugaoX)) * speed;
}


if (KEYDOWN(KeyboardState, DIK_DOWN ) || KEYDOWN(KeyboardState, DIK_S))
{
pozicijaX += sinf(D3DXToRadian(ugaoY)) * cosf(D3DXToRadian(ugaoX)) * speed;
pozicijaY -= sinf(D3DXToRadian(ugaoX)) * speed;
pozicijaZ -= cosf(D3DXToRadian(ugaoY)) * cosf(D3DXToRadian(ugaoX)) * speed;
}

tnx for prev. help!

Share this post


Link to post
Share on other sites