Problem!

Started by
1 comment, last by Mursel 21 years, 10 months ago
When I load a mesh object i got skybox coruption? Why is that happening?
Advertisement
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-
Professional C++ and .NET developer trying to break into indie game development.
Follow my progress: http://blog.nuclex-games.com/ or Twitter - Topics: Ogre3D, Blender, game architecture tips & code snippets.
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!

This topic is closed to new replies.

Advertisement