This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ViroAnimations.registerAnimations({ | |
scaleUp:{properties:{scaleX:1, scaleY:1, scaleZ:1,}, | |
duration: 500, easing: "bounce"}, | |
scaleDown:{properties:{scaleX:0, scaleY:0, scaleZ:0,}, | |
duration: 200,}, | |
scaleCar:{properties:{scaleX:.09, scaleY:.09, scaleZ:.09,}, | |
duration: 500, easing: "bounce"}, | |
scaleSphereUp:{properties:{scaleX:.8, scaleY:.8, scaleZ:.8,}, | |
duration: 50, easing: "easeineaseout"}, | |
scaleSphereDown:{properties:{scaleX:1, scaleY:1, scaleZ:1,}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ViroARImageMarker target={"logo"} onAnchorFound={this._onAnchorFound} pauseUpdates={this.state.pauseUpdates}> | |
... | |
<Viro3DObject | |
scale={[0, 0, 0]} | |
source={require('./res/tesla/object_car.obj')} | |
resources={[require('./res/tesla/object_car.mtl'), | |
]} | |
type="OBJ" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ViroARScene> | |
<ViroLightingEnvironment source={require('./res/tesla/garage_1k.hdr')}/> | |
<ViroARImageMarker target={"logo"} onAnchorFound={this._onAnchorFound} pauseUpdates={this.state.pauseUpdates}> | |
///Components that will appear once target image is found | |
</ViroARImageMarker> | |
</ViroARScene> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import { | |
ViroARScene, | |
ViroText, | |
ViroMaterials, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import { | |
ViroARScene, | |
ViroText, | |
ViroMaterials, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import PropTypes from 'prop-types'; | |
import { | |
ViroSceneNavigator, | |
ViroARScene, | |
ViroNode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import PropTypes from 'prop-types'; | |
import { | |
ViroSceneNavigator, | |
ViroARScene, | |
ViroNode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ViroParticleEmitter | |
position={[0, 4.5, 0]} | |
duration={2000} | |
visible={true} | |
run={true} | |
loop={true} | |
fixedToEmitter={true} | |
image={{ | |
source:require("./res/particle_snow.png"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import { | |
ViroSceneNavigator, | |
ViroARScene, | |
ViroMaterials, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component } from 'react'; | |
import {StyleSheet} from 'react-native'; | |
import { | |
ViroSceneNavigator, | |
ViroARScene, | |
ViroMaterials, |
NewerOlder