Director shortcomings; Rev/altBrowser the solution?

jbv jbv.silences at Club-Internet.fr
Mon Sep 20 12:37:11 EDT 2004



Stephen,

Thanks, I have a better understanding of the requirements of
your project.
Opinions may vary, but I for one would suggest to keep that
project within a single development environment as much as
possible. I know it is tempting to try to catch the best of various
tools and integrate them into one single entity, but I also know
that complex projects can be difficult to maintain, and even more
difficult in an heterogenous environment...
Last but not least, passing data from the browser window to Rev
might lead to some headaches (unless this is implemented in
AltBrowser, but I don't think so).

Therefore, I would strongly suggest to choose Rev.
This would give you full X-platform compatibility, something
you won't get with AltBrowser.
Of course, handling sophisticated layouts with XHTML is tempting,
but are you sure those layouts can't be handled within Rev ?
I'm asking because I am completing a spreadsheet-like interface
for a client with Rev, and in less than 2 days I managed to get a
table with rows & columns headers, with possibility to modify
width & height of rows & cols (in a more sophisticated way than
in Excel), with portions of the table split in 4 sections across the screen
(like in Excel), automatic resizing, scrolling, etc... So having tables
with cells colours shouldn't be too difficult.
The "group" control should help you handling captions associated
to graphics. Building scrollbars in Rev is a piece of cake. As for
headings & paragraph styles, I'm not sure because I haven't worked
on these things much, but I have a large experience of HTML coding,
and IMHO the limitations of HTML shouldn't be too difficult to
reproduce... Of course, if your style include japanese, arabic or
chinese fonts, things could become somewhat less easy...
As for parsing XML and building complex layouts on the fly, I'm
sure Rev is fast & powerful enough to handle this task.

The biggest problem you'll face with Rev is the integration of
interactive 3D. This has been already discussed here, and although
some ppl consider this discussion "groundless", I keep thinking that
setting up a simple "bridge" between Rev and openGL through an
external is the most cost effective and productive solution.
Just like Rev, openGL runs on many platforms. C programers with
openGL skills are legions, so you shouldn't have any problem finding
one. As for the external bridging the gap between Rev and openGL,
I've been able to do it for Mac & Windows by simply modifying a
few lines in the external example that comes with Rev. So if I was
able to do it, then almost anybody can do it.
OTOH, if your 3D anims are pre-computed (don't need to be modified
in realtime) and only need to "react" to users' actions through hotspots
and simple operations such as rotate, translate, zoom (...), then you
probably can skip the openGL part, and simply use QT3D movies
(made in a 3D software), and embed them in your Rev stacks through
QT for Windows...

Hope that helps,
JB

> JB:
>
> >Before answering your question, I guess a few more details
> are needed. Especially, I don't really understand why you
> need to embed a browser within a Director window ...
>
> Considering the amount of formatting required for the text and the length of
> the text documents (scrolling will definitely be required), the only ideal
> solution I can see is HTML/XHTML. While Director and Flash do have some text
> formatting and XML capabilities, I can't see either of them even coming
> close to what we can do with XHTML. Note that formatting includes tables
> with various cell colours, a dozen heading and paragraph styles (don't ask),
> graphics, and captions layered on top of graphics (not embedded in the
> graphic).
>
> >...and where does the HTML file comes from ? Is the HTML code generated on
> the fly from the XML, and is the browser window used to navigate between
> successive screens, or different frames of the Director stage?
>
> Yes the HTML will be generated on the fly from the XML file. A static page
> will be generated when the user clicks a link or selects an option on the
> Rev/Director interface (this page will automatically update when we update
> the XML file). A dynamic XHTML page based on XML data will also be generated
> when the user does a search.
>
> The browser window will not include any controls. Links will allow users to
> jump from one page to another (between sections, for example).
>
> A lot of the functionality will depend on what the technology can do so we
> may want the ability to pass information from the browser window to Rev or
> Director. Not sure about that, though.
>
> Thanks!
>
> Steve
>
> > Folks:
> >
> > Here (according to our Director developer) is the rundown on where
> Director
> > is apparently falling short when it comes to developing the product we
> need.
> > Can anyone tell me if Rev can solve these problems or if we're overlooking
> > something in Director?
> >
> > ------
> > Dynamic population of drop down boxes with multiple language types.
> > For example, I would like to have an external (maybe XML) list of language
> > names, all using their appropriate font set. I would like to have a drop
> > down box that's on the stage to gather all elements from the external file
> > to populate the drop down. Each element in the drop down would be a
> > separately executable when selected.
> > Browser Interaction-
> > Embedding a browser within a Director window. The purpose of this browser,
> > would be to seamlessly integrate into the Director stage and interpret an
> > HTML file properly (including multiple language support).
> > This embedded browser could have external Director controls that would
> > print, navigate this HTML file.
> > Also, a director search box could be embedded into the Director
> environment
> > and allow for user searching of web pages...
> > 3 D model control
> > To be able to have full control over a 3 D model (rotate, pan, zoom), and
> > embed hotspots on particular sections of the model. I would like to be
> able
> > to click on a spot to navigate to another area of the score within the
> > Director environment, and/or launch an external browser or an embedded
> > browser.
> > ------
> > Just to recap the complexity of this project:
> > The project will deal with very large amounts of text. The text needs to
> be
> > formatted with many different styles and includes detailed tables and
> > graphics with captions. The text will originate from an XML file, needs to
> > be searchable, and be displayed in multiple languages. All languages will
> be
> > included in the project and users should be able to switch from one to the
> > other seamlessly. All drop-down boxes and interface elements will need to
> > change on the fly when the user selects a new language. Dynamic text based
> > on user search strings must be generated. Users must be able to print the
> > content of windows (even windows holding dynamic content.) To cap it, the
> > project must interact with the user's system for base technology checks
> and
> > a few other things.
> > We've looked at many different solutions. From what we can tell, the best
> > way to do this consistently and effectively is through an embedded browser
> > window and use XHTML/HTML to handle the formatting and unicode. An
> > additional benefit is that we will be able to handle pdfs if we use a
> > browser.
> > For this project, Director may not work because of the problems mentioned
> > above. Flash will not work because it's inability to handle large amounts
> of
> > formatted text. iShell may work but it's ability to work with the
> operating
> > system seems limited.
> > So, can anyone tell me if the Rev/altBrowser combination is the best way
> to
> > go with this? Are we missing something in Director? Ideally, we'd like to
> > have absolutely everything handled from within the app but I don't think
> > this is possible.
> > Any help would be really appreciated. I've been banging my head against
> the
> > wall looking for decent solution for some time now.
> > Steve
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list