[pstricks] Error using pst-light3d.tex

John Culleton john at wexfordpress.com
Mon May 12 21:21:36 CEST 2008


On Monday 12 May 2008 02:17:09 pm Herbert Voss wrote:
> John Culleton schrieb:
> > I have one additional question: In my example I changed the fill
> > color from gold to red. The 3d color is still gold.   I presume
> > the 3d color is set by the PostScript code string:
> >
> > LightThreeDColorPsCommand=%
> >  1.2 div 0.15 exch 0.7 exch sethsbcolor]
> >
> > Is there a way to set this color more directly to red? Failing
> > that is there guidance on selecting a particular hsb color?
>
> try
> LightThreeDColorPsCommand= 1 0 0 setrgbcolor
>
Unfortunately that blows up. I tried variants like expressing the rgb 
code in hexadecimal, adding the word "exch"  etc.  Here is the file 
that doesn't currently work:

\input pstricks
\input pst-light3d.tex
\font\Rmb ptmr8r at 40pt
 \PstLightThreeDText[linestyle=none,fillstyle=solid,fillcolor=red,%
LightThreeDColorPsCommand=1 0 0 setrgbcolor]%
{\Rmb Scribus}
\bye
------------------------------
...and here is the error code from gv working on cull.ps:
ERROR: /typecheck in --charpath--
Operand stack:
   -7   (Scrib)   0.0990187   0.139864   0.187198   0.240419   
