Windows Develop Bookmark and Share   
 index > Windows Forms General > You know 3d?
 

You know 3d?

This is a somewhat vague and general question.. but here's the situation...

I need to render this graphic: 

http://www.geocities.com/ethanton1/ (sorry about the geocities site)

Those are bins on the trailers. I made that graphic in photoshop. That graphic needs to change colors (the cab) but more importantly the number of bins needs to change depending on the data... we're going to use the graphics draw methods.

The boss thought I could just do one routine to draw a "box" and repeat it as many times as needed. But it's in perspective. Everyone likes the perspective drawings. This means each box is slightly different.

So my question is: what's the best way to approach this. I can make a 3d model of it. Should I do that and render that? In that case the boxes would all be the same. I guess the alternative would be figure out each box shape and keep a separate routine for each? Which approach would be harder? Which would be faster for rendering? I have no 3d experience (except in graphics apps) so any thoughts on the issue would be helpful.
MigrationUser 1  Friday, February 07, 2003 5:51 PM
Forget all that 3D business.  You should be able to achieve what you want by just scaling and moving the box image.  As far as changing the color of the cab, GDI+ has some helpful routines for that too.

A good GDI+ sample app can be found in the "Advanced Topics in Building Applications" talk demos.  Go to the sample page and click "Talks".  Or go here: <a href="http://windowsforms.net/Default.aspx?tabindex=4&tabid=49#Talks">http://windowsforms.net/Default.aspx?tabindex=4&tabid=49#Talks</a>.  Open the .zip, then drill into the "Upload\AdvDrawingDemo" folder and open that VS.NET solution.

I hope this helps
 - mike
MigrationUser 1  Wednesday, February 12, 2003 6:38 PM

You can use google to search for other answers

Custom Search

More Threads

• Error navigating to "https" site from webbrowser control
• Paint Program(C#)
• .net 2.0 scheduled task
• Form Always on top.Main application inactive
• SetDataObject troubles
• VB.NET reference/include
• RichTextBox not displaying text
• Right-To-Left Alignment in AutoComplete
• Problem with MSword docs that automatically opens in ie7
• Docking & anchoring two windows