473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Fillpolygon and texturebrush

Im trying to do a simple 3d project and I dont want to use dx or xna. Im
using DrawPoly to draw my meshes, and trying to use FillPolygon and a
texturebrush to fill the polys with a image. The image do not seem to move
with the poly properly, they behaive like a clipped region with the poly
moving over them. I know theres a rotate method, but not sure how to track
everything Any Ideas on how to setup this up? I basically do this in a loop

If BackFaceCull(p3dList) = False Then

bBuffer.DrawPolygon(New Pen(Color.Black, 1), p2dList.ToArray) 'draws the
mesh

bBuffer.FillPolygon(tblist.Item(i), p2dList.ToArray) 'draws the textures

End If


Sep 9 '08 #1
0 1780

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: foos | last post by:
Hello, Hopefully someone here can help me. I'm not sure what I am doing wrong, but I am getting an Out Of Memory exception when I try to use a TextureBrush. I have simplified my code to...
1
by: martin | last post by:
I have a problem with texture brush: In datagrid, I need to paint some fields with brushes. Those painted with gradient or basic brushes are ok, but when I set texture brush it does not cover a...
2
by: Tomomichi Amano | last post by:
Hello How can I delete (clear) lines that were made useing Graphics.DrawLine() ? Thanks in advance! Have a nice day!
2
by: MyNameIsnt | last post by:
Can anyone tell me why, when I click on the buttons it register 2 characters on the display? if you use the right mousebutton it works ok, but the buttons dont flash?? it works fine without the...
3
by: Lasse Edsvik | last post by:
Hello I was wondering if you guys know how i can apply a picture as texture on text? I have this: Font font = new Font("Verdana", 18); SolidBrush sb = new SolidBrush(Color.Red);
1
by: Lasse Edsvik | last post by:
Hello I was wondering if you guys could help me...... I have one textbox, image and one button on a page...... and when I click it im trying to generate a pic and display it.... but I cant...
2
by: CroDude | last post by:
Heya all! I have a weird problem when creating a texture brush in a Paint event. When program gets to the line where I'm creating a new TextureBrush object, it crashes with OutOfMemory...
12
by: Boni | last post by:
Dear all, How can I add something to the VB arrays after the initialization. dim _points() as System.Drawing.points If it is not possible how can I pass into function, with VB array as an...
10
theNewb
by: theNewb | last post by:
Two questions on graphics: 1. I'm trying to create the rooftop for a 'house' which needs to be 61 pixels long. In order to center the roof properly, I need to have both base points at 30.5 pixels...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.