FPS camera does not work with ifame

Home Forums Bug Reports and Feature Requests FPS camera does not work with ifame

This topic contains 5 replies, has 2 voices, and was last updated by elk elk 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13819
    zjbcool
    zjbcool
    Licensee

    when I use iframe embedding a FPS camera scene,I can not use wasd contrl the movement of camera. Is it a bug? :unsure:

    ——https://zjbcool.com/

    #13820
    elk
    elk
    Licensee

    Hi zjbcool.

    I use this little snippet for now;

    Just call this from your puzzles when you need to refocus your iframe. Like after you press a html-buttons and maybe right after your app is initialized.

    (Actualy; You probably don’t need the variable, so you can probably remove “var target = “)

    Been a little while since I implemented this, so if the Verge3D team has a better way to do it now I would also like to know.

    • This reply was modified 8 months ago by elk elk.
    • This reply was modified 8 months ago by elk elk.
    • This reply was modified 8 months ago by elk elk.
    #13824
    zjbcool
    zjbcool
    Licensee

    @elk Thanks for your advice, I will try.

    ——https://zjbcool.com/

    #13825
    elk
    elk
    Licensee

    No problem :good: Let me know how it works out, and maybe the Verge3D team can fill inn if there is a better/more recommended way of doing it.

    #13829
    zjbcool
    zjbcool
    Licensee

    Hi elk.
    It’s working now.Perfect! :yahoo:

    ——https://zjbcool.com/

    #13831
    elk
    elk
    Licensee

    Great. :good: Glad it worked for you. I only tested on my regular desktop browsers so far, so let us know if you find any issues, but i think it should be fairly robust. I got the basic code from some other post on her, so might be good to do a search here to if you get any issues.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.