Welcome to FreeSpin3D Sign in | Join
in Search

Zooming

Last post 03-05-2010 1:53 PM by kiruba. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 08-25-2009 11:31 PM

    Zooming

    First, I am loving this plugin. I just need to find out two, hopefully simple things before I purchase it.

    1. When I have my 3D model in the Flash environment and I run it (Ctrl + Enter) I get all the expected controls, however, when I attempt to zoom in or out, the point where the model zooms into and out from is off the screen. I want the model to zoom into and out from the center of the model. How do I go about doing this?

    2. How do I set the limits on how far out and how far in you can zoom in on the model?

     

    Thanks in advance!

  • 08-26-2009 9:49 AM In reply to

    Re: Zooming

    do you mean zooming with the mouse wheel? If you do i don't think there is a way to control the center of the zoom nor the zoom amount. For that you need to implement the zoom by yourself.

    Let me know if you need the code, i will be happy to give it to you

    All children are artists. The problem is how to remain an artist once he grows up.
    Filed under:
  • 08-26-2009 3:59 PM In reply to

    Re: Zooming

    That is exactly what I mean. I would much appreciate the code. Thank you.

    There are two other things I need to know as well.

     1. How can I disable mouse wheel zoom functions with code?

    2. How do I tie zoom controls to a slider bar?

     Thanks in advance. My company has put me to task on this so I am kind of in the deep end with out much practice.

  • 08-26-2009 7:11 PM In reply to

    Re: Zooming

    sure, what version of flash you using?

    All children are artists. The problem is how to remain an artist once he grows up.
  • 08-26-2009 7:26 PM In reply to

    Re: Zooming

    CS4 Professional

  • 08-27-2009 9:23 AM In reply to

    ok,

    Take a look at the attached fla.

    i used a FreeSpin behavior called basic rotation for the mouse control - it has no wheel implementation. also created a slider for the zoom.

    If you never added a behavior before the fla wont compile what you need to do is just open a new fla, put a model and add it a behavior from the FreeSpin panel, then you can clode the fla.

    In the fla i sent you can play with the behavior settings - they are in the action script layer call FreeSpin3DScript (first frame).

    Hope this helps, let me know

    All children are artists. The problem is how to remain an artist once he grows up.
    Filed under: , ,
  • 08-27-2009 6:35 PM In reply to

    DarK, thank you for the help. Your code did exactly what I needed and I think I understand the logic.

     I have attached my latest build. I was wondering if you could take a peak and give some feed back on the construction of this project. It is going to be used during online surveys relating to package tests so it doesn't need to be any prettier than it already is. The reason I am asking is because I am not a programmer and this is my first attempt at this type of thing.

     Thanks again for the help.

  • 08-30-2009 9:44 AM In reply to

    Re: Zooming

    ok, be happy to I'll get back to you

    All children are artists. The problem is how to remain an artist once he grows up.
  • 08-31-2009 10:14 AM In reply to

    Re: Zooming

    Very nice implemented, here are my thoughts:

    1. I see you imported a 3D model for the box, you can alwas consider using a primitive for that.
    2. I am not sure how many models will you be using, but if its a few using the same box, you can always use the same model (even duplicate it) and change the texture in runtime.
    3. Regarding the code, for the model you can use the prefix '_fs' and that will give you the methods hinting in adobe, meaning that when you type the '.' (dot) the list of availablr methids will open

    Cheers and good work, let me know if you need anymore help

     

    All children are artists. The problem is how to remain an artist once he grows up.
  • 09-01-2009 10:01 AM In reply to

    • Dr Flash
    • Top 50 Contributor
    • Joined on 03-31-2008
    • Amsterdam
    • Posts 3

    Re: Zooming

    interesting.. so is there a difference between duplicating a model and just creating a new instance of it, meaning whats the benefit of cloning?

    thanks.

    Filed under:
  • 03-05-2010 1:53 PM In reply to

    • kiruba
    • Top 25 Contributor
    • Joined on 03-05-2010
    • India
    • Posts 7

    Re: Zooming

     Hello,

     I am new to freespin3d, i had installed 15 days trial version and tried this sample. but its says an error to the below area.

    import FreeSpin3DBehaviors.CRvBasicRotation; (1172 : Definition FreeSpin3DBehaviors.CRvBasicRotation could not be found)

    and

    var my3DModel_fs_BasicRotation = new CRvBasicRotation(); (1180 : Call to a possibly undefined method CRvBasicRotation).

     Please help me in this

    Thanks.

Page 1 of 1 (11 items)
Revolver3d