开发者

Aligning a texture with a polygon

开发者 https://www.devze.com 2023-03-11 18:52 出处:网络
i am tryin开发者_JS百科g to write a mini 3d engine for a lightweight game. In the engine i already have it forming a wireframe polygon in 3d from x,y,z coorinates. What i cant figure out how to do is

i am tryin开发者_JS百科g to write a mini 3d engine for a lightweight game. In the engine i already have it forming a wireframe polygon in 3d from x,y,z coorinates. What i cant figure out how to do is to shear an image correctly so it will align correctly to a polygon such as this one:

Polygon p = new Polygon(new int[]{100, 160, 220, 180}, new int[]{100, 100, 150, 160}, 4);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号