PTC
-
[PipingModel] 2D UI추가 및 기능 구현PTC/Vuforia 2022. 6. 29. 17:42
패널 선택 후 캔버스에 드래그 앤 드롭 속성 - 맞춤 : 시작 저장 전환 버튼 선택 후 패널에 드래그 앤 드롭 속성 - 누를 경우 이미지 : btn_1_lrg.png - 누르지 않을 경우 이미지 : btn_1_sm.png - 배경색 : 지우기 - 너비 : 80%, 높이 : 80% - Studio ID : Step1_btn 이벤트 - 클릭 : resetAugmentations(); - 누름 : view.wdg['Step2_btn']['pressed']=false;view.wdg['Step3_btn']['pressed']=false;view.wdg['Step4_btn']['pressed']=false; 저장 전환 버튼 선택 후 패널에 드래그 앤 드롭 속성 - 누를 경우 이미지 : btn_2_lrg.png -..
-
[GasTurbine]색상 변경하기PTC/Vuforia 2022. 6. 28. 13:38
Thingworx에서 INFOTABLE 타입의 색상 데이터를 받아서 model 의 하위 오브젝트 color 값을 변경해주려고 함 하지만 preview에서는 Thingworx의 값을 받아서 색상 변경이 잘 됐지만 publish 이후 디바이스에서는 값이 변경되지 않는 버그가 발생 $scope.DTApply = function(value) { PTC.Metadata.fromId('model-1').then( (metadata) => { for(let i=0; i
-
$interval을 사용하여 오브젝트 scale 변환PTC/Vuforia 2022. 6. 10. 10:13
var unityScale = $scope.app.params['UnityScale']; var getScale = 0; $scope.modelScale = function(){ $interval(function(){ if(unityScale > parseFloat($scope.view.wdg['model-1']['scale']) && (unityScale - parseFloat($scope.view.wdg['model-1']['scale']))>0.01) { getScale = parseFloat($scope.view.wdg['model-1']['scale']) + 0.01; $scope.view.wdg['model-1']['scale'] = String(getScale); //control.log($..
-
[PipingModel] 3D 모델추가 및 기능구현PTC/Vuforia 2022. 5. 18. 12:14
모델을 선택 후 캔버스에 드래그 앤 드롭 리소스 : pipes_and_valves_models.pvz 시퀸스 : Copy of Valve Animation Studio ID : pipingModel 저장 ThingMark를 선택 후 캔버스에 드래그 앤 드롭 속성에서 - ThingMark : My ThingMarks 에서 1번 복사 - 마커너비 : 0.15 - X 회전 : 180, Y 회전 : 0, Z 회전 : 180 - ThingMark 위치 변경 저장 3D 게이지를 선택 후 캔버스에 드래그 앤 드롭 속성 - 리소스 : gauge_red.png, gauge_green.png - 글꼴크기 : 250px - 배율 : 0.18 - 캔버스에 대한 텍스트의 X좌표 : 350 - 캔버스에 대한 텍스트의 Y좌표 : ..
-
[PipingModel] Resources Upload, SettingPTC/Vuforia 2022. 5. 18. 11:06
RESOURCES 옆 '+' 버튼 클릭 Select Files 클릭 pvz파일 선택 후 Add 클릭 (업로드 후 Vuforia Studio에서 사용 가능) Experiences(경험) -> ThingMark 드롭다운 1번 선택 -> Description 작성 -> Save Info -> Experience Service 에서 Validate 유효성 검사 확인 -> Access 는 Public으로 설정하여 로그인 정보 요청 안함 -> Project Thumbnail 에서 썸네일 이미지 추가 이후 Style(css) 및 Home.js 설정 진행
-
[PipingModel] app.scss 작성PTC/Vuforia 2022. 5. 17. 16:07
/* Add additional application styles or override styles provided by the selected theme or widgets. You can include SASS syntax, as this file is built to a css file using a SASS processor. Available Variables: Variable Name Description ---------------------------------------------------- $resources References the directory where resources reside (images, etc.), this directory may be different bet..
-
[PipingModel] Home.js 설정PTC/Vuforia 2022. 5. 17. 16:01
// Create gauge1 as an app parameter and bind to gauge. This will create a random number in the range (20, 61) every 3 seconds var tick=0; $interval(function() { $scope.app.params.gauge1 = Math.floor(Math.random() * 41) + 123 } ,1000); var tick=0; $interval(function() { $scope.app.params.gauge2 = Math.floor(Math.random() * 3) + 156 } ,3000); var tick=0; $interval(function() { $scope.app.params.g..