<div dir="ltr">Hello Stefanos, <div><br></div><div>> This looks like a bug on the exporting code. Have you checked the issue tracker?<br></div><div>You mean issues in the github repo? I've checked there and apparently nobody has faced this issue before. </div><div><br></div><div>> This note is outdated and should be removed. You can access the Qgs3DMapScene object in python and do an export:<br></div><div>This worked for me, the resulting scene is however the same as the one I exported using GUI. </div><div><br></div><div>I've also just noticed that even if I did specify to set the altitude clamping to relative to terrain, some buildings seem to sink into the terrain : </div><div># set altitude clamping to relative to terrain <br>s.setAltitudeClamping(qgis.analysis.Qgis.AltitudeClamping(2))<br></div><div><br></div><div><img src="cid:ii_lvqe0guh0" alt="image.png" width="503" height="311"><br></div><div><br></div><div>Cheers, </div><div><br></div><div><br></div><div>Abdelghani </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 May 2024 at 00:03, Stefanos Natsis via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Abdelghani,</div><div><br></div><div>> I've tried to manually export the scene but the results is a bit disappointing: <br></div><div><br></div><div>This looks like a bug on the exporting code. Have you checked the issue tracker?</div><div><br></div><div><br></div><div>> Also I've seen that in the python API documentation it is mentioned that
Qgs3DMapScene is not available. Which means I cannot export the scene
using pyQGIS?</div><div><br></div><div>This note is outdated and should be removed. You can access the Qgs3DMapScene object in python and do an export:</div><div>s = Qgs3DMapExportSettings()</div><div>... # setup your export settings<br></div><div>iface.mapCanvases3D()[0].scene().exportScene(s)</div><div><br></div><div><br></div><div>Best,</div><div>Stefanos<br></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>