Skip to main content
GameDev.net gamedev.net
🔒 Locked

line width

Started by Pet123 Jun 2, 2003 at 12:41 PM 3 replies 1.3k views
Original Post
Pet123
Pet123
how can i set line width in directx? thank you.
quack
quack
I read it''s not possible in DX. (Additional notes)
http://www.flipcode.com/articles/article_objectoutline.shtml

but some cat wrote a routine
http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-TexturedLinesInD3D&forum=cotd&id=-1

Here''s an idea to do it in hardware for double or quadrupled sized lines.
Render all your lines to a texture [rendertarget] that''s a power of 2 smaller than your screen size. Then draw the quad fullsized and hardware will scale it up, giving you extra thick lines. (it may look jaggedy but that''s the style yo)
www.autodefrost.com/~travisSignature Virus cleaned by McAfee
S1CA
S1CA
1) ID3DXLine.

2) Drawing as quads (like ID3DXLine) are how wide lines are achieved internally with other APIs, and drivers.
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
Pet123
Pet123
Thanks quack and S1CA, im going to read the article and try out the ID3DLine now.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.