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

Best way to translate the projection ? #6

Open
enguerranws opened this issue Mar 11, 2016 · 0 comments
Open

Best way to translate the projection ? #6

enguerranws opened this issue Mar 11, 2016 · 0 comments

Comments

@enguerranws
Copy link

Hi,

I'm currently using threex.webar on a project. It's working fine, so thank you very much, it makes using Aruco with Three.js a lot easier.

Right now, I'm trying to make a projection (markerObject3D) based on a marker, but I want it to be next to the marker, not on it.

Here's how I achieved that, using Three.js translatex() :

function render() {

    translateMarker3D(markerObject3D);
        movieMaterial.update();
        backgroundTexture.update();
        effect.render(scene, camera)
}
function translateMarker3D(marker3D) {
       marker3D.translateX( 80 );
}  

The thing is : it kinda work. It flickers a lot, when it's great without transition.

I also tried to change aruco's returning values (in threex.jsarucomarker.js):

object3d.position.x = translation[0];

But it renders the same, flickering.

So my question is: what is the best way to make a projection next to a marker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant