Icon Animation in skin for VR Mode

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
studio360.com.ua
Posts: 22
Joined: Mon Mar 13, 2023 5:01 pm
Location: Ukraine
Contact:

I can’t animate hotspot icons in VR mode. I’m trying to achieve a result like this: https://www.thinglink.com/webvr/1264679527141867522. However, even a simple style (below) only works in a regular browser:

Code: Select all

.medallion {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: spinY 4s linear infinite;
}
.medallion svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes spinY {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
When I apply this style to the VR skin, the icons remain static. Any advice?
Windows 11 22H2, Pano2vr 7.1.9 64bit, Object2vr pro 3.1.10 64bit, Object2vr4.0beta 64bit
User avatar
Hopki
Gnome
Posts: 13450
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
When viewing in the immersive mode CSS can not be used, everything is done by three.js.
This is why it was such a big deal getting the skin editor working with the immersive view.
You would need to look how to do this using three.js.
Maybe a ChatGPT question.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
studio360.com.ua
Posts: 22
Joined: Mon Mar 13, 2023 5:01 pm
Location: Ukraine
Contact:

Thx!
Windows 11 22H2, Pano2vr 7.1.9 64bit, Object2vr pro 3.1.10 64bit, Object2vr4.0beta 64bit
Post Reply