Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: Do Jul 17, 2025 07:31

Foren-Übersicht » Programmierung » OpenGL
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 6 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Open gl pie component
BeitragVerfasst: Mo Dez 27, 2004 06:42 
Offline
DGL Member

Registriert: Mo Dez 27, 2004 06:34
Beiträge: 2
Hi, sorry for using english, but Its been more than 12 years since I used any german(not that I was proficient anyway;-)

I would like to ask if anyone knows of a component that can create pie charts with the following features
3d with effects like glass
beveled
ability to have regions (ie 20% in blue 80% in red)
ability to have overlapping regions

thanks in advance.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Dez 27, 2004 10:50 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Aug 28, 2002 19:27
Beiträge: 568
Wohnort: Chemnitz / Sachsen
@english : not a problem, we all (well most of us) can understand some english *g*

@problem: well i dont know a component like this (have you searched torry and so on???) but it shouldnt be so hard to do it by yourself, or ???

_________________
Aktuelles Projekt :
www.PicPlace.de


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mo Dez 27, 2004 12:58 
Offline
Guitar Hero
Benutzeravatar

Registriert: Do Sep 25, 2003 15:56
Beiträge: 7810
Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
When you want to do it with OpenGL you should look for gluPartialDisk. This will help you create your regions. The whole pie itself is your job. You must rotate the regions like you need it.

Glass: refraction is not that easy. But trasparent surfaces can be easy done (by blending in OpenGL).

Beveld: Again....handcraft.

Have you ever uses OpenGL before? For me it sounds a bit like you need a piechart (right word?) for an essay or paper? So handcraft whould be to much work for that... So maybe Torry should be your first choice.

_________________
Blog: kevin-fleischer.de und fbaingermany.com


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Dez 28, 2004 01:32 
Offline
DGL Member

Registriert: Mo Dez 27, 2004 06:34
Beiträge: 2
it is not for an essay or something;-)
I have an application skinned with suipack, and it has a percentage of job done.

I gave a look to various components and nothing is as ellegant as I would like.

I do not know anything about coding graphics, basically I have been using delphi for 1 year now,
I used to code in *nix mostly C/C++, perl etc and found Kylix 2 years ago, and from that I switched to delphi,
since I had some experience from pascal many many years ago;-)

My problem is that I have no experience in coding gui's or anything with graphics;-)

what I thought was to have an image of the pie and "blank" the parts of the image that are not needed;-)
but when I tried that it wasnt looking any good, mostly because the alpha blending. thats is when I thought
of using directx or opengl.

btw is it possible to have a 3ds file of the pie and use opengl to render it on screen? I would need to be able to control
the regions of the file that appears everytime.

also does a 3ds file include the texture etc? is there anyone interested to create a 3ds file for me (I will pay him of course)
with a nice pie;-)))????

I assume that 3ds is a standard that is why I sugested this, if you think I should use some other file type that is
understood by opengl as native I wouldnt mind of course

thank you in advance for your help


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Dez 28, 2004 11:44 
Offline
DGL Member
Benutzeravatar

Registriert: Mi Aug 28, 2002 19:27
Beiträge: 568
Wohnort: Chemnitz / Sachsen
first : you can load a 3ds file into opengl (search the forum for the gl3ds unit, thats a very good loader).
second : textures are not packed into the 3ds file, they have to be in another directory to load them from there, but this is also done by the gl3ds loader *g*

third : hmmm if you haven't any experiences with graphics then i could be hard to do but you can try. for that look at the examples / tutorials on the site belonging to this forum (www.delphigl.com).
to render your pie you "only" *g* have to create to pieslices (which could by done with minimal mathknowledgement) and then add some alpha blending and some textures. nothing to difficult i think.

if you can please send a screenshot of your application here in the forum so that we / i can have a better imagination about what you want to do.

rswm

hopefully this answer could help you a little bit.

_________________
Aktuelles Projekt :
www.PicPlace.de


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Di Dez 28, 2004 23:41 
Offline
Guitar Hero
Benutzeravatar

Registriert: Do Sep 25, 2003 15:56
Beiträge: 7810
Wohnort: Sachsen - ERZ / C
Programmiersprache: Java (, Pascal)
Do you need the pie only one time? I guess no? When the size of the regions of your pie can change a 3DS Modell whouldn't help you. In this case you have to calculate the size yourself and then you must display it.

But when you just need it one time, you can render a picture in a program of your choice. There are several free programs like Blender or Cinema4D(Older Versions).

_________________
Blog: kevin-fleischer.de und fbaingermany.com


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 6 Beiträge ] 
Foren-Übersicht » Programmierung » OpenGL


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.014s | 17 Queries | GZIP : On ]