satguru Posted April 11, 2016 Share Posted April 11, 2016 After struggling for the last couple of months , I was finally able to put together something which works I have created, what I like to call, a "live scene editor". Here you basically move around in a scene, as an avatar and make changes to it. You can check it out here http://ssatguru.appspot.com/BabylonJS-Vishva/intro.html Be warned that it might be very buggy. Still working on instructions on how to use it. Source code at https://github.com/ssatguru/Vishva Written, of course , using Java and JSweet jerome, MarianG, Xeonzinc and 6 others 9 Quote Link to comment Share on other sites More sharing options...
DigiHz Data Posted April 11, 2016 Share Posted April 11, 2016 Really cool. Keep up the good work. Quote Link to comment Share on other sites More sharing options...
iiceman Posted April 11, 2016 Share Posted April 11, 2016 That's really super cool! Good job satguru! It's already alot of fun to play around with and it has so much potential!! O_o Quote Link to comment Share on other sites More sharing options...
satguru Posted April 11, 2016 Author Share Posted April 11, 2016 @DigiHz Data @iiceman Thanks Guys Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 12, 2016 Share Posted April 12, 2016 This is cool! Your camera work is much better than my virtual world. Quote Link to comment Share on other sites More sharing options...
satguru Posted April 12, 2016 Author Share Posted April 12, 2016 @ozRocker Thanks Much of the credit goes to Babylon’s orbital camera . It provides lot of functionalities out of the box. It is great for exploring things – orbiting around , zooming into or panning around things. Great for editors and of course great for virtual worlds where much time is spent exploring I like it a lot and use it whenever I can. I use it to follow the avatar - both in third person as well as in first person view. If you zoom in, very close, into the avatar you switch into first person view but the camera still remains orbital. I use it for objects too. And for objects I also mimic some of the camera behavior in SecondLife / Opensim. So if you select an object by right clicking it and then focus on it by pressing “f”, you will see that the camera’s focus, animates slowly from the avatar to the object. Also try another thing. Focus the camera on an object, orbit and/or zoom the camera to a different position and then press “Esc” to deselect the item or just move the avatar. You will notice that the camera animates slowly back to its old position around the avatar Edit: By Orbital I meant the ArcRotateCamera, - not sure how that got stuck in my mind Wingnut 1 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 13, 2016 Share Posted April 13, 2016 I tried using ArcRotateCamera but I couldn't re-position the camera. It just wouldn't move I used free camera instead in my virtual world (http://www.punkoffice.com/animtest ) . I'm not that great at Babylon.js so I'm sure there's something I'm doing wrong. Quote Link to comment Share on other sites More sharing options...
satguru Posted April 13, 2016 Author Share Posted April 13, 2016 So an idea I had been toying around with was to create something called an AvatarControl, (kinda of like my EditControl). The user will provide an avatar with appropriate animationRanges (idle,walk,walkback,run etc) and pass that to this AvatarControl. The AvatarControl will then control the movement and camera. var avatarControl = new AvatarControl("myAvatar", mainCamera); avatarControl.start(); You can Vishva too. To use Vishva ,this is what you will have to do create an avatar with animationRanges called "walk,walkBack,idle,run,jump,turnLeft,turnRight,strafeLeft,strafeRight" add this in a folder under "webapp/vishva/assets/characters" (https://github.com/ssatguru/Vishva/tree/master/webapp/vishva/assets/characters) update "webapp/assets.js" file (https://github.com/ssatguru/Vishva/blob/master/webapp/assets.js) now when you start Vishva your avatar will show up under "add-> characters" menu use that to add your avatar to the scene select the character and choose "use as avatar" from the edit menu. Time to start documenting all this ozRocker, Dad72 and NasimiAsl 3 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted April 13, 2016 Share Posted April 13, 2016 12 hours ago, satguru said: So an idea I had been toying around with was to create something called an AvatarControl, (kinda of like my EditControl). I love this idea. Then add it as an extension to Babylon Quote Link to comment Share on other sites More sharing options...
satguru Posted April 14, 2016 Author Share Posted April 14, 2016 @Dad72 Adding this to my growing list of TODOs Also as an FYI, have added some documentation for Vishva See https://github.com/ssatguru/Vishva/wiki iiceman and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
Maverton Posted April 19, 2016 Share Posted April 19, 2016 Great job I'm just getting started and hope to reach an understanding of how to get my 3d pipeline into Babylon. Quote Link to comment Share on other sites More sharing options...
satguru Posted April 20, 2016 Author Share Posted April 20, 2016 Thanks @Maverton Let me know if I can help moving your stuff into Vishva. Quote Link to comment Share on other sites More sharing options...
ozRocker Posted April 20, 2016 Share Posted April 20, 2016 Tell me when you get multiplayer working with this. I'm trying to learn it at the moment. Quote Link to comment Share on other sites More sharing options...
satguru Posted April 20, 2016 Author Share Posted April 20, 2016 @ozRocker Multiplayer is interesting and I would explore it, eventually. As far as Vishva is concerned, I want to keep it as a Single Player system. I want to populate it, not with multiple players, but with multiple NPCs. And further, not any kind of NPCs but AI driven NPCs. AI services are becoming very common and easier to use and I want to see if I can tap into that. I want Vishva to be more about creating "experiences". Think of it as Sketchfab + interactivity +avatar + AI driven NPCs. For now I want to get the basic stuff in – major being material, particle and physics. Also want to flesh out the sensor – actuator framework. My code is becoming a big spaghetti mess, would have to refactor that soon Lots of work. Few months just doing the basic J Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.