Raul,
In addition to being able to command the turtles
interactively from the .ijx window or from stored verbs, I
want to be able to transform the whole scene with keystrokes
as I was trying to do with the Lorenz curve. Transforming
the whole scence after it is at rest (it is not at rest
during a simulation), begs for calllists so as not to need
to render again.
In particular my system moves multiple turtles
around in the J manor of controlling them with a vector of
movement parameters. With this design I want the multiple
turtles to appear to move simultaneously although the openGL
requires me to apply the transformations one at a time in a
loop. If I do a paint after each turtle is transformed with
openGL, the simulation would look choppy. So I need a paint
which does NOT include an alloc sometimes and I need an
initial paint which does include alloc. A less important
issue is that in this case I think I need a paint with
draw_keep always but gsfini, which is usually part of paint,
includes draw.
The earlier genlists is different from gsgenlists
and I am asking for a reversion to genlists which by
refering to the distinct objects as atoms in LISTS can
facilitate the global transformation mentioned above.
gsgenlist=: 3 : 0
r=. 5001 while. glIsList r do. r=. >:r end.
)
genlist=: 3 : 0
bgn=. >:>./LISTS,0
if. 2 = 3!:0 y. do.
nms=. ;: y.
r=. bgn + i.#nms
(nms)=: r
else.
r=. bgn + i.y.
end.
LISTS=: LISTS,r
r
)
On Tue, 2 May 2006, Miller, Raul D wrote:
+ There are basically two ways of using lists:
+
+ (1) As common elements across multiple renders (which seems
+ to be what you are talking about here). For these, you
+ should run genlists immediately after alloc.
+
+ (2) As reusable elements within a scene. For these, you're
+ generating them on the fly already.
+
+ So there doesn't seem to be any design reasons for this
+ approach.
+
+ (However, I do understand that backwards compatibility is
+ generally a good thing.)
+
+ --
+ Raul
+
+ ----------------------------------------------------------------------
+ For information about J forums see http://www.jsoftware.com/forums.htm
+
(B=) <----------my "sig"
Brian Schott
Atlanta, GA, USA
schott DOT bee are eye eh en AT gee em ae eye el DOT com
http://schott.selfip.net/~brian/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm