[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Graphical Plotting Help Needed for Windows...
From: |
Martin Helm |
Subject: |
Re: Graphical Plotting Help Needed for Windows... |
Date: |
Wed, 23 Dec 2009 01:02:42 +0100 |
Am Mittwoch, den 23.12.2009, 00:12 +0100 schrieb David Bateman:
> martin_helm wrote:
> >
> > You can fake a little bit the light functionality of jhandles with fltk by
> > defining yourself a function which calculates the shading
>
> What makes you think this is specific to fltk. Your code works fine in
> gnuplot, though slowly.. in fact vvveerrrryyy ssslllowwwllllyyyy
>
> D.
The reason I only mentioned fltk is I also tried gnuplot (on my linux
pc) and saw that it is too slow for a reasonable number of triangles
(but works).
Btw there is a little bug the last line of calc_cdata
instead of
+ spec*specular(normals(:,1), normals(:,2), normals(:,3), lvec, vvec);
it should be
+ spec*specular(normals(:,1), normals(:,2), normals(:,3), lvec, vvec,
shine);
otherwise the specular exponent has no effect.
- mh