mugen87 / dive Goto Github PK
View Code? Open in Web Editor NEWShooter AI showcase with Yuka.
Home Page: https://raw.githack.com/Mugen87/dive/master/app/index.html
License: MIT License
Shooter AI showcase with Yuka.
Home Page: https://raw.githack.com/Mugen87/dive/master/app/index.html
License: MIT License
HI, first of all to say, i love yuka, great library! Last year I was playing with it making a game from shooter example http://gamestudiohx.com/bata/som/entity/shooter/ , and since i saw dive and all new features, i wanted to implement navmesh and some other cool stuff you've added since...
I wanted to ask how do you make costtable json for navmesh. Is there a tool for that or if you can give me some directions.
Thanks
Hi @Mugen87, thanks for your help, I've made the VR controls working.
I found that when the scene was moved, everything including the meshes was synced correctly except the skeletons. Since the hitboxes were bound with the skeletons, they didn't follow the game entities position under this situation.
https://raw.githack.com/Mugen87/dive/master/app/index.html It can be seen by turning on the skeletonHelpers and using I, J, K, L keys to move the scene. You can see the skeletons get double position changes from the scene position.
Hi @Mugen87
I forked your awesome project, updated the dependencies, and gave WebXR a try. https://raw.githack.com/shenzhuxi/dive/master/app/index.html
I found that the default visible distance of the VR camera is very short. I tried to use updateRenderState() before this.renderer.render( this.scene, this.camera ); in https://github.com/shenzhuxi/dive/blob/master/src/core/World.js, but it didn't work. But I can do it in https://github.com/mrdoob/three.js/blob/master/examples/webxr_vr_ballshooter.html before renderer.render( scene, camera ). Did I miss anything specific settings in dive?
Another small issue, skeletonHelpers can't be seen in VR. Maybe I should create an issue in three.js.
BTW, I just moved the whole scene to make the VR camera inspect the moving bot.
let bot = this.entityManager.getEntityByName('Bot0');
if (bot) {
var v = new Vector3();
v.copy(bot.position);
this.scene.position.set(-1 * v.x , -1 * v.y, -1 * v.z);
}
Can you let me know what's the best practice to do it, please? Maybe something like function syncCamera( entity, camera )?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.