DrawText not drawing above triangles

under_seeg
06-15-2005, 06:06 AM
when i draw text it appears behind all the triangles i have, even though i call the DrawText after i draw the primitives.

i've tried bringing the primitives to 0.1F on the z axis and they went all patchy with squares on, like they're on the edge of the view clipping distance. if i move them any further or even just to -0.1F then they dissapear completely!

i've tried transforming the view and world matrices but they dont seem to affect the screen at all.

under_seeg
06-17-2005, 03:29 AM
hey i figured it out on my own, *again* thank you to the 11 people who read it though for your concern, this board has offered me help before so i'm not that annoyed, heres how i did it:

i was calling the text drawing before drawing all of my primitives, now i have all primitives stored in one vBuff and i have an array in each object indexing where it's vertexes start and how many there are. so i call a loop through all my objects calling drawprimitive and using the index and length / 3 to state where in the buffer my triangles are. then in the same loop the text is drawn, so i have each thing drawn as it was created.

Not the best way of doing it but all my text now appears on top of the triangles.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum