> Hi Rooters,
>
> i wanted to make a nice picture of an rendered ellipsoid. So i tried to make a
> TSPHE object and use SetEllipse get the deformation. It seems that is works ok -
> but only the x3d view shows the expected deformation?
I guess any view shows that deformation. To prove that try to add the 3D axice.
You should realize the scale along X-Y-Z became different.
That's why you can not see that by eye with TPad / TPostscipt but still can
via OpenGL and X3D views.
To get what you want you should set one and the same scale for all TPad directions.
In STAR (http://www.star.bnl.gov) we used to apply the macro:
http://www.star.bnl.gov/STAR/html/comp_l/root/html/examples/PadControlPanel.C.html
with method AdjustScales() to adjust scales:
static void AdjustScales()
{
TVirtualPad *thisPad = gPad;
if (thisPad) {
TView *view = thisPad->GetView();
if (!view) return;
Double_t min[3],max[3];
view->GetRange(min,max);
int i;
Double_t maxSide = 0;
// Find the largest side
for (i=0;i<3; i++) maxSide = TMath::Max(maxSide,max[i]-min[i]);
file://Adjust scales:
for (i=0;i<3; i++) max[i] += maxSide - (max[i]-min[i]);
view->SetRange(min,max);
thisPad->Modified();
thisPad->Update();
}
Hope this helps,
Valery
> And whene i say "save as canvas.eps" i just get the wireframe view - even if i
> use a different material?
> Is there an easy way to produce the ellipsoid i imagine or is there some more
> tutorial about rendered 3d objects?
>
> Raimund
> --
> Raimund Kammering, Uni Bremen, NW1
> mailto:kammer@physik.uni-bremen.de
> http://www-nuclear.physik.uni-bremen.de/~kammer
>
>
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET