Rendering arbitrary quadrilaterals

2 views
Skip to first unread message

Adam Stevenson

unread,
Jan 16, 2007, 12:18:38 PM1/16/07
to DXFramework
In my game, I need to render arbitrary quadrilaterals to make slanted
slopes for terrain. Can you please offer any suggestions of how I
could do this?
Thank you,
Adam

Jonathan

unread,
Jan 22, 2007, 2:06:12 PM1/22/07
to dxfra...@googlegroups.com
Sorry my reply is so late. You're referring to 2D quadrilaterals?

One way to do it would be to create a new blank texture and use the drawing functions to draw your quadrilateral on it, using FloodFill to fill it in.

If this works for you, you could create a supporting function that takes the four points and draws it from that.
--
Jonathan Voigt
Center for Cognitive Architecture
University of Michigan

Adam Stevenson

unread,
Jan 22, 2007, 3:30:52 PM1/22/07
to DXFramework
Thanks Jonathon, yeah I am talking about 2D quadrilaterals. I want to
stretch a texture in it. I know how to do this with regular DirectX,
but I don't know how to get the d3ddevice with dxf to draw it.
> ------=_Part_1501_24503320.1169492772760
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 976
>
> Sorry my reply is so late. You&#39;re referring to 2D quadrilaterals?<br><br>One way to do it would be to create a new blank texture and use the drawing functions to draw your quadrilateral on it, using FloodFill to fill it in.
> <br><br>If this works for you, you could create a supporting function that takes the four points and draws it from that.<br><br><div><span class="gmail_quote">On 1/16/07, <b class="gmail_sendername">Adam Stevenson</b> &lt;
> <a href="mailto:adamstev...@gmail.com">adamstev...@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> In my game, I need to render arbitrary quadrilaterals to make slanted<br>slopes for terrain.&nbsp;&nbsp;Can you please offer any suggestions of how I<br>could do this?<br>Thank you,<br>Adam<br></blockquote></div><br>-- <br>Jonathan Voigt
> <br>Center for Cognitive Architecture<br>University of Michigan
>
> ------=_Part_1501_24503320.1169492772760--

Reply all
Reply to author
Forward
0 new messages