How to Position the 3D Rendering Viewport (not using "BasicScene")

Hi,
I wrote a custom scene manager which directly manipulating the scenegraph (Instance3D) - I just need some more direct access to it. The 3D view is part of a bigger sourrounding AIR/Flex-based Application, which displays some graphics using convential displaylist. Now I would need to position the 3D rendering area at certain coordinates in relation to the outer main applicaiton window (stage) and application state.
I was able to replicate most of the internals of "BasicScene" based on the example "Tutorial05_SpriteBased", but I am struggled on how to positioning the 3D rendering area managed by proscenium:
- BasicScene exposes a "viewport" property that takes a reference to a DisplayObject. It seems like it internally adjusts dimension and position of the stage3D-based rendering area based on that "viewport" x,y,width, and height.
- I did figure out how to set dimensions of the area (sg is the Instance3D reference):
                              sg.configureBackBuffer(viewPort.width, viewPort.height, 2, true );
                              sg.scene.activeCamera.aspect = viewPort.width / viewPort.height;
- I could not find any way to define a x/y position.
Any help would be greatly appreciated - probably its just a small thing, but I do not have the source from BasicScene - otherwise I could look it up myself.
THanks,
Philipp

Figured this out how to set the viewport. The Camera exposes a method "setViewport". There is a Demo "TestViewport". The calculation for the viewports top, left, bottom, right values gets more complicated in my case because I have stage scale mode set to StageScaleMode.SHOW_ALL.
sg.configureBackBuffer(viewPort.stage.fullScreenWidth, viewPort.stage.fullScreenHeight, 2, true );
sg.scene.activeCamera.aspect = viewPort.stage.fullScreenWidth / viewPort.stage.fullScreenHeight;
sg.scene.activeCamera.setViewport(true, -0.5, 0.5, -0.5, 0.5 );

