473,804 Members | 3,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to draw a 3D chart

Hello,

We have a 3D chart that created in CsGL(it is built on top of the OpGL). We
are recreate it use .Net graphics component. We create point with x, y and
coordinates and call GL.glVertex3fv( points). How can I do the similar thing
using System.Draw.Gra phics? All of the draw function in Graphics are only for
2D. Non of them takes Z coordinate.

Thanks for any information,

Aug 13 '07 #1
8 3279
Use Microsoft Managed DirectX 9 or Microsoft XNA.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Haiping" <Ha*****@discus sions.microsoft .comwrote in message
news:80******** *************** ***********@mic rosoft.com...
Hello,

We have a 3D chart that created in CsGL(it is built on top of the OpGL).
We
are recreate it use .Net graphics component. We create point with x, y and
coordinates and call GL.glVertex3fv( points). How can I do the similar
thing
using System.Draw.Gra phics? All of the draw function in Graphics are only
for
2D. Non of them takes Z coordinate.

Thanks for any information,

Aug 14 '07 #2
If we use DirectX 9 in our Library we have to buy it or can use the free
version? I don't see there is any free version of XNA.

Thank you,

Aug 15 '07 #3
DirectX9 is already installed, but you can ensure that the latest version is
installed by adding the DirectX redistributable to your app. See
http://www.microsoft.com/downloads/d...DisplayLang=en
to get it.

XNA requires the .Net Platform 2.0, which is likely to be installed, but the
Framework can also be installed from the redistributable
(http://msdn2.microsoft.com/en-us/net...aa731542.aspx). There is also
a free XNA Framework redistributable :
http://www.microsoft.com/downloads/d...displaylang=en.

You would need XNA Game Studio Express to create XNA, but that is free also.
You can find it, and any other XNA or DirectX information you need at
http://msdn2.microsoft.com/en-us/xna/default.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Haiping" <Ha*****@discus sions.microsoft .comwrote in message
news:31******** *************** ***********@mic rosoft.com...
If we use DirectX 9 in our Library we have to buy it or can use the free
version? I don't see there is any free version of XNA.

Thank you,

Aug 15 '07 #4
I just checked my computer. I don't have DirectX 9. I only have DirectX 8 For
Visual Basic Type Library.

We are using .Net Platform 2.0.

Thank you for the info.
Haiping

"Kevin Spencer" wrote:
DirectX9 is already installed, but you can ensure that the latest version is
installed by adding the DirectX redistributable to your app. See
http://www.microsoft.com/downloads/d...DisplayLang=en
to get it.

XNA requires the .Net Platform 2.0, which is likely to be installed, but the
Framework can also be installed from the redistributable
(http://msdn2.microsoft.com/en-us/net...aa731542.aspx). There is also
a free XNA Framework redistributable :
http://www.microsoft.com/downloads/d...displaylang=en.

You would need XNA Game Studio Express to create XNA, but that is free also.
You can find it, and any other XNA or DirectX information you need at
http://msdn2.microsoft.com/en-us/xna/default.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

Aug 15 '07 #5
Hi Kevin,

I am going to give XNA a try. I installed XNA. But I could not instll the
xnagse_setup.mi s, I believe this is XNA Game studio Express. It asks me to
Install the Visual C# 2005 Express Edition SP 1. But I cannot install the
SP1. The window INstaller says "The upgrade patch cannnot be installed by the
Windows installer service because the program to be usgraded may be missing,
or the updrade patch may update a different version of the program. ...". I
don't understand this error. I user VS 2005.

Thank you,
Aug 15 '07 #6
Hi Haiping,

You need to read the instructions better! Note that Visual C# 2005 Express
Edition is required for XNA Game Studio Express. It is also free, and there
is a link to download it on the page references I gave you. It will run
alongside Visual Studio 2005 without any problems. I know, because I have
both on my machines.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Haiping" <Ha*****@discus sions.microsoft .comwrote in message
news:16******** *************** ***********@mic rosoft.com...
Hi Kevin,

I am going to give XNA a try. I installed XNA. But I could not instll the
xnagse_setup.mi s, I believe this is XNA Game studio Express. It asks me to
Install the Visual C# 2005 Express Edition SP 1. But I cannot install the
SP1. The window INstaller says "The upgrade patch cannnot be installed by
the
Windows installer service because the program to be usgraded may be
missing,
or the updrade patch may update a different version of the program. ...".
I
don't understand this error. I user VS 2005.

Thank you,

Aug 16 '07 #7
I wish I can just update my previous message. The previous error caused by
that I don't have C# 2005 Express on my computer. I cannot install the
Visual C# 2005 Express. It conplains about BIT setting. I checkec it. It is
right. It is started and the type is manual.
Aug 17 '07 #8
Yes, you are right. I installed every thing on my home computer. they work
fine.
Thank you,

Aug 17 '07 #9

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

Similar topics

0
3175
by: Zero | last post by:
A B C D E Date Open High Low Close Chart = (Excel._Chart)oWB.Charts.Add(missing,missing,missing,missing); Chart.HasLegend = false; Chart.ChartWizard( DMISheet.get_Range("A1", "E201" ), Excel.XlChartType.xlStockOHLC, Missing.Value, Excel.XlRowCol.xlColumns, Missing.Value,
0
1141
by: Zero | last post by:
1. how to draw two type of chart in same chart candlechart and line chart 2. how to custom x axis? 2. how to custom y axis in right side and left side?
3
1867
by: kamal anand | last post by:
Hi if i say public void AfterFinalRender(object sender, Microsoft.Office.Interop. OWC10.IChartEvents_AfterFinalRenderEvent e) { --------- --------- }
3
4508
by: Bon | last post by:
Hello All I want to draw my own pie chart in MS Access 2000 form. Could anyone tell me where I can find information or sample code on doing it? Cheers Bon
1
3254
by: dnguyen | last post by:
Hi, I want to know what is the perl code to draw a chart in x and y by using two dimensional arrays. x from 0 to 5 y from 0 to 10 i want to draw 11 lines like this:
0
2884
by: benfly08 | last post by:
Hi, guys. I have a program to draw bar/pie chart based on the data i hard coded in it. However, my image comes with "BLACK" background color. I don't know how to fix this. The code snippet is below: chartGenerator.vb class: Imports System.Drawing.Imaging Public Class chartGenerator Private myImage As Bitmap
4
6079
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I want to draw line chart on the web using visual basic 2005, vb 2005 doesn't have chart components, so can anyone point out where I can start working this? Thanks, Ma
3
2143
by: rengaraj | last post by:
Dear Experts, I want to read a text file containing values. From these text values, an Excel chart has to be drawn. I read the file contents and hold in buffer but how to put values into an Excel sheet to draw the chart? (All operations should be done through program not through manual intervention). Please advise, Rengaraj.R
0
1599
by: sejal17 | last post by:
Hello, Every one i am trying to draw chart using web chart , its working fine in my local pc but when i am uploading this application on server i am getting Error like , System.Application.Exception : Error while rendering the chart --->system.Runtime.InteropServices.ExternalException : A generic error ouccurred in GDI+ at System.Drawing.Image.Save(String Filename,Imagecodeinfo encoder,EncoderParameters encoderparams) at...
0
10323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10311
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.