Answering my own question -- I was able to create a QC for a
3d pie chart -- which can be rotated etc.
I am having some issues in this though..
I have attached an image of the pie chart. As you can see there
is a gap running through the complete circle -- (Brown and orange
sections in the current orientation)
First a small description on how i created the pie chart --
QC Accepts a structure which contains the various slices
and the angles. (in this example there are 4 slices each with 90
degrees)
I have various colored rectangle images. Using an
iterator which has a "replicate in space" that has a 3D
transformation -- i replicate each image by the rotation angle.
So basically what we are seeing is various colored
rectangles being replicated across the central axis.
The number of copies by which it needs to be replicated is
something that i had to do some trial and error --- I figured that a
total of 4000 replications brings an illusion of a dense pie. So for
each slice, i proportionally compute the number of replications.
I tried increasing the total replications to 5000, 10000 etc
-- the performance of the trackball patch became very poor, but there
was no change in the issue that we are seeing.
Any reasons why the replication of copies is not happening in a
linear fashion? Why is this happening only at that place? If i rotate
the pie -- the gap remains at the same place. i.e the yellow and red
color will show the gap.?
Another question -- Is this the best way to go about building a
pie chart? Any other suggestions?
Another question :) -- I want the texture of each slice to be
metallic, with a smooth shading and be able to reflect light. Any
suggestions on how I can achieve that?
Since the QC file is a bit large, i can send it directly to
anybody who is willing to look at it?
Regards,
Murrthy
On Aug 12, 2005, at 10:28 AM, Murthy Parthasarathi wrote:
Hi All,
I have a requirement to create some 3D pie charts at run time
based on some application data.
Looking at the chart example in Quartz composer, I was inspired
to implement the pie charts too in a similar fashion.
Any pointers on how to proceed in creating the pie charts using
quartz composer? The vision is to have a cheese cake like looking
pie chart - with rounded edges, smooth textures etc.
Regards,
Murthy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden
This email sent to email@hidden