DX not rendering 2d scene

Started by
12 comments, last by cryo75 20 years, 7 months ago
It''s working because you''re far plane isn''t clipping it anymore.

Well specifying near clipping plane as 0 is not a very good idea, you could try 0.1f.
Advertisement
Ilankt, how are you calculating the x,y,y pos of the translation??

Ivan
DELETED:
oops, nope...

[edited by - ilankt on September 24, 2003 10:33:12 AM]
How appropriate, you fight like a cow!
I''m using the following formulas:

fXPos = (float)(-(miWidth / 2) + pElements[i].x);fYPos = (float)(-(miHeight / 2) - pElements[i].y + pElements[i].ySize - 31);


when it''s a 256x256 bitmap it''s ok but when it''s another size (eg. 128x128), the y pos freaks out and comes somewhere in the middle of the window.

furthermore, if a switch to wireframe i can the the quad, whilst if i''m in normal mode (where I ant to display the texture), I get nothing... stange

Ivan

This topic is closed to new replies.

Advertisement