HTML5 output with relative size..!?

Q&A about the latest versions
Post Reply
drjanson
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:

https://ggnome.com/object2vr/examples/dragon

Any help will be appreciated!
Thanks.

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.
</div>
<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
obj.readConfigUrl("ecco_1st_01.xml");
// hide the URL bar on the iPhone
setTimeout(function() { hideUrlBar(); }, 10);
</script>
------------------------------------

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...
PhotoSpherix
Posts: 294
Joined: Wed Oct 22, 2008 9:45 pm
Location: Beech Grove
Contact:

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?
http://www.photospherix.com/client/bbboxspring
PhotoSpherix
Starting a revolution in Photography
360 Product Photography
Post Reply