head up display
i want to display a hud in my d3d game, what is the best way to display these graphics? billboarding? or is there another way?
[edited by - critical on March 1, 2004 1:36:17 AM]
www.andypike.com
Look up 2d in 3d.
or you could just draw XYZRHW vertices, whatever floats your boat
Look up 2d in 3d.
or you could just draw XYZRHW vertices, whatever floats your boat
Personally I would use the ID3DXSprite interface. It supports screen coordinates, alpha blending and it''s fast and simple to use.
thx for the stuff of www.andypike.com ive printedit already, and it really helps, thx again!!
quote:Original post by Fidelio66I second that. That AndyPike tutorial was written for DX8, before ID3DXSprite was created. The sprite interface is much easier that doing all that other stuff. It probably will take less than 15 lines of code for you to get a bitmap rendering on-screen (and simple lines of code, none of those real complex ones).
Personally I would use the ID3DXSprite interface. It supports screen coordinates, alpha blending and it''s fast and simple to use.
Dustin Franklin
Mircrosoft DirectX MVP
yesterday at home ive done this the way mentioned in this andypike tutorial, its working... but when you tell me a sprite is better way to do this, is it also faster?? and are there also tutorials on this?
Sprites are VERY easy to use, its basically a quad wrapped up all nice for yah, id use it, on my mid- high end machine and quite a few sprites, im getting ~ 6000 fps, another plus is you can rotate them very easily, so you could create some cool animated hud effects with that and the scaling ability, look on msdn, its pretty self explanitory
-Dan
-Dan
I''m gonna give another vote for the ID3DXSprite interface. I use it for all my HUD and front-end graphics. Very clean, very easy to use, and pretty friggin'' fast.
Ryan Buhr
Reactor Interactive, LLC.
rbuhr@reactorinteractive.net
Ryan Buhr
Reactor Interactive, LLC.
rbuhr@reactorinteractive.net
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement