On Fri, 22 Dec 2006, Miller, Raul D wrote:

+ Brian Schott wrote:
+ > Question: Char
+ >     The key F4 is used in gldemo to snap the eye view
+ > back to the previously initialized position set by
+ > pressing F3. This works fine in opengl, but I have not
+ > found a way to detect the press of the F4 key so that
+
+ To detect F4, use an event handler like:
+
+ formid_f4_fkey=: 3 : 0
+  smoutput 'you hit f4'
+ )
+
+ Replace formid with the id of your form.
+
+ The form editor should support this from the "Code"
+ window (hit the fkey button).

        I think I understand, and will try that soon.

+
+ Question: Rotxyz
+ > ...
+
+ I'm not sure I understand this question.  Are you
+ asking "which variables store state information used
+ by the j,J,k,K,l and L keys"?  Or are you asking
+ "what opengl statements are used to apply that state
+ information to the rendered image?  Or, something
+ else?

        I mean I don't understand how I can make some
additions without disturbing the existing new globals and
flags. I also mean I don't know whether when the gldemo
keystroke makes the *objects* rotate around the axis, say
the x-axis, the tgsj turtle *eye* should be instructed to
move to a position perpendicular to the x-axis and in the
z-y plane and then use the existing extra code which
simulates the tgsj eye rotating around the origin. I am
concerned that that might break or conflict with the
existing extra code. It might conflict because the existing
code rotates the parameters in gluLookAt, while the actual
motion is controlled by gsrotate and the globals GS_ROTXYZ
and GS_ROTNDX.  So to go another route, which plays more on
gsrotate and the globals GS_ROTXYZ and GS_ROTNDX has a
certain appeal, but all those helper verbs underlying
gsrotate scare the devil out of me.

+
+ [p.s. please excuse me if I don't respond to further
+ messages in a timely fashion.  I'm about to drop off
+ the net till after Christmas.]

        Have a great respite. You need be excused. Thanks
for all your help.


+
+ --
+ Raul
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to