Open jjhembd opened 3 months ago
Hey @ggetz I'd like to tackle this issue for JTC
@MylesPerHour201 Great!
Reaching out for a sanity check.
I believe the best route to take is to directly add a compressedAttributes
input to the RectangleOutlineGeometry
instance. I believe this would be done in the .creategeometry
method. This would satisfy the modifyForEncodedNormals
function, even though RectangleOutlineGeometry
does not need to compress multiple vertices.
@jjspace Would you be able to advise on this?
What happened?
As reported on the forum Adding a
GeometryInstance
with aRectangleOutlineGeometry
to the scene as aPrimitive
with a defaultPerInstanceColorAppearance
gives the following error:See this Sandcastle example.
But
vertexFormat
is not an option forRectangleOutlineGeometry
. In this case, thePerInstanceColorAppearance
will work as long as it is initialized with the optionflat: true
. See this updated Sandcastle.Reproduction steps
GeometryInstance
with aRectangleOutlineGeometry
PerInstanceColorAppearance
Sandcastle example
https://sandcastle.cesium.com/#c=zZNdS8MwFIb/SuiNLcx09eNC1w1lggiCouCN9SJLjzWYJiVJJ1P2303StXZbvRVvEnLOed+T8zSlUmiDlgw+QKEpEvCB5qBZXeInHwuzgPrzXApDmACVBdEkE5mgXvmFNAUBaG3FjUsvqYAaIgoON/ZEBIVku8U1yBKMWrXp8CsTCBWbKDrv1z60Xne14fYerbbRoJ9eVrYrwa9KlldQKAAdHiYnYzweoWO/HiZjv7tYNHJW62ZjuTU66FwPfJAYo9iiNqBtctOYSi7V9l3nLrQ73GWrDX3DpFvG+DTyjTOxdmh/YXf0L9g11I4admcdyL9C16c2gM6/RVwpVjLDlqAxyfOw537fZrZptX3c1Z73H+1o4GO8NENVFRDlAttT3INqK/1Al11d6BCto2gSjIJUmxWHWcMCoQtWVlIZVCseYhwbKCtOLK94UdN3MJhq7WZ0pWncl6Y5W1ro04FfFVFOtLaZ15rzR/YJWTBLY1u/J+WS5EwUd0tQnKxc2Vsyu22CGOM0tsdhpZGSL4jacf4G
Environment
Browser: Chrome CesiumJS Version: 1.120 Operating System: Windows