Hey Pete,

Haha no I've done full-screen stuff before and plenty of resizing aspects.
So I know how to implement it. Just a matter of getting the scene to fill
the screen and redraw on resize. Are you telling me that Away3D will
automatically adjust to the stage.

I have these set:

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

Whenever I resize the stage upon compiling the scene remains without
resizing if I change the window size.

Dave

On Mon, Sep 28, 2009 at 3:21 PM, Peter Kapelyan <[email protected]> wrote:

> You would need to set that in your html, it's in the HTML publish settings,
> something like:
>
> scale="exactfit" width="100%" height="100%"
>
> If you have any problems with that, you need to set a rectangleClipping,
> which I can help you with after you've attempted the above successfully :)
>
> -Pete
>
>
> On Mon, Sep 28, 2009 at 3:01 PM, David Di Biase <[email protected]>wrote:
>
>> Hi Peter,
>>
>> I just noticed that the MC is positioned on 0.5 I've fixed it and looks
>> much better. Wow, Flash can be fickle sometimes. I still love it though,
>> they just need to clean up this crappy pixel offset stuff! Ack!
>>
>> Thank you very much.
>>
>> Now that I've got an expert on the line, haha, I'm wondering how I can
>> resize the scene to fit the full page if someone resizes the canvas? Just do
>> a scene.width and scene.height set? Simple question, I could just test it
>> but thought I'd get a quick response from you :-) sorry very noob thing to
>> do.
>>
>> Cheers again,
>>
>> Dave
>>
>>
>> On Sun, Sep 27, 2009 at 11:02 PM, Peter Kapelyan <[email protected]>wrote:
>>
>>> Hi David,
>>>
>>> I thought about it, and if none of what I wrote helps, try this:
>>>
>>> 1. Go into your MovieClip and Select All (you might have to unlock some
>>> layers etc).
>>>
>>> 2. Make sure your X position is an integer such as -350, not -350.1
>>>
>>> 3. Make sure you Y position, and width and height are also integers.
>>>
>>> If everything checks out fine, you shouldn't have that tiny blur anymore!
>>> And, I am hoping it works because I am all out of ideas. :O
>>>
>>> Best
>>> -Pete
>>>
>>>
>>> On Sun, Sep 27, 2009 at 9:48 PM, David Di Biase 
>>> <[email protected]>wrote:
>>>
>>>> Hi Peter,
>>>>
>>>> Awesome! One of those will surely solve it. Thank you so much for our
>>>> help! So silly, such a simple thing.
>>>>
>>>> Cheers!
>>>>
>>>> Dave
>>>>
>>>>
>>>> On Sun, Sep 27, 2009 at 9:31 PM, Peter Kapelyan <[email protected]>wrote:
>>>>
>>>>> The only reason it might be slightly blurred is:
>>>>>
>>>>> 1 You are seeing the swf > 100%, say 101% or so,
>>>>>
>>>>> 2 the camera is not 900 away
>>>>>
>>>>> 3 the X or Y of your Plane is on some non integer value (like 300.5),
>>>>> in this case Flash will also blur bitmaps the same.
>>>>>
>>>>> I overlayed Picture4 on Picture2 in Photoshop and it seems like Picture
>>>>> 4 is a tad bigger, say 101%, so my guess might be it's either 1 or 2.
>>>>> Otherwise I am not sure why it would do that (other than #3). : /
>>>>>
>>>>> -Pete
>>>>>
>>>>>
>>>>> On Sun, Sep 27, 2009 at 9:21 PM, David Di Biase <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Oh my gosh, wow. Apologies for that. I'm not the only one who's
>>>>>> touched the code and it appears someone added that without my knowledge.
>>>>>> Yikes! Well out of that comes another question. It's rendering rather 
>>>>>> nicely
>>>>>> but slightly blured. Could this be due to the camera location or 
>>>>>> something?
>>>>>>
>>>>>>
>>>>>> On Sun, Sep 27, 2009 at 9:13 PM, Peter Kapelyan 
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> I am not 100% certain but you have:
>>>>>>>
>>>>>>> stage.quality = StageQuality.LOW;
>>>>>>>
>>>>>>> if you comment that line, does it get any better?
>>>>>>>
>>>>>>> -Pete
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Sep 27, 2009 at 9:07 PM, David Di Biase <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hi Peter,
>>>>>>>>
>>>>>>>> I'm pretty sure I'm using 3.4.0. So I'll remove the precision and
>>>>>>>> segments since they are useless now.
>>>>>>>>
>>>>>>>> My apologies from before, I removed the height and width to test. I
>>>>>>>> actually had the plane set to 700x110 to match the MC. I've attached 
>>>>>>>> the
>>>>>>>> resulting rendered results.
>>>>>>>>
>>>>>>>> You mentioned "focus" and zoom. I'm using neither, I'm actually just
>>>>>>>> setting leaving the camera where it is right now and moving the 
>>>>>>>> object. I've
>>>>>>>> attached my full .as script for you to take a closer look if you have 
>>>>>>>> time.
>>>>>>>>
>>>>>>>> I don't really expect Flash to make it look better when it comes to
>>>>>>>> scaling but it should at least look normal with a regular size object, 
>>>>>>>> no?
>>>>>>>> or am I not going to get anything better than what you see? Then again 
>>>>>>>> I see
>>>>>>>> *so* many 3D applications that look so slick...how the heck will I get 
>>>>>>>> those
>>>>>>>> results?
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Dave
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Sep 27, 2009 at 8:55 PM, Peter Kapelyan <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi Dave,
>>>>>>>>>
>>>>>>>>> Are you using Away3d 2.X or 3.X ?
>>>>>>>>>
>>>>>>>>> You wouldn't need that many segments, and precision at the same
>>>>>>>>> time. If you are using 3.X - you wouldn't need either.
>>>>>>>>>
>>>>>>>>> The reason your 20x20 plane looks like crud is because that's how
>>>>>>>>> Flash treats bitmaps, when you scale them down. If you tried your MC 
>>>>>>>>> with a
>>>>>>>>> 700 x 110 Plane , it would look EXACTLY like your MovieClip, if you 
>>>>>>>>> place
>>>>>>>>> the camera 900 away from the plane, with default zoom + focus.
>>>>>>>>>
>>>>>>>>> It's not Away3D's fault, it's just Flash, it simply cannot
>>>>>>>>> antialias bitmaps when you are scaing them smaller than 100%. If you 
>>>>>>>>> REALLY
>>>>>>>>> wanted your 700x100 plane to be 20x20 and FORCE flash to antialias it
>>>>>>>>> better, you can try a tad of blur filter on it.
>>>>>>>>>
>>>>>>>>> -Pete
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Sep 27, 2009 at 8:16 PM, David Di Biase <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Peter,
>>>>>>>>>>
>>>>>>>>>> Thanks for helping me out on this. It's greatly appreciated.
>>>>>>>>>>
>>>>>>>>>> I have an mc in my library with the dimensions 700x110. This is
>>>>>>>>>> how I'm creating the material:
>>>>>>>>>>
>>>>>>>>>> var mc:MovieClip = new MC1();
>>>>>>>>>> material = new MovieMaterial(mc, { precision: 15, smooth: true,
>>>>>>>>>> interactive: true, transparent: true });
>>>>>>>>>>
>>>>>>>>>> It's an interactive material because the user has to be able to
>>>>>>>>>> use it as a navbar.
>>>>>>>>>>
>>>>>>>>>> This is how I'm creating the plane:
>>>>>>>>>>
>>>>>>>>>>         private function initObjects():void {
>>>>>>>>>>             plane = new Plane();
>>>>>>>>>>             plane.material = material;
>>>>>>>>>>             plane.x -= 180;
>>>>>>>>>>             plane.z += 900;
>>>>>>>>>>             plane.segmentsH = 20;
>>>>>>>>>>             plane.segmentsW = 20;
>>>>>>>>>>             plane.y -= 300;
>>>>>>>>>>             plane.yUp = false;
>>>>>>>>>>             plane.bothsides = true;
>>>>>>>>>>             scene.addChild(plane);
>>>>>>>>>>         }
>>>>>>>>>>
>>>>>>>>>> I've attached a screenshot of what is being rendered. Picture
>>>>>>>>>> 2.png represents the MC in the library that I'm trying to use as a 
>>>>>>>>>> material.
>>>>>>>>>> At first I thought I needed more segments or something but now I'm 
>>>>>>>>>> just
>>>>>>>>>> totally clueless.
>>>>>>>>>>
>>>>>>>>>> Best,
>>>>>>>>>>
>>>>>>>>>> Dave
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Sep 27, 2009 at 7:23 PM, Peter Kapelyan <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Away3D will create a bitmap of your MovieClip, so you have one
>>>>>>>>>>> resolution (texture size), and it's basically the same as having a 
>>>>>>>>>>> Bitmap on
>>>>>>>>>>> screen, with the same pros and cons.
>>>>>>>>>>>
>>>>>>>>>>> Do you have a screenshot of the problems you are having?
>>>>>>>>>>>
>>>>>>>>>>> -Pete
>>>>>>>>>>>
>>>>>>>>>>> On Sun, Sep 27, 2009 at 3:12 PM, pilotcrew <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi here,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm doing a lit of work with movieclips and primitives. Lots of
>>>>>>>>>>>> basic
>>>>>>>>>>>> interaction. I'm having some trouble withthe quality of the clip
>>>>>>>>>>>> as
>>>>>>>>>>>> it's layer over say a plane. It appears aliased despite the fact
>>>>>>>>>>>> that
>>>>>>>>>>>> I set the material to have smoothing on.
>>>>>>>>>>>>
>>>>>>>>>>>> I've assumed that the scale for 3D objects is the same on a
>>>>>>>>>>>> Flash
>>>>>>>>>>>> stage. So basically if the movieclips is 300x300 on stage I
>>>>>>>>>>>> simply
>>>>>>>>>>>> create a plane at 300x300 and move the camera to a distance from
>>>>>>>>>>>> it.
>>>>>>>>>>>>
>>>>>>>>>>>> I'm wondering how I can get the quality of the plane material to
>>>>>>>>>>>> be
>>>>>>>>>>>> perfect as it's rather annoying to look at crappy images! Eeek.
>>>>>>>>>>>>
>>>>>>>>>>>> I've tried searching this and found some material but nothing
>>>>>>>>>>>> that
>>>>>>>>>>>> really answered it.
>>>>>>>>>>>>
>>>>>>>>>>>> David
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> ___________________
>>>>>>>>>>>
>>>>>>>>>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>>>>>>>>>
>>>>>>>>>>> HTTP://AWAY3D.COM
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> ___________________
>>>>>>>>>
>>>>>>>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>>>>>>>
>>>>>>>>> HTTP://AWAY3D.COM
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ___________________
>>>>>>>
>>>>>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>>>>>
>>>>>>> HTTP://AWAY3D.COM
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ___________________
>>>>>
>>>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>>>
>>>>> HTTP://AWAY3D.COM
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> ___________________
>>>
>>> Actionscript 3.0 Flash 3D Graphics Engine
>>>
>>> HTTP://AWAY3D.COM
>>>
>>
>>
>
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM
>

Reply via email to