Camera speed after update 2.9.0

Before the recent major update to 2.9.0, I used to slow down the speed of automatic tour by adding “=2” to " “WALK.TELEPORT_TO_VIEW_MAX_TIME” and " WALK.TELEPORT_TO_VIEW_ACCERATION" .
But now, I can’t find those script in the walk.min.js file. Is there any change in the coding to JS? and Is there any alternative solution?

Hi @Sho123

Those variables should still be available in ‘walk.min.js’, however there has been some changes related to view transitions after introducing automatic camera path. If you are using “auto path” mode then there are two other values that can be tweaked:

TELEPORT_PATH_MAX_TIME
TELEPORT_PATH_ACCELERATION

Kind regards

Thank you very much for your reply.
I will try this solution.

Hi,

Do you have any idea what does each number define? (ex. below default setting)

TELEPORT_PATH_MAX_TIME:6
TELEPORT_PATH_ACCELERATION:2

Hi @Sho123

TELEPORT_PATH_ACCELERATION:2

This value indicates acceleration speed. A higher value means quicker camera acceleration and deceleration, leading to faster transition speeds. A lower value reduces camera movement speed.

TELEPORT_PATH_MAX_TIME:6

This value specifies the maximum transition time (in seconds) for auto path movement. If the calculated transition time between views (based on the path_acceleration value and distance) exceeds this value, the camera speed adjusts to ensure the max_time is not surpassed.

1 Like

Thank you very much again for your support!
Arigato from Tokyo.

hello everyone
i try to control my camera speed and end on this post

TELEPORT_PATH_MAX_TIME:6
TELEPORT_PATH_ACCELERATION:2
i didnt get well where tweak those 2 parameter ?

im not former programmer and i didnt see where this file is walk.min.js ???

usually i add stuff in body-end

i added this code in my body-end too and didnt found any change :

thanks

You can add the following snippet in your body-end.html file:

<script>
  // This is in meters / seconds^2 (default is 4)
  WALK.TELEPORT_TO_VIEW_ACCELERATION = 2;
  // This is in seconds (default is 3)
  WALK.TELEPORT_TO_VIEW_MAX_TIME = 6;
</script>

thanks a lot for help great

i try paste your code in my custom body-end.html

this is start of file :

<script>
 

    // Initialisation du viewer et paramètres de base
    const viewer = WALK.getViewer();
    WALK.FLIP_MOUSE = true;
    viewer.play();
    WALK.getViewer().menuVisible = false;
    // This is in meters / seconds^2 (default is 4)
    WALK.TELEPORT_TO_VIEW_ACCELERATION = 1;
    // This is in seconds (default is 3)
    WALK.TELEPORT_TO_VIEW_MAX_TIME = 1;

    // Définition des points de déclenchement (triggers)
    const triggers = [
        { point: {x: 1.3, y: -7.6, z: 1.5}, name: "accueil" },
        { point: {x: -2.8, y: 4, z: 1.6}, name: "accueil" },
        { point: {x: -2.7, y: 1.5, z: 1.6}, name: "accueil" },
        { point: {x: -0.5, y: -1.2, z: 1.5}, name: "accueil" },
        { point: {x: -1, y: 4.3, z: 1.6}, name: "reunion" },
  	{ point: {x: -3.7, y: -3.1, z: 4}, name: "table1" },
        { point: {x: -1.3, y: -6, z: 4}, name: "table2" },
        { point: {x: -0.93, y: 1.7, z: 1.6}, name: "cowork" },
        { point: {x: 1.2, y: -1.2, z: 1.6}, name: "cowork" }
    ];

    const triggerStates = {};
    let activeTrigger = null;

i add your variable at beginnin but still didnt have any success

Which kind of movement would you like to control?

  • Walking using keyboard or mouse wheel? The speed can be set in the Camera tab of the scene editor.
  • Switching to a view (by clicking the view in the list of views)? The speed is controlled with WALK.TELEPORT_TO_VIEW_ACCELERATION:
    • WALK.TELEPORT_TO_VIEW_MAX_TIME when Auto path is disabled,
    • WALK.TELEPORT_PATH_MAX_TIME when Auto path is enabled
  • Walking to a scene point (by clicking the point in the scene)? The speed is controlled with WALK.TELEPORT_TO_POINT_ACCELERATION and:
    • WALK.TELEPORT_TO_POINT_MAX_TIME when Auto path is disabled,
    • WALK.TELEPORT_PATH_MAX_TIME when Auto path is enabled.
1 Like

i want reduce de speed when i use change view trigger

if i click on object who trigger a view i move toward it always in the same speed
when i use camera speed it work only when walking but not when we active change view

i will try

  • WALK.TELEPORT_TO_VIEW_MAX_TIME when Auto path is disabled,
  • WALK.TELEPORT_PATH_MAX_TIME when Auto path is enabled
1 Like

perfect thanks a lot :slight_smile: