How to center the object in the web browser screen?
08 September 2016 09:05
Hello blend4Web experts!
Another newbie question I'm afraid. Hopefully this helps somebody else out too.
Which settings can make it easy to center object in the screen in web browser?
So when file opens it is centered perfectly in the screen?
When my target and camera look centered in Blender, it is too high on screen in browser.
I moved target location up 2.0
And moved all objects down 0.5 below floor plane
That made it centered, but is there better way? Which settings should we use?
Thanks as always!
Chris
Another newbie question I'm afraid. Hopefully this helps somebody else out too.
Which settings can make it easy to center object in the screen in web browser?
So when file opens it is centered perfectly in the screen?
When my target and camera look centered in Blender, it is too high on screen in browser.
I moved target location up 2.0
And moved all objects down 0.5 below floor plane
That made it centered, but is there better way? Which settings should we use?
Thanks as always!
Chris
08 September 2016 10:36
Target camera will always look at the center of Target location parameter. So you can set Cursor where you want camera always look at and then click Look at Cursor so it'll show you in blender where camera will look at in the engine. It's the only Simple way to target camera at special point.
Another way is to create a simple logic node sutup with camera move node, but here you can always target camera at specific object. I prepeared for you an example.
look_at_setup.blend
Another way is to create a simple logic node sutup with camera move node, but here you can always target camera at specific object. I prepeared for you an example.
look_at_setup.blend
Blend4web and that kind of thing.
09 September 2016 08:02
09 September 2016 10:21
Hi Mikhail Luzyanin,You can't see in the blender exactly what you see in the engine because it's our own method of centering object. So you need to check woh it will looks in thengine only.
Thank you for your reply and your example file.
My problem is still when I move the camera, the objects are centered in the Blender camera.
But not centered in .HTML window.
Please see attached screen shot, and the new .blend file and .HTML file.
Thank you!
Blend4web and that kind of thing.
09 September 2016 10:35
Hi, CSCB.
We have a special button "Look At Cursor" for the target camera right under the "Target Location" settings. Did you try it?
documentation
We have a special button "Look At Cursor" for the target camera right under the "Target Location" settings. Did you try it?
documentation