Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular with MindAR #109

Open
jackodiamond opened this issue Mar 16, 2023 · 3 comments
Open

Angular with MindAR #109

jackodiamond opened this issue Mar 16, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@jackodiamond
Copy link

jackodiamond commented Mar 16, 2023

I tried writing angular application with mindAR, camera opens and it scans the image but objects are not being spawned. While the same code works fine in with html css. getting no error in console.

@krsbx
Copy link
Owner

krsbx commented Mar 16, 2023

@jackodiamond thank you for trying mind ar ts, can you show me the code so i could see the problem?

@jackodiamond
Copy link
Author

private loadBox(posx:number,posy:number,posz:number)
{
const geometry = new THREE.BoxGeometry( 0.1, 0.1, 0.1 );
const material = new THREE.MeshLambertMaterial( { color: 0xc0c0c0 } );
var mesh = new THREE.Mesh( geometry, material );
this.anchor[0].group.add(mesh);
mesh.position.set(posx0.1,posy0.1,posz*0.1);
}
break points are coming fine but cube is not spawning

@krsbx
Copy link
Owner

krsbx commented Apr 25, 2023

@jackodiamond do you already check the order of your component? and make sure that the created box are inside the component of the a-frame scene

@krsbx krsbx added the help wanted Extra attention is needed label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants