Giter Site home page Giter Site logo

learn-webxr's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

learn-webxr's Issues

Example 11:No Path line has been shown

Hi Nik! When I accessed index.html from the example 11 on my phone with Chrome, No Path line has been shown even I called showPathLines() without debugging as follow:
`newPath(pt){
const player = this.object;

    if (this.pathfinder===undefined){
        this.calculatedPath = [ pt.clone() ];
        //Calculate target direction
        this.setTargetDirection();
        this.action = 'walk';
        return;
    }
    
	//console.log(`New path to ${pt.x.toFixed(1)}, ${pt.y.toFixed(2)}, ${pt.z.toFixed(2)}`);	

	const targetGroup = this.pathfinder.getGroup(this.ZONE, pt);
	const closestTargetNode = this.pathfinder.getClosestNode(pt, this.ZONE, targetGroup);
	
	// Calculate a path to the target and store it
	this.calculatedPath = this.pathfinder.findPath(player.position, pt, this.ZONE, this.navMeshGroup);

	const self = this;
	
	if (this.calculatedPath && this.calculatedPath.length) {
		this.action = 'walk';
		
		const pt = this.calculatedPath[0].clone();
		this.setTargetDirection()
		
		if (!this.npc){
			this.showPathLines();
		}
	} else {
		this.action = 'idle';
		`
		THX for your HELP!

Have you ever thought about add fingerpose detect in webXR?

Hi Teacher Nik,

Recently, An issue came out of my mind, which is make object in WebXR change different behaviours according to my finger pose.

But

From immersive github, folks told us that “WebXR Device API does not provide a way to grant raw camera access to the sites.”.
I am not sure if feeding video into model.estimateHands is the only way to detect finger pose,

const predictions = await model.estimateHands(video);
just wondering if there is any other way to detect fingerpose in WebXR to you?

MANY THANKS FOR YOUR ASSISTANCE!

Example 11:Difference between "this" and "player" in Player.js

Hello, Nik! Nice course!
A difficulty has arisen after taking your course and attempting Example 11: What is the difference between "this" and "player" in Player.js?

The relevant code is as follows:
const player = this.object; const pt = this.calculatedPath[0].clone(); pt.y = player.position.y; const quaternion = player.quaternion.clone(); player.lookAt(pt); this.quaternion = player.quaternion.clone(); player.quaternion.copy(quaternion);

Why is it necessary to save "quanternion" to "player.quaternion" in the final line?

Does this imply that "player" stores quaternion in a temporary state after lookAt terget?

THX!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.