Sie sind nicht angemeldet.

1

Mittwoch, 9. November 2022, 18:52

How can I change the background colour on the 3D 'dolls house'?

Is it possible to change the background colour of the 3D model?

Looked through project3d.xml and main.xml and can't see how to change it

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Mittwoch, 9. November 2022, 20:26

Perhaps thanks to this? I haven't tested.

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Freitag, 11. November 2022, 20:15

Perhaps thanks to this? I haven't tested.
Hi Piotr

Thanks for your help, I changed 'bgcolour' in index.html as follows:



<script>
embedpano({
xml: "main.xml",
target: "pano",
bgcolor: "#ffffff",
html5: "webgl+only",
mobilescale: 1.0,
consolelog: true,
passQueryParameters: true,
onready: function(jsapi) {
window.krpano = jsapi.get("global");
}
});
</script>

And the background changed to white on the 'dolls house'.

As they say... if all else fails read the manual!! *thumbsup*


Thanks
Tim

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »trek« (11. November 2022, 22:55)