realbasic-games
[Top] [All Lists]

Re: Input Field in an RB3D Space

To: realbasic-games at lists dot realsoftware dot com
Subject: Re: Input Field in an RB3D Space
From: "Lars Jensen" <larsjensen at gmail dot com>
Date: Wed, 1 Nov 2006 11:04:57 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aTlM82/Gfp7gfBCXYKD233HtXv490FwWjpl23f33GmcQ1lXubF6DQjf0jyW+jNRtjKNA5gM/wdK63GMCz51J73MxkQlylnsbWpjPUfPPB15VYs8XCT7026W7OAQ+BkTtztIowP7Pq5gYH9RhWdxxE/GgzcRTWRU6R+h3MDg6lWg=
I'm writing a game that requires input within the RB3D space. For
example a chat input or a name input. Does anyone think this is
possible?

Of course, but not using a standard EditField. RB3D doesn't support
"normal" controls overlapping the RB3DSpace control. (You might have
success trying this on one machine, only to find that it fails
miserably on other machines/platforms.)

So if you must have this interaction take place in the RB3DSpace
control, your only reliable option is to create a 3D object that the
user can interact with in the same way as an EditField (or whatever
subset of that interaction is important to you).

One approach is to create 3D letters and have them floating in space,
along with a 3D flashing cursor, maybe even a 3D frame for them to sit
in. Another approach is to render the control as an image, and then
place that image as a texture onto a 3D object that basically consists
of a flat square floating in space.

In either case, you'd have to consider whether you wanted to support
non-English languages, other character sets, right-to-left scripts,
copy/paste, etc.

It would be some work, but on the other hand you could do some cool
effects with it that are impossible to do with a regular editField.
Some possibilities that come to mind: exploding characters as you
delete, or when you hit OK, the edit field tumbles out of view,
perhaps flying like a missile to the 3D character who is about to be
renamed.

lj
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>