Richard C Posted December 8, 2016 Share Posted December 8, 2016 Hi again. I have imported a scene/mesh from Blender. I am experimenting with followCamera. When creating the camera it points from top down which is not what I want. I need to see the scene from the side not the top. I assume this is because Blender has z-UP rather than Y_Up although this is only a guess. What do I need to do to make the followCamera not point in the top/down direction but rather on the (Babylon) z-axis or x-axis. I see there is a follow Camera option in Blender. I have tried this but it didn't seem to work. Do I need to use constrain to object in Blender instead of lockedTarget in Babylon Help would be greatly appreciated. Thanks Richard C Quote Link to comment Share on other sites More sharing options...
max123 Posted December 8, 2016 Share Posted December 8, 2016 I don't think it has anything to do with Blender's weird coordinate system - @JCPalmer did an exceptional job of converting Blender to BJS. And, to be honest, I've never experienced Blender camera -> BJS camera issues. Can you create a Playground? GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 11, 2016 Share Posted December 11, 2016 Hi RC. Hey, check out http://doc.babylonjs.com/classes/2.4/FollowCamera See the followCam .radius and .heightOffset properties? Check those, after the import. IF .radius = low number or zero, this MIGHT cause overhead view. Set camera.radius to a substantial value... bigger. IF .heightOffset is a high number... this could cause the same problem (especially with a .lockedTarget or similar setTarget() ). Set camera.heightOffset to zero, or a small number. Think of this as "camera height above target". A side-view would have little or none. Good luck. 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.