Similar Messages

  • Tzupdater.How it reflects the users that are not using the new USA DST rule

    If I update the JRE with tzupdater or just replace it with newer JRE will the time change according to the time zone I live in because I think that the changes in USA DST will not apply for the most of the other countries.

    Hi,
    You can do this directly in OAM, with option "a" (using auxiliary object class). You configure OAM to use the main person object class (inetorgperson) and then you can associate extra auxiliary object classes to it - and header variables can be set from any of the attributes that are in the user's profile, both main and auxiliary.
    Regards,
    Colin

  • How do I find a previously passcode to link a wireless keyboard (Model A101urs6) to a Mac Power Book G4 running 10.5.8.  The keyboard was linked at one point in the past, but then not used.  When I am trying to hook it up now, it requires the passcode.

    How do I find a previously passcode to link a wireless keyboard (Model A101urs6) to a Mac Power Book G4 running 10.5.8.  The keyboard was linked at one point in the past, but then not used.  When I am trying to hook it up now, it requires the passcode.  Where can I find this, or is there a general number I can use?

    Hello, and welcome to Apple Support Communities!
    Try entering four zeroes.

  • TS1702 Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Maybe here:
    IOS 6 App store crash: Apple Support Communities

  • HT203175 I have no problem signing on to iTunes my issue is once on the site I can not use the "search". It says there is a runtime error R6025 pure virtual function call. Has anyone had this problem and how do I fix it. Thanks

    I do not have a problem getting in the iTunes stores. My issue is once on the site I can not use the "search". It says there is a pure virtual function call R6025. How can I solve this problem? Do I have to create a new account? Do I have to uninstall and re-install? Thanks

    Thanks so much for your feedback. I really appreciate any input here.
    If someone from Adobe could GUARANTEE that this problem would go away if I
    purchased CS4, I would pony up the cash and do it. However, I'm skeptical
    about that because I just saw someone else post a message on the forum today
    who is running CS4 and getting the exact same runtime error as me.
    I'll try un-installing and re-installing as Admin, and if that doesn't work,
    maybe I can find a used copy of CS3.
    In the meantime, I'm also wondering if a Photoshop file can carry any sort
    of corrupt metadata inside it once it has errored out? Reason I ask is, I
    had to port all of my old PSD files to the new computer, and I only seem to
    be getting this error when I attempt to work on one of the files that
    previously got the runtime error when they were sitting on my XP machine.
    When I create new files from scratch on this new computer, they seem to be
    working just fine (at least, for now).
    If so, I would probably be smart to never open those troublesome
    "errored-out" files again.

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • The sort field is not used when ordering multiple cds in one alumn folder, how do I correct this?

    It is using the track number and not the sort order field.  The reason I have multiple cds in one alumn is because they are books on cd.

    Sorry for the typo my "b" key was not working correctly.
    The sort field is not used when ordering multiple cds in one albumn folder, how do I correct this?  It is using the track number and not the sort order field.  The reason I have multiple cds in one albumn is because they are books on cd.

  • Hello I have a problem related to synchronization. When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt. How to make the section "Other" did not increase? Thank you.

    Hello
    I have a problem related to synchronization.
    When you synchronize ipad Section 3 "Other" takes as much memory up to 8 gigobayt.
    How to make the section "Other" did not increase?
    Thank you.

    DOCUMENTS AND DATA IS ALSO WHERE YOUR MAIL INFORMATION IS STORED SO IF YOU ARE A "HOARDER" IN EMAIL, GO INTO THE GMAIL, HOTMAIL, ICLOUD ETC WHATEVER YOU USE, AND DELETE YOUR TRASH, SENT, DRAFTS, ETC.
    THAT SHOULD HELP A LOT.

  • I don't use many genre's, how can I delete the ones I do not use?

    In iTunes the genre list has many that I don't use.
    I would like to delete the ones I am not using.
    Does anyone know how to do that?
    I know how to add genre's, I just cant figure out how to delete them.

    Well, I think I understand that in iTunes, the Genres listed are "only" the genres found in each music file.
    However, after clicking on "get info" and then looking at my "INFO" page, when I select change Genres, a multitude of genre options appear, the ones I have added, AND a bunch that I never use, and never intend to use, e.g. soundtrack, dance, alternative, trance, unclassifiable, techno, religious, pop, new age, industrial, house, blues/R&B, Folk, Holiday, hip hop, etc.
    So there in lies my question, how do I delete (get rid of)  the genre options that I never use, and never intend to use.

  • HT4061 my brother have sent me a iphone5 in Bangladesh, now how to unlock the phone, because cellular not connect

    my brother have sent me a iphone5 in Bangladesh, now how to unlock the phone, because cellular not connect

    Send it back to your brother & have him get it officially unlocked, because there is no way for you to do that.
    Only the carrier an iPhone is locked to can authorize the phone's official unlocking, & most(if not all) will not authorize such unless your are a customer that used the phone on their network...obviously not you.
    So, send it back to your brother & have him get it unlocked or return it for a refund.

  • How to fix the iphone home button not working?

    how to fix the iphone home button not working?

    Temporary Solution: Settings > General > Accessibility > (turn on) Assistive Touch
    This will enable a "Home" button on the touch screen. (iOS5+)

  • How to remove the tasks which are not manually recoverable?

    How to remove the tasks which are not manually recoverable?
    I tried performing manual recovery for the BPEL processes but there are few tasks which cant be manually recoverable..
    Could you please tell me how to remove those tasks and also tell me which information in the console is the task_id in the database?

    This article explains how to cleanup bpel process instances, you can find task instance id by searching for data in payload using api.
    Managing a BPEL Production Environment
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/blanvalet.html
    Cheers,
    Rad

  • Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B

    Trying to figure out how to change the tuning of certain notes so I can play notes in between pitches for example the middle note between B & C or E & F. I can use different tracks if needed but I would prefer to know how to do it for individual notes as well. They have to be exactly in the middle so it's not out of tune.

    Danny,
    The theme to Doctor Who is in 12/8. In music theory, there's no such thing as a 12th note, the notation and nomenclature is all based on things being divisible by four. So for the diddly-dum feel to happen, you have to give the beat to a quarter note plus another eighth note -- we call it a dotted quarter note, and now you have three eighth notes per beat so you can go diddly. So, since you can't call the time signature 12/dotted quarter, you call it 12/8 and go faster. Make sense? Anyway, for GB's purposes, all you need to know is that you'll get that feel by choosing 12/8.

  • My Arabic keyboard is missing letter it is different of my iPhone 3 and I pad how to solve the problem it is not only mine it is most of the iphone4

    My Arabic keyboard is missing letter it is different of my iPhone 3 and I pad how to solve the problem it is not only mine it is most of the iphone4

    Najsar wrote:
    My Arabic keyboard is missing letter
    No, it's not.  You get extra letters by holding down the existing keys and selecting them from the popup menu which appears.

  • My computer that my iphone 4 is backed up on crashed... I bought a new computer as well as the iphone 5. How can transfer the my data/pics/notes/songs etc to my new phone?

    My computer that my iphone 4 is backed up on crashed... I bought a new computer as well as the iphone 5. How can transfer the my data/pics/notes/songs etc to my new phone?

    Use the backup you have of the old computer and restore that data to the new computer. Also and backups that you have made of your iTunes library (it has a method to back it up as well) can be copied back over to the new computer. If you attempt to sync the phone to the new computer without the data, it will delete that data from the phone. The iPhone is not designed as a storage/backup device and as such will not sync music from itself to a new computer.
    If by chance you had not been backing up the computer and/or iTunes, you can google for some third party software, such as Touchcopy that will do some of what you are asking.

Maybe you are looking for

  • Where is the sql file store in & Where can I find php.ini on Mac osx client

    In windows xp i can find the sql file in side the folder of MySQL and I can find php.ini in the C directory under the php's folder but in mac os Icannot find it could anyone tell me where it is and how can I find thanks.

  • I just found All the Hyperlink in the Safari Print Output are gone !

    Hi Everyone, My Macbook Air is Mac OS X Version 10.6.8 and Safari is 5.1 (6534.50). In previous, I could find and use the Hyperlink in the Safari Print Output (after I printed the Web Page to PDF). Hours ago, I found All the Hyperlink in the Safari P

  • How to mp4 into site

    I have a quick time mp4 file commercial I need to put into the web site and i cant seemt o figure out how, even tried some tutorials. I bought a skin from flashden.net but still cant seem to get it to work, any easy way to add it to my site, i have f

  • Forms, web applications, dynamic pages

    Hi. Can someone tell me what the best method is to create a form in DW? Correct me if I am wrong as I am quite new to this, but I see a lot of sites out there with different types of pages...they're using .aspx, .jsp, .php, .cgi, .html, .asp .cfm ...

  • Does Illustrator CS/CS2 plugin works in CS5?

    I've an old Illustrator plugin which was created for illustrator CS (or CS2 can't remember).   Just wondering would it work in Illustrator CS5? If it will work, would there be any major/minor compatabiltiy problems?