0.299002   0.362423   0.430058   0.501012   0.575081   0.650816   
0.728168   0.806018   0.884198   0.961656   1.0392   1.11893   
1.19976   1.28068   1.36065   1.43862   1.51351   1.58438   1.65048   
1.71107   1.76575   1.81421   1.85638   1.89234   1.92232   1.94665   
1.96574   1.98009   1.99016   1.99648   1.99954   1.9998   1.99769   
1.99363   1.98796   1.981   1.97303   1.96428   1.95499   1.94531   
1.93538   1.92537   1.91532   1.90537   1.89557   1.88596   1.87659   
1.86751   1.85874   1.85031   1.8403   1.85199   1.86389   1.87597   
1.88814   1.90036   1.91253   1.92455   1.93632   1.94767   1.95847   
1.96852   1.97762   1.98554   1.99202   1.99678   1.99949   1.99983   
1.99743   1.99194   1.98298   1.97016   1.95319   1.93166   1.9054   
1.8741   1.83778   1.79625   1.74979   1.69834   1.64252   1.58258   
1.51923   1.45274   1.38436   1.31417   1.24353   1.17261   1.10274   
1.03376   0.956798   0.870281   0.784509   0.700176   0.618142   
0.539089   0.463707   0.392616   0.326378   0.26551   0.21035   
0.161301   0.118532   0.0822787   0.0851936   0.115622   0.149435   
0.187161   0.227442   0.271045   0.316669   0.365069   0.41505   
0.467404   0.520633   0.57567   0.631404   0.688432   0.745766   
0.804209   0.861824   1.0   1.71183   1.73245   1.75339   1.77457   
1.79587   1.81721   1.83844   1.8594   1.87989   1.89973   1.91865   
1.93641   1.95268   1.96716   1.97947   1.98925   1.9961   1.99961   
1.99939   1.99504   1.98618   1.97252   1.95377   1.92971   1.90031   
1.8655   1.82543   1.78029   1.7304   1.67624   1.61828   1.55714   
1.49348   1.4279   1.36118   1.2939   1.22669   1.16021   1.09494   
1.03106   0.96838   0.90433   0.839569   0.774312   0.708981   
0.643845   0.579359   0.515864   0.453866   0.39379   0.336113   
0.281373   0.230037   0.182654   0.139699   0.101697   0.0691081   
0.0423387   0.0218484   0.00792599   0.000885069   0.000907958   
0.00811869   0.022592   0.0442269   0.072912   0.0724435   0.0565237   
0.0425721   0.0306347   0.020625   0.0126528   0.00661069   
0.00255257   0.000393152   0.000108123   0.00165278   0.00492996   
0.0107465   0.0167903   0.0241076   0.0326704   0.0424474   0.0534049   
0.0655178   0.0787604   0.0930993   0.108503   0.124982   0.142471   
0.160977   0.180462   0.200922   0.222339   0.244676   0.267934   
0.292111   0.317132   0.343091   0.369828   0.397477   0.425941   
0.455206   0.485271   0.51616   0.547757   0.580189   0.613296   
0.647162   0.681716   0.716961   0.752826   0.789384   0.826464   
0.86418   0.902389   0.9411   0.980276   1.01242   1.03686   1.06076   
1.08413   1.10699   1.12933   1.15117   1.17252   1.19338   1.21377   
1.23369   1.25319   1.27223   1.29085   1.30905   1.32683   1.34426   
1.36126   1.37791   1.39422   1.41014   1.42575   1.44102   1.45598   
1.47058   1.48498   1.49896   1.51276   1.52622   1.53948   1.55239   
1.56511   1.57751   1.58982   1.60177   1.61352   1.62512   1.6364   
1.64752   1.65846   1.76304   1.75079   1.73835   1.72581   1.71309   
1.70029   1.68729   1.67415   1.66087   1.64741   1.63373   1.61994   
1.60593   1.59165   1.57718   1.56245   1.54747   1.53212   1.51654   
1.50057   1.48419   1.46746   1.45017   1.43252   1.4142   1.39543   
1.37585   1.35561   1.33464   1.31279   1.28987   1.26601   1.24093   
1.2146   1.18683   1.15742   1.12619   1.09305   1.05775   1.01988   
0.967223   0.900005   0.830876   0.760273   0.688683   0.616827   
0.545347   0.475046   0.406731   0.341345   0.279691   0.222642   
0.171033   0.12541   0.0864701   0.0545491   0.029962   0.0127575   
0.00284791   2.88486e-05   0.00393689   0.014146   0.0299861   
0.0511271   0.0765234   0.999997   1.22879   0.189225   0.184874   
0.18024   0.175361   0.170199   0.164765   0.159091   0.153104   
0.146908   0.140452   0.133798   0.126859   0.119787   0.112533   
0.105132   0.0976247   0.0900844   0.0824986   0.0682542   0.0524284   
0.0385957   0.026718   0.0170027   0.00938487   0.00397265   
0.000844121   2.37226e-05   0.00156248   0.00542891   0.0104806   
0.0160172   0.0226984   0.0305281   0.0394897   0.0495706   0.0607688   
0.0730662   0.0864628   0.100942   0.116498   0.133129   0.150797   
0.169524   0.189275   0.210071   0.23186   0.254679   0.2785   
0.303255   0.329011   0.355761   0.383437   0.411995   0.441559   
0.471949   0.503314   0.53542   0.568526   0.602299   0.637053   
0.672373   0.708655   0.745467   0.783075   0.821259   0.860151   
0.899411   0.939397   0.979655   1.02788   1.08351   1.13878   
1.19355   1.24773   1.30122   1.3539   1.40571   1.45652   1.50623   
1.55472   1.60189   1.6476   1.69168   1.73399   1.77432   1.81243   
1.84811   1.88104   1.91085   1.93724   1.95968   1.97774   1.99085   
1.99839   1.9997   1.99408   1.98072   1.95898   1.92793   1.88715   
1.83561   1.77362   1.69997   1.61598   1.52092   1.41679   1.30419   
1.18565   1.06204   0.952512   0.858297   0.765662   0.675879   
0.58971   0.50793   0.431344   0.36016   0.294963   0.236202   
0.183872   0.138166   0.0991596   0.0977377   0.133432   0.173361   
0.216719   0.263404   0.312402   0.363886   0.416763   0.471173   
0.526581   0.582511   0.639008   0.695647   0.752057   0.808203   
0.863827   0.919023   0.973181   1.02791   1.08443   1.14158   
1.19925   1.25723   1.3153   1.37324   1.4308   1.48772   1.54366   
1.59831   1.65134   1.70232   1.7509   1.79654   1.83888   1.87739   
1.91153   1.94088   1.96488   1.98301   1.99482   1.99984   1.99769   
1.98803   1.9706   1.94525   1.91196   1.87074   1.82189   1.76572   
1.70261   1.63344   1.55857   1.47916   1.39583   1.30976   1.22174   
1.13294   1.044   0.978604   0.934001   0.88706   0.837932   0.786831   
0.734132   0.680131   0.625257   0.570094   0.515085   0.460817   
0.407882   0.356849   0.308198   0.262488   0.22011   0.181362   
0.146473   0.115583   0.088712   0.0659078   0.046885   0.0315596   
0.0196097   0.0108272   0.00482237   0.00133741   2.68221e-05   
0.000596464   0.00275487   0.00621492   0.0107816   0.0161094   
0.0221685   0.0286713   0.035501   0.0424117   0.0496129   0.0565802   
0.0636722   1.94263   0.415673   0.413668   0.411559   0.409294   
0.406915   0.404389   0.401768   0.398999   0.39612   0.393098   
0.389999   0.386774   0.383432   0.380041   0.37655   0.372971   
0.36937   0.365693   0.361959   0.358216   0.354519   0.35067   
0.34699   0.343253   0.339586   0.335904   0.332402   0.328732   
0.325453   0.321993   0.318861   0.315651   0.312666   0.309672   
0.306961   0.304131   0.301738   0.299236   0.296966   0.294722   
1.68454   1.0   0.0631731   0.0584642   0.0535149   0.0484005   
0.0430921   0.0377008   0.03224   0.0268147   0.0215021   0.0164155   
0.011695   0.00750446   0.0040186   0.0014872   0.000141263   
0.000276029   0.00222415   0.00631779   0.012947   0.0225508   
0.0355021   0.0521883   0.073027   0.0983787   0.128447   0.163435   
0.203468   0.248255   0.297856   0.351589   0.409189   0.469802   
0.532779   0.59722   0.662485   0.727474   0.791614   0.854106   
0.914606   0.972172   1.02954   1.08984   1.15167   1.21465   1.2786   
1.34312   1.40783   1.47223   1.53585   1.59814   1.65834   1.71589   
1.77011   1.82015   1.86537   1.90503   1.93854   1.96522   1.98463   
1.99629   1.99999   1.99558   1.98312   1.96265   1.93477   1.89942   
1.85769   1.80975   1.75692   1.69898   1.63809   1.57337   1.50711   
1.43909   1.37037   1.30098   1.23204   1.16404   1.09782   1.03147   
0.973086   0.917913   0.861532   0.803921   0.745094   0.685652   
0.625509   0.565362   0.505417   0.445932   0.387758   0.331242   
0.276989   0.225518   0.177761   0.134372   0.0956701   0.08706   
0.109249   0.134474   0.163657   0.196541   0.234832   0.277937   
0.327511   0.384072   0.449322   0.522882   0.607795   0.703789   
0.812705   0.934482   1.0   1.01543   1.04904   1.08686   1.12908   
1.17608   1.22784   1.28486   1.34654   1.41303   1.48338   1.55692   
1.6319   1.70668   1.77855   1.84487   1.90257   1.94883   1.98114   
1.99778   1.99815   1.98263   1.95277   1.91066   1.85915   1.80082   
1.73867   1.67455   1.61087   1.54855   1.48922   1.43322   1.38076   
1.33261   1.28828   1.24816   1.21144   1.17876   1.14897   1.12275   
1.09898   1.0   0.632387   0.622296   0.609797   0.594688   0.57663   
0.5554   0.530684   0.502252   0.469854   0.433385   0.392788   
0.348277   0.300264   0.249668   0.197736   0.146335   0.0980021   
0.0559665   0.0234439   0.0040887   0.000843763   0.0156188   
0.0485988   1.0   1.00598   1.01999   1.03717   1.0579   1.08277   
1.11199   1.1463   1.18593   1.23153   1.28348   1.34185   1.40695   
1.47818   1.55462   1.63472   1.71579   1.79447   1.86636   1.92669   
1.971   1.99555   1.99858   1.98026   1.94292   1.89022   1.82694   
1.75715   1.68536   1.61436   1.54655   1.48359   1.42598   1.37443   
1.32851   1.28865   1.25383   1.2243   1.19892   1.17808   1.16061   
0.999951   0.875231   0.857016   0.835208   0.809433   0.779234   
0.744265   0.704112   0.658476   0.607072   0.549872   0.487205   
0.419647   0.348514   0.275792   0.20413   0.13721   0.0793279   
0.0347026   0.00742334   0.000284433   0.0143409   0.0487547   
0.370123   1.98748   1.03952   1.11848   1.19669   1.27362   1.34876   
1.42156   1.49159   1.55842   1.62156   1.68077   1.73574   1.78593   
1.83143   1.87177   1.90686   1.93654   1.96064   1.97907   1.99179   
1.99867   1.99969   1.99484   1.98417   1.96755   1.9452   1.91706   
1.88353   1.84393   1.79983   1.74965   1.6954   1.63585   1.57231   
1.50444   1.43387   1.35883   1.28224   1.20263   1.12314   1.04072   
0.960372   0.880995   0.801941   0.723973   0.647666   0.573589   
0.501969   0.433936   0.369241   0.309018   0.253151   0.202244   
0.156602   0.116477   0.0820108   0.061044   0.0377593   0.0200683   
0.00787276   0.00129837   0.000294864   0.00490183   0.0151769   
0.0310616   0.0525404   0.0794972   0.112208   0.150092   0.193648   
0.242172   0.295904   0.354432   0.417621   0.48503   0.556752   
0.631606   0.709906   0.790606   0.873503   0.957633   2.0   
0.0554931   0.0358987   0.0207552   0.00986731   0.00306529   
0.000144482   0.000931561   0.00523597   0.0129071   0.0237656   
0.0376715   0.05447   0.0740768   0.0962303   0.121097   0.148249   
0.177851   0.209767   0.2438   0.279831   0.318196   0.358328   
0.400566   0.444495   0.490391   0.537851   0.587268   0.637876   
0.690304   0.743927   0.799068   0.855218   0.912562   0.970626   
1.04703   1.14117   1.23435   1.3255   1.41363   1.49778   1.57706   
1.65074   1.71819   1.77888   1.83243   1.87861   1.91726   1.94837   
1.97201   1.98832   1.99754   1.99994   1.99582   1.98553   1.96947   
1.94799   1.92147   1.89024   1.85487   1.81536   1.77252   1.7263   
1.67741   1.62557   1.57192   1.51606   1.4586   1.39953   1.33968   
1.27863   1.21722   1.15497   1.09297   1.03086   0.964348   0.892795   
0.821489   0.750797   0.681047   0.612742   0.546208   0.481898   
0.420133   0.361308   0.305737   0.253869   0.20598   0.162341   
0.123363   0.0892473   0.487458   0.486067   0.48502   0.483859   
0.482528   0.481051   0.479396   0.477612   0.475647   0.473551   
0.471271   0.468806   0.466245   0.463447   0.460562   0.457539   
0.454327   0.451021   0.447605   0.444025   0.440419   0.436773   
0.4329   0.429116   0.42523   0.421429   0.417395   0.413635   
0.409677   0.405887   0.402092   0.398324   0.394705   0.391233   
0.387548   0.38443   0.380877   0.378014   0.374795   0.372004   
0.36901   1.68448   1.01949   1.08911   1.26205   1.42217   1.56395   
1.68493   1.78386   1.86138   1.91934   1.95968   1.98495   1.99755   
1.99965   1.9932   1.97988   1.96106   1.93784   1.91119   1.88178   
1.85026   1.81707   1.78251   1.74698   1.71047   1.67339   1.63554   
1.59739   1.55878   1.51979   1.48039   1.44058   1.40046   1.3599   
1.31915   1.27786   1.23624   1.1942   1.15171   1.10892   1.06568   
1.02182   0.96065   0.88013   0.797813   0.714426   0.630889   
0.548187   0.467458   0.389823   0.316526   0.248697   0.187491   
0.133854   0.0886084   0.0523913   0.0255806   0.00832504   
0.000539064   0.00191122   0.0119573   0.0300469   0.0553127   
0.104396   0.148522   0.200601   0.263264   0.333851   0.415258   
0.504084   0.603818   0.709249   0.823052   0.939293   1.02362   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   
2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   
false   1   %stopped_push   1   3   %oparray_pop   1   
3   %oparray_pop   1   3   %oparray_pop   1   
3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   
2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1123/1686(ro)(G)--   --dict:0/20(G)--   --dict:111/200
(L)--   --dict:102/300(L)--   --dict:32/40(L)--
Current allocation mode is local
ESP Ghostscript 815.04: Unrecoverable error, exit code 1




 BTW the root cause of my original problem was possibly a defective 
pst-light3d.tex in the texlive 2007 distro.  You might want to look 
at the first few lines. They are different.
---


  

-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm



More information about the PSTricks mailing list