473,320 Members | 2,107 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,320 software developers and data experts.

GDI+ in .NET

Hi All,

Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D and
need to specify the points in terms of X,Y,Z....is this possible in GDI ?
Cheers
ROhit
Nov 22 '05 #1
5 1977
"Rohit Sharma" <lt*************@hotmail.com> wrote in
news:#t*************@TK2MSFTNGP10.phx.gbl:
Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D
and need to specify the points in terms of X,Y,Z....is this possible
in GDI ?


The GDI Graphics class is for drawing 2D only. You've got alot of work to
do for 3D. For one you need to implement your own Z buffering. You also
have to handle when a 2D object is rotated off the plane of the 2D surface.
Ie. If a circle is rotated off the page you'd end up drawing an Ellipse on
the GDI surface. When that circle intersects another circle in 3d is when
you'll need that z-buffering.

You'll basically have to draw pixel by pixel instead of by primitive.

This is really alot of work. Why don't you use Managed DirectX instead?
It also has better perfomance than GDI.

see group: "Microsoft.public.win32.programmer.directx.managed "

Michael Lang
Nov 22 '05 #2
"Rohit Sharma" <lt*************@hotmail.com> wrote in
news:#t*************@TK2MSFTNGP10.phx.gbl:
Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D
and need to specify the points in terms of X,Y,Z....is this possible
in GDI ?


The GDI Graphics class is for drawing 2D only. You've got alot of work to
do for 3D. For one you need to implement your own Z buffering. You also
have to handle when a 2D object is rotated off the plane of the 2D surface.
Ie. If a circle is rotated off the page you'd end up drawing an Ellipse on
the GDI surface. When that circle intersects another circle in 3d is when
you'll need that z-buffering.

You'll basically have to draw pixel by pixel instead of by primitive.

This is really alot of work. Why don't you use Managed DirectX instead?
It also has better perfomance than GDI.

see group: "Microsoft.public.win32.programmer.directx.managed "

Michael Lang
Nov 22 '05 #3
Thanks very much.

Can you direct me to a primer web site on the subject ? (with .NET)

Thanks
Rohit
"Michael Lang" <ml@nospam.com> wrote in message
news:Xn********************************@207.46.248 .16...
"Rohit Sharma" <lt*************@hotmail.com> wrote in
news:#t*************@TK2MSFTNGP10.phx.gbl:
Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D
and need to specify the points in terms of X,Y,Z....is this possible
in GDI ?
The GDI Graphics class is for drawing 2D only. You've got alot of work to
do for 3D. For one you need to implement your own Z buffering. You also
have to handle when a 2D object is rotated off the plane of the 2D

surface. Ie. If a circle is rotated off the page you'd end up drawing an Ellipse on
the GDI surface. When that circle intersects another circle in 3d is when
you'll need that z-buffering.

You'll basically have to draw pixel by pixel instead of by primitive.

This is really alot of work. Why don't you use Managed DirectX instead?
It also has better perfomance than GDI.

see group: "Microsoft.public.win32.programmer.directx.managed "

Michael Lang

Nov 22 '05 #4
Open GL, nuff said.

DX is the crayola crayon and lego cube of 3d rendering APIs. oGL is mucho
nicer. Faster too.
"Rohit Sharma" <lt*************@hotmail.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Thanks very much.

Can you direct me to a primer web site on the subject ? (with .NET)

Thanks
Rohit
"Michael Lang" <ml@nospam.com> wrote in message
news:Xn********************************@207.46.248 .16...
"Rohit Sharma" <lt*************@hotmail.com> wrote in
news:#t*************@TK2MSFTNGP10.phx.gbl:
Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D
and need to specify the points in terms of X,Y,Z....is this possible
in GDI ?


The GDI Graphics class is for drawing 2D only. You've got alot of work to do for 3D. For one you need to implement your own Z buffering. You also have to handle when a 2D object is rotated off the plane of the 2D

surface.
Ie. If a circle is rotated off the page you'd end up drawing an Ellipse on the GDI surface. When that circle intersects another circle in 3d is when you'll need that z-buffering.

You'll basically have to draw pixel by pixel instead of by primitive.

This is really alot of work. Why don't you use Managed DirectX instead?
It also has better perfomance than GDI.

see group: "Microsoft.public.win32.programmer.directx.managed "

Michael Lang


Nov 22 '05 #5
There is a downloadable DirectX SDK that can be used for 3D
"Michael Lang" <ml@nospam.com> wrote in message
news:Xn********************************@207.46.248 .16...
"Rohit Sharma" <lt*************@hotmail.com> wrote in
news:#t*************@TK2MSFTNGP10.phx.gbl:
Is the .NET GDI+ limited to drawing in 2D space ? I need to draw in 3D
and need to specify the points in terms of X,Y,Z....is this possible
in GDI ?
The GDI Graphics class is for drawing 2D only. You've got alot of work to
do for 3D. For one you need to implement your own Z buffering. You also
have to handle when a 2D object is rotated off the plane of the 2D

surface. Ie. If a circle is rotated off the page you'd end up drawing an Ellipse on
the GDI surface. When that circle intersects another circle in 3d is when
you'll need that z-buffering.

You'll basically have to draw pixel by pixel instead of by primitive.

This is really alot of work. Why don't you use Managed DirectX instead?
It also has better perfomance than GDI.

see group: "Microsoft.public.win32.programmer.directx.managed "

Michael Lang

Nov 22 '05 #6

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

Similar topics

10
by: **ham | last post by:
I know that's an old dirty issue; GDI+ almost -the slowest part of the framework - has bothered many developers using it in animations. Even in managed C++ the performance is awful. Now, any dude...
6
by: James dean | last post by:
I have heard that the video drivers in GDI+ are a big performance issue. But is this only an issue with something like Games Programming i think...is this wrong?. What about a drawing application...
1
by: James dean | last post by:
Could someone explain how this works. I think the graphics card is used to do blitting and drawing shapes like rectangles. How does it draw using the Graphics card on the PC and why is this feature...
6
by: James dean | last post by:
I want a good site that will show clearly how much more functionality GDI+ has. I cannot seem to find anything other than sites that list "some" of the new functionality that GDI+ offers. A...
7
by: | last post by:
We create VC++ programs that does some GDI drawing functionality. I discovered GDI+ and this seems to be a big step forward, and appears to be standard available in Windows XP and Windows Server...
0
by: Brian Keating | last post by:
hi there i've a test program that creates a treeview and destroys it over and over, i keep track of the gdi object count for the process and see if they are ok. However when i switch on...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
7
by: Marcin Rzeznicki | last post by:
Hello, Do you think it is legitimate practice to mix GDI+ and GDI calls (via Get/ReleaseHDC()) in paint event of a control? I've heard there is possibility of performance loss while "locking"...
5
by: Jonathan Boivin | last post by:
Hi, I've got some problems with loading bills using a bill usercontrol I built. If I load all current bills in my test environment (156) everything is fine once, but repeating the operation...
1
by: Chris Dunaway | last post by:
When working with GDI+, calling the CreateGraphics method to draw on a control has normally been frowned upon and it is always emphasized to dispose of pens and brushes and other GDI objects lest...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.