HTML5 output with relative size..!?

Q&A about the latest versions
Post Reply
Posts: 23
Joined: Thu Feb 05, 2015 7:12 pm

Tue Aug 18, 2015 10:35 am

Hi everybody,

how can i make an object2vr (HTML5) scale with the browser window like in this example:

Any help will be appreciated!

ps. exportet html is this:

<div id="container" style="width:960px;height:540px;">
This content requires HTML5 & Javascript or Adobe Flash Player Version 9 or higher.
<script type="text/javascript">

// create the object player with the container
obj=new object2vrPlayer("container");
// add the skin object
skin=new object2vrSkin(obj);
// load the configuration
// hide the URL bar on the iPhone
setTimeout(function() { hideUrlBar(); }, 10);

Changing the div's size to relative does not work, unless "height" has an absolute value. Any other value gives a 0 px height for the obj2vr...
Posts: 295
Joined: Wed Oct 22, 2008 9:45 pm
Location: Beech Grove

Tue Aug 18, 2015 9:13 pm

It has been a long time since I set up my output page. If I remember correctly, it has to do with the outer div being the size control and the width and height being set to 100% on the 360.

Is this what you are wanting?
Starting a revolution in Photography
360 Product Photography
Post Reply