Hey Saurabh,
I think I've sorted the problems with MD2 example. There was an
invalid parameter being used on the JSAanimate command that was
stopping things from working.
If you try the example now, the keyboard controls should be fine when
in Manual mode. Remember that you'll need to click on the swf
somewhere to give it keyboard focus, otherwise, key strokes won't be
captured.
The main process is to add the following line in your setup method,
once you have a handle to the JSAway swf i.e. canvas :-
canvas.JSAregisterScriptEvent("onCurrentKeysPressed",
"JSAcurrentKeys");
where 'JSAcurrentKeys' is a javascript method which receives an array
of the currently pressed keys.
e.g.
function JSAcurrentKeys(keyCodes) {
if (keyCodes.indexOf(38)!=-1 || keyCodes.indexOf(40)!=-1) { // These
are the up/down cursor keys
ogreRunning = true;
}
}
Hope that sorts your problems.
Greg
On Nov 23, 10:32 am, Greg209 <[email protected]> wrote:
> Actually, to answer the questions....
> 1. 3DS should work but I will need to check.
> 2. There should be no problem in using the keyboard navigation - but
> the example is broke so I will need to investigate.
> 3. As JSAway currently (and has been for a long long time) is only
> flash player 9, all the benefits of the recent Away3D Fp10 and Away3D
> lite aren't used. I would like to address this but it may take some
> time. As for the poly count, for fp9, I wouldn't suggest any more than
> 1000 in your scene in total BUT I haven't used fp9 for ages and also
> there is some small overhead for JSAway as well. In all, it's going to
> have to be a bit of trial and error.
> 4. Will try and get this fixed for you.
>
> Greg
>
> On Nov 23, 10:26 am, Greg209 <[email protected]> wrote:
>
>
>
>
>
>
>
> > I'll take a look as soon as I can and get back to you on this one. I
> > hadn't realised it was broken.
>
> > Cheers
>
> > Greg
>
> > On Nov 23, 5:50 am, Saurabh <[email protected]> wrote:
>
> > > 1. can i run my 3d room [.3ds file] in away3d using js ??
> > > 2. can i roam in it using key movements ?
> > > 3. what should ideally be the polygon limit of the room ??
> > > 4.http://www.geepers.co.uk/jsaway/examples/md2example.html
>
> > > This example not working with manual movement, please help.