From: tom flynn (tflynnt2++at++yahoo.com)
Date: 03/18/2004 12:47:54
--- Dimi <christop++at++fhw.gr> wrote:
> I had a look at the source of perfly and did not see
> any key release
> code though :(
>
> Tha sad thing is that NONE of the Performer Team
> responded to ANY of my
> many questions
> regarding how to set up KEY-RELEASES or using any
> other Windowing system
>
> like GLUT or Win32 or Any other toolkit which would
> enable the user to
> decouple
> the input from performer and let performer just
> doing what it can best
> "RENDERING".
That is in fact what most of the samples do (look in
/usr/share/Performer/src/pguide/libpf/C/complex.c and
others). There is even a sample (motif.c) that
demonstrates how to tell performer to go render in a
window that you created, the rest of the application
takes input and creates menus etc all via Motif and
X11.
Performer does have some libraries to help make
application development easier (libpfui, libpfv, etc).
perfly uses libpfui for input, so that would not be a
good example of low level input. However, the
application would more portable between unix and
windows.
It sounds as though someone on this list does have
code that demonstrates what you want and is generous
enough to share it with you. I recommend having some
patience. There was another person who offered a
cross-platform solution via DIVERSE (iirc). Although,
if you demonstrate a lot of ungratefulness and
negativity, people have tendency to not help you if
they don't have to.
If you're not familiar with X11 programming, I
recommend picking up a copy of the XLib Programming
Manual (i believe it is volume I of the X books). I'd
give you the ISBN number, I don't have a copy on me
right now. Perhaps someone else does. If not, I'll
send it out when I get home tonight.
>
> Furhermore there are NO examples how to set up even
> a simple WIN32
> application
> in the Windows version of Performer.
I'll have to let someone on the pf team answer that
one...I could've sworn there was...but I don't know
where it is. I don't remember you specifying that you
were looking for Windows specific code in your post.
Windowing and Event handling are drastically different
between X11 and Windows.
>
> I have to admit that I get more support from the
> engine guys of many
> Freeware Scene Graph when
> asking in their corresponding mailing like the
> OpenSceneGraph,
> than asking here in the mailing of Performer list
In the replies to your email, you got one person
offering a cross-platform solution, and another
offering to share his code. I think that's pretty
nice of them and think it's pretty good short of
someone taking time out of their day to write your
code for you.
> which is supposed to
> be one of mostly available high performance
> SceneGraph engines
> for licensing.
> I expected more professional support for Performer
> users even if they
> don have any highly paid SUPPORT CONTRACT.
Perhaps you should state a little more clearly what
exactly you're looking for. The kind of question you
asked doesn't really require knowledge that can _only_
come from someone on the pf team. You got two replies
from other people offering to help you out. If sounds
pretty ungrateful to discount the help that they have
offered.
If you wanted someone specifically inside SGI to
immediately give a reply and perhaps give a sample of
the code your looking for, then perhaps you should
have a support contract. That's what they're for.
Oh and for what it's worth, if you look in GetXInput()
(which demonstrates how to get x input) in complex.c
and replace KeyPress with KeyRelease, you might get
what you want (though i don't have a machine i can
test it out on right now). Of course, that's assuming
you wanted X11 code. You didn't specify, and my
psychic powers don't work on thursdays.
hope that helps,
tom
>
>
>
> From: "Gordon Tomlinson"
> <Gordon.Tomlinson++at++warhammeronline.com>
> Date: Wed, 17 Mar 2004 15:43:01 -0000
> Subject: RE: [info-performer] keyboard in performer
>
> I would have to disagree I have old code based on
> perfly source that
> does detect and us keydown and key up event
>
> Maybe they changed the source, my code is over 5
> years old now ;), I'll
> see if I can dig out the relevant stuff over the
> weekend from my
> archived code
> s
>
>
-----------------------------------------------------------------------
> List Archives, Info, FAQ:
> http://www.sgi.com/software/performer/
> Open Development Project:
> http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests:
> info-performer-request++at++sgi.com
>
-----------------------------------------------------------------------
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
This archive was generated by hypermail 2b29 : Thu Mar 18 2004 - 12:52:46 PST