hotspot DOM not visible in flat view

nedr
Posts: 15
Joined: Fri Aug 18, 2017 12:30 pm

hotspot DOM not visible in flat view

Postby nedr » Wed Dec 27, 2017 1:34 pm

Hi,
I was trying with hotspots DOM. When I have a rectangilar view, it is working. but with a flat image it is not. The hotspot is not visible. Is this with a reason or is it a bug?

Code: Select all

{
    "story":
    {
        "uid": "hotspots-DOM-story",
        "name": "Hotspots DOM Story",
        "slug": "hotspots-dom-story",
        "description": "This is sample of DOM hotspots",
        "default": "scene-0",

        "scenes":
        [
            {
                "uid": "scene-0",
                "name": "First scene",
                "slug": "first-scene",
                "description": "This is the first and only scene",
                "background": "#202040",

                "media": {
                    "uid": "video-360-intro", "type": "image",
               "source":{"url": "media/video_plat/intro/screenshot.jpg"}
                },

                "hotspots":
                [
                    {
                        "uid": "hotspot-dom-six",
                        "interactive": true,
                        "type": "dom",
                        "dom":{"id": "hotspot-six","width": "5em","height": "5em","color": "transparent","index": 6,"class": [ "media-style__pin", "content-style__above", "hover-trig" ]},
                        "transform":{"position": {"x": 0,"y": 0,"z": -220}}
                    }
                ],
            "view":{"type": "flat"}
            }
        ]
    }
}

Above an example of my code I was debugging with. Without the sentence "view":{"type": "flat"} I can see the hotspots but is my flat image distorted.

User avatar
bbaudel
ForgeJS Team
Posts: 38
Joined: Wed Oct 26, 2016 9:20 am

Re: hotspot DOM not visible in flat view

Postby bbaudel » Thu Dec 28, 2017 4:04 pm

Hotspots are not supported on flat view at this time.

Who is online

Users browsing this forum: No registered users and 2 guests