Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model3D view lost in PR 44 #46

Closed
enritoomey opened this issue Nov 7, 2019 · 2 comments
Closed

Model3D view lost in PR 44 #46

enritoomey opened this issue Nov 7, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@enritoomey
Copy link

enritoomey commented Nov 7, 2019

After PR #44, I was unable to plot models in the CZMLWidget().

Here is the code:

from czml3 import Document, Packet, Preamble
from czml3.properties import Model, Position, Orientation, Clock
from czml3.widget import CZMLWidget
import datetime

doc = Document([
    Preamble(name="newsat1_test"),
    Packet(
        position=Position(cartographicDegrees=[-77, 37, 0]),
        orientation=Orientation(unitQuaternion=[0, 0, 0, 1]),
        model=Model(
            gltf="http://localhost:8890/Cesium_Air.glb",  # Para comparar
            scale=2.0,
            minimumPixelSize=128,
        )
    ),
    
])

CZMLWidget(doc)

The widget is display, but no model is rendered.

@astrojuanlu
Copy link
Member

This is the diff:

$ diff -u old.txt new.txt | colordiff
--- old.txt	2019-11-07 08:14:05.476858282 +0100
+++ new.txt	2019-11-07 08:13:42.044832040 +0100
@@ -1,11 +1,10 @@
 [
     {
-        "id": "document",
         "version": "1.0",
         "name": "newsat1_test"
     },
     {
-        "id": "6424c9b2-02d6-4020-aed4-3bbe954388ca",
+        "id": "4910ae43-42f7-4939-8365-e4038eada12c",
         "position": {
             "cartographicDegrees": [
                 -77,
@@ -28,9 +27,9 @@
         }
     },
     {
-        "id": "37d38c18-ed23-403c-ba55-468077cb9f0f",
+        "id": "cdd057e3-67e0-4c4b-97a0-2ea45e08cd0d",
         "position": {
-            "epoch": "2019-11-07T07:14:05Z",
+            "epoch": "2019-11-07T07:13:42Z",
             "interpolationAlgorithm": "LAGRANGE",
             "interpolationDegree": 5,
             "referenceFrame": "FIXED",

Therefore, it seems we're missing the id of the preamble. Looking into it.

@astrojuanlu astrojuanlu added the bug Something isn't working label Nov 7, 2019
@astrojuanlu
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants