Hi,
That's a lot of questions :) I will try my best:
CORRECT_Z_ORDER will work at any axis (x,y,z), not just Z.
If you are looking straight down onto a flat plane (perpendicular) you do
not need more segments, so your movie can be faster. If it's not straight
down (90 degrees etc) , then more segments, or precision will help get rid
of distortion.
There is also the precision (like material.precision=10; ) property for
materials. This will correct distortion but could be slower than using more
segments, you have to try to see which one is faster if you use them
(precision or segments). The smaller the number for precision, the more
precise it is. precision=1 is the most precise, but also the slowest.
You can scroll the image a couple of ways without even moving the plane or
camera using a TransformBitmapMaterial for instance,
material = new TransformBitmapMaterial(Cast.bitmap(myBitmap), {repeat:true,
scaleX:.5,scaleY:.5, precision:10});
and move it like this:
material.offsetX++;//etc
I don't use HoverCamera, I use the regular Camera3D so I don't know which
one is faster, sorry.
I don't think using a timer in such small increments is reliable. Flash does
not fire events at exact milliseconds. Setinterval used to be reliable in
Flash7 to be very fast, but things have changed since then, and the timer
isn't so accurate anymore. There is a way to force the timer to fire almost
perfectly, I don't have the link but I can try to find the link for you if
you want.
I have not tried rendering every 250ms, but remember the rendering process
also takes time, and it is better to just render on an enterFrame listener.
Since the rendering is only shown once a frame, there is not much sense
rendering more than one time a frame, unless you are doing some tricky stuff
like rendering more than one bitmap from different cameras.
Let me know if you need any more help! I think that's all the questions
(wiping sweat from my forehead) :)
-Pete
On Sat, Feb 21, 2009 at 6:02 AM, HappyMan <[email protected]> wrote:
>
> Oh, sorry. By the way. my on render is set by 250ms means it will fire
> 3 or 4 per second to draw and my swf fps default set to 24fps.
> Movement is 8 (mostly) to 16 pixel per second. Are there any wrong? Do
> I need to match my rendering pulse the same is swf fps?
>
> On Feb 21, 1:02 pm, Peter Kapelyan <[email protected]> wrote:
> > To make movement look smooth you should use a similiar color moving on
> top
> > of another similiar color, or use blur to blend to smooth the pixels
> moved
> > during the movement.
> >
> > When you have sharp graphics moving fast on screen (especially in a large
> > redraw area), there is not much you can do to make it look smooth. Sharp,
> > contrasting things moving fast will not look smooth unless they are
> moving
> > slower, say 1-4 pixels per second at a very consistent (steady) fps.
> >
> > A simple test is make Large white document in photoshop. then make a
> black
> > box, select it and move it around the screen. You will see your box does
> not
> > look liek a box anymore, but many boxes.
> >
> > I don't know if this problem is only with LCD screens (new hardware).
> >
> > The reason I asked you to take a screenshot is because if it can be
> > explained in a still frame, you will see the problem in that one frame.
> If
> > it is a problem of movement, a video will show the problem better.
> >
> > If you want to send me your SWF project link I can see and tell you
> better
> > what you are seeing or having a problem with and come up with a solution,
> or
> > if you send it to this list, maybe someone else can see the problem and
> help
> > you with a solution.
> >
> > I am helping with my xray vision, and just trying to see the problem :)
> >
> > -Pete
> >
> >
> >
> > On Fri, Feb 20, 2009 at 9:59 PM, HappyMan <[email protected]>
> wrote:
> >
> > > I am using a fine pc to do it, so I think it is not the hardware
> > > problem. Anyway, let me rephrase it. Are there any way to have smooth
> > > camera transition or scene rendering when I am moving 8 or 16 pixel
> > > per second?
> >
> > > On Feb 20, 10:20 pm, Peter Kapelyan <[email protected]> wrote:
> > > > Do you have a picture of one or more of the problems (screenshot?).
> >
> > > > Some redraw problems may be the monitors fault..not flash.
> >
> > > > -Pete
> >
> > > > On Fri, Feb 20, 2009 at 12:14 AM, HappyMan <[email protected]>
> > > wrote:
> >
> > > > > Hi guys and ladies if there is any :)
> >
> > > > > Thanks for this wonderful 3D engine.
> >
> > > > > I am having problem on MovieMaterial
> >
> > > > > I don't have 3D Artwork now, so my background or so called ground
> is a
> > > > > movie clip loaded from .swf file with dimension of 1024 x 768 and
> 24
> > > > > fps. It means, the ground and the trees and whatever is in 1
> picture
> > > > > because my previous games is all in 2D (i am planning to advance
> into
> > > > > 3D)
> >
> > > > > so, I create a plane with 1024 x 768 dimension and assign my
> > > > > background (ground) as MovieMaterial on it.
> >
> > > > > then, I move my camera to the top of the ground at 900 y looking
> > > > > toward ground as I think moving camera is better than pitching the
> > > > > plane by 90 degrees. I am using hoover camera because i think that
> is
> > > > > the best camera.....
> >
> > > > > My timing for rendering is 250 ms.
> >
> > > > > Now, my current avatar moving speed is around 16 pixels per second
> and
> > > > > each time my avatar moving, i move the camera to make sure the
> avatar
> > > > > is in the center of the screen.
> >
> > > > > I found that the background is moving kind of juggling just like
> what
> > > > > happen before we do something like double buffering in directX last
> > > > > time. And if I switch to 1600 x 1200 background, not only it looks
> > > > > juggling, sometimes, it may blur abit then back to normal after it
> > > > > finish the drawing (i think so...)
> >
> > > > > By the way, the background plane is having default segmentH and W.
> >
> > > > > Could someone tell me are there any optimization I can do to solve
> my
> > > > > problem cause I can't present it to my customer.
> >
> > > > > Once again, thanks alot.
> >
> > > > --
> > > > ___________________
> >
> > > > Actionscript 3.0 Flash 3D Graphics Engine
> >
> > > > HTTP://AWAY3D.COM <http://away3d.com/> <http://away3d.com/>
> >
> > --
> > ___________________
> >
> > Actionscript 3.0 Flash 3D Graphics Engine
> >
> > HTTP://AWAY3D.COM <http://away3d.com/>
>
--
___________________
Actionscript 3.0 Flash 3D Graphics Engine
HTTP://AWAY3D.COM