Skip to content

Instantly share code, notes, and snippets.

@pavelvasev
Created January 29, 2021 10:35
Show Gist options
  • Save pavelvasev/ddcd2a3e16a2a5ad6dae4743496eebb0 to your computer and use it in GitHub Desktop.
Save pavelvasev/ddcd2a3e16a2a5ad6dae4743496eebb0 to your computer and use it in GitHub Desktop.
// viewzavr scene generated on Fri Jan 29 2021 15:35:19 GMT+0500 (Yekaterinburg Standard Time)
var obj = vz.root;
// object obj_bgimage
var obj_bgimage = obj.vz.create_obj_by_type( { type: 'bgimage', parent: obj, name: 'bgimage' } );
obj_bgimage.setParam( 'image', "https://images.unsplash.com/photo-1518066000714-58c45f1a2c0a?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw=&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" );
// object obj_pointes-cube
var obj_pointes_cube = obj.vz.create_obj_by_type( { type: 'pointes-cube', parent: obj, name: 'pointes-cube' } );
obj_pointes_cube.setParam( 'count', 1000 );
// object obj_pointes_cube_mypts
var obj_pointes_cube_mypts = obj_pointes_cube.ns.getChildByName('mypts');
obj_pointes_cube_mypts.setParam( 'radius', 7.4 );
obj_pointes_cube_mypts.setParam( 'color', 255 );
obj_pointes_cube_mypts.setParam( 'opacity', 51 );
obj_pointes_cube_mypts.setParam( 'depth-test', 0 );
obj_pointes_cube_mypts.setParam( 'shape', 6 );
obj_pointes_cube_mypts.setParam( 'additive', 1 );
// object obj_points-game
var obj_points_game = obj.vz.create_obj_by_type( { type: 'points-game', parent: obj, name: 'points-game' } );
obj_points_game.setParam( 'appear-speed', 10 );
obj_points_game.setParam( 'change-speed', 1 );
obj_points_game.setParam( 'points-count', 1000 );
obj_points_game.setParam( 'points', "/pointes-cube/mypts" );
obj_points_game.setParam( 'steps', 34 );
obj_points_game.setParam( 'missed', 0 );
obj_points_game.setParam( 'rating', null );
obj_points_game.setParam( 'catched', 0 );
obj_points_game.setParam( 'active', 2 );
// object obj_points_game_colorer-multi
var obj_points_game_colorer_multi = obj_points_game.ns.getChildByName('colorer-multi');
obj_points_game_colorer_multi.setParam( 'start-color', "#ffaaaa" );
obj_points_game_colorer_multi.setParam( 'final-color', "#ff0000" );
obj_points_game_colorer_multi.setParam( 'unpressed-color', [1,1,1] );
obj_points_game_colorer_multi.setParam( 'pressed-color', "#ffffff" );
// object obj_points_game_interact
var obj_points_game_interact = obj_points_game.ns.getChildByName('interact');
// object obj_points_game_sounds
var obj_points_game_sounds = obj_points_game.ns.getChildByName('sounds');
obj_points_game_sounds.setParam( 'volume', 0.5 );
obj_points_game_sounds.setParam( 'appear-sound-volume', 1 );
obj_points_game_sounds.setParam( 'hit-sound-preset', 2 );
obj_points_game_sounds.setParam( 'hit-sound', "https://viewlang.ru/viewzavr-apps/vr-points-game//points-game/sounds/files2/Stapling Paper-SoundBible.com-238116558.mp3" );
obj_points_game_sounds.setParam( 'hit-sound-volume', 1 );
obj_points_game_sounds.setParam( 'boom-sound-preset', 3 );
obj_points_game_sounds.setParam( 'boom-sound', ["https://viewlang.ru/viewzavr-apps/vr-points-game//points-game/sounds/files/414619__pjcohen__maraca-low-shake-velocity-11.wav"] );
obj_points_game_sounds.setParam( 'boom-sound-volume', 0.15 );
// object obj_music_with_coords
var obj_music_with_coords = obj.vz.create_obj_by_type( { type: 'music_with_coords', parent: obj, name: 'music_with_coords' } );
obj_music_with_coords.setParam( 'file', "//viewlang.ru/assets/sounds/Maxim_Fadeev__Tiho_neset_voda.mp3" );
obj_music_with_coords.setParam( 'volume', 100 );
obj_music_with_coords.setParam( 'refdistance', 60 );
obj_music_with_coords.setParam( 'coords', "0,0,0" );
obj_music_with_coords.setParam( 'autoplay', true );
// object obj_import-export
var obj_import_export = obj.vz.create_obj_by_type( { type: 'import-export', parent: obj, name: 'import-export' } );
// object obj_cameraZ
var obj_cameraZ = obj.vz.create_obj_by_type( { type: 'cameraZ', parent: obj, name: 'cameraZ' } );
obj_cameraZ.setParam( 'auto-rotate', 0.01 );
obj_cameraZ.setParam( 'teta-angle', 238.6599999982103 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment