Sie sind nicht angemeldet.

1

Mittwoch, 6. Oktober 2021, 14:18

Followmousecontrol and depthmap

Dear developers!
Could you please help me to solve one but important problem. There is the followmousecontrol effect, the task is to create a similar effect with a mouse only in the depthmap scene, create a small offset across the scene.

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »QLex« (6. Oktober 2021, 17:19)


2

Mittwoch, 6. Oktober 2021, 16:56

Добро пожаловать, но, пожалуйста, пишите здесь на английском языке.

3

Mittwoch, 6. Oktober 2021, 22:51

Everything should be all right now *squint*

4

Donnerstag, 7. Oktober 2021, 08:28

Hi,

try a small view.oz value, e.g.

Quellcode

1
<view oz="100" />


Then the viewing camera will be a bit behind the center, but the rotation point itself will be still the center.
With that you will get/see parallax movement and a sense of depth in depthmaps panos.

That can be combined also with the normal followmouse.xml example script.

Best regards,
Klaus

5

Donnerstag, 7. Oktober 2021, 10:33

Everything should be all right now *squint*
Hi, try to replace in vtourskin.xml action "skin_followmouse_onviewchange"

Quellcode

1
2
copy (global.view.ry, track_ry);
copy (global.view.rx, track_rx);

on this

Quellcode

1
2
calc(global.view.ox, track_ry * -10);
calc(global.view.oy, track_rx * 10);


Instead of 10, choose your value for the offset depth

6

Donnerstag, 7. Oktober 2021, 12:21

Fantastic, thanks!

7

Samstag, 9. Oktober 2021, 13:03

How to apply the parallax -effect only for smartphone? That is, when you click on the left side of the smartphone, the scene moves to the left, if you move it with your finger, then the scene shifts (already implemented). Is it possible to make an offset on a smartphone similar to the followmousecontrol implemented in a PC?

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »QLex« (9. Oktober 2021, 13:16)