Eelis Posted May 16, 2016 Share Posted May 16, 2016 With an upVector of (0,-1,0), setTarget is not working for me: http://www.babylonjs-playground.com/#IU2XB#0 Bug, or do I not understand setTarget and/or upVector correctly? :) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 16, 2016 Share Posted May 16, 2016 Hi @Eelis and welcome. http://playground.babylonjs.com/#IU2XB#1 It was caused by the x-value for your camera in line 6. I set it to zero... it lined up again. Why it's doing that? I dunno. Still to be answered... by smarter people than I. I think something is goofy with camera.upVector.... but, not sure. Sorry for the slow reply. Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 16, 2016 Author Share Posted May 16, 2016 Hi Wingnut, do you agree that the expected result is for the sphere to appear in the center /even with/ the x-value I had? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 16, 2016 Share Posted May 16, 2016 Yes, I agree, but I'm not really an expert, so my agreement carries very little weight. If I were to guess... I would say that the camera.upVector is only doing a 90-degree rotate, and should be doing a 180. But that's truly a guess. We could go hacking... examining source code, see if we can find the trouble. I will need more coffee, first. If you can wait just a little while longer, the "big dogs" will return from weekend partying, see this, and perhaps instantly know what is causing it. Good find, E! Interesting. There is definitely something odd, there. Update: Tried... camera.upVector = BABYLON.Vector3.Up().negate(); no change. Feeling around in the dark is fun, though. Seven occurrences of upVector in https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.camera.js . I smell the problem. You? It smells like my dog has been in here chewing on things. Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 16, 2016 Author Share Posted May 16, 2016 Cool, thanks for your assessment! And no hurry or anything, it's not urgent at all. Just glad to hear I'm not crazy. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 18, 2016 Author Share Posted May 18, 2016 Hey guys, looking at the BabylonJS website, the closest thing I can find to a bugtracker is the Uservoice website. Would it be helpful if I filed a ticket there? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 18, 2016 Share Posted May 18, 2016 bug fixed..Will be available in the next commit Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 18, 2016 Author Share Posted May 18, 2016 Oooh sweet!! Thanks Delta! Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 18, 2016 Author Share Posted May 18, 2016 Hmm, I noticed another very similar case, but this time I'm not using upVector: http://www.babylonjs-playground.com/#O9SAU Any idea? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 18, 2016 Share Posted May 18, 2016 This one is "expected"..If the camera is perfectly perpendicular to the target we have a precision problem: http://www.babylonjs-playground.com/#O9SAU#1 Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 18, 2016 Author Share Posted May 18, 2016 Ah, good to know, thanks. By the way, I'm still seeing weirdness with upVector: http://www.babylonjs-playground.com/#1A64GI Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 19, 2016 Share Posted May 19, 2016 Know what? I'm just stupid..Good fix is coming soon (like in less than 10 minutes:)) Quote Link to comment Share on other sites More sharing options...
Eelis Posted May 19, 2016 Author Share Posted May 19, 2016 Awesome, looks good now! Thanks again, I really appreciate it 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.