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

Materials on Ground Primitives #6393

Merged
merged 44 commits into from
May 15, 2018
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bdf302e
able to get world coordinates from depth tex
likangning93 Feb 13, 2018
4fe0397
texcoords from naive inverse trig
likangning93 Feb 20, 2018
956df6c
using cg ref approx to compute spherical coordinates on CPU and GPU
likangning93 Mar 2, 2018
529b5ab
add separate shader for shadow volume final pass, use a cubic instead…
likangning93 Mar 4, 2018
7af7d47
merged in master
likangning93 Mar 8, 2018
3e5c724
WIP material support for ground primitives w/normals from depth tex
likangning93 Mar 20, 2018
0433738
change ground primitive normal computation to EC for less noise
likangning93 Mar 21, 2018
2b47810
reduce multifrustum artifacts for EC normals from depth
likangning93 Mar 21, 2018
693f7e2
bespoke shadow volume appearance shaders
likangning93 Mar 22, 2018
f9ca260
switch spherical coordinates computation to atan
likangning93 Mar 23, 2018
d02346b
simplified spherical coordinates via atan
likangning93 Mar 26, 2018
71b6095
merged in master
likangning93 Mar 28, 2018
e7c4679
added plane-based texcoords, still has precision artifacts
likangning93 Mar 28, 2018
23d6dfb
changed texcoord planes to use a model matrix attribute, less inaccur…
likangning93 Mar 29, 2018
62ab0ba
using double-precision points for planes, added switching between pla…
likangning93 Mar 29, 2018
2cb5132
add batching for ground primitives
likangning93 Mar 29, 2018
9212796
PR feedback
likangning93 Apr 5, 2018
8e59e2d
add texture coordinate rotation for materials on GroundPrimitives
likangning93 Apr 11, 2018
5ee2f07
added GroundPrimitives material support for 2D/CV [ci skip]
likangning93 Apr 12, 2018
849c8a6
reduce batch table use for 2D texcoords on GroundPrimitives [ci skip]
likangning93 Apr 12, 2018
6b43300
add batched drawing for pick [ci skip]
likangning93 Apr 19, 2018
de2268a
cleanup for shadow volume material vertex shaders [ci skip]
likangning93 Apr 20, 2018
1d9cb79
merged in master, issues with log depth [ci skip]
likangning93 Apr 20, 2018
2aba8f0
fix log depth with GroundPrimitive materials [ci skip]
likangning93 Apr 24, 2018
0844b9d
cleanup for materials on GroundPrimitives [ci skip]
likangning93 Apr 24, 2018
d9ed5c5
unit tests
likangning93 Apr 27, 2018
5e4f46c
updates for planar texcoords in 3D
likangning93 Apr 27, 2018
4a00da4
factor height into GroundPrimitive texcoord planes
likangning93 Apr 29, 2018
d13d97f
PR comments
likangning93 May 2, 2018
5b0c259
add fallback for IE
likangning93 May 3, 2018
e35db9d
merged in master
likangning93 May 3, 2018
6061880
added development Sandcastles, fixed dynamic Entities, updated CHANGE…
likangning93 May 3, 2018
5300fda
fix headers in new development Sandcastle examples
likangning93 May 4, 2018
892b7db
add support for materials on dynamic terrain entities, fix texture co…
likangning93 May 7, 2018
ac71c04
compute tight rectangles for rotated texture coordinates [ci skip]
likangning93 May 9, 2018
41236c4
add specs for tight oriented rectangles for texture coordinates
likangning93 May 9, 2018
921a3db
fix fallback picking
likangning93 May 9, 2018
75dcb60
fix test failures with webgl stub for StaticGroundGeometryPerMaterial…
likangning93 May 10, 2018
fe8d1f7
compute texture coordinate rotation parameters in local ENU for Ellip…
likangning93 May 11, 2018
9643b2c
doc tweaks
likangning93 May 11, 2018
2aaf979
PR feedback and cleanup
likangning93 May 11, 2018
16c7305
handle ClassificationType BOTH and CESIUM_3D_TILE with materials on G…
likangning93 May 15, 2018
fbf05c8
format CHANGES.md entry with bullets
likangning93 May 15, 2018
4f580be
add textured terrain entity example to Ground Clamping Sandcastle
likangning93 May 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Apps/Sandcastle/gallery/Ground Clamping.html
Original file line number Diff line number Diff line change
@@ -121,6 +121,30 @@
viewer.zoomTo(e);
}
}, {
text : 'Draw Textured Polygon',
onselect : function() {
if (!Cesium.Entity.supportsMaterialsforEntitiesOnTerrain(viewer.scene)) {
window.alert('Terrain Entity materials are not supported on this platform');
return;
}

var e = viewer.entities.add({
polygon : {
hierarchy : {
positions : [new Cesium.Cartesian3(-2358138.847340281, -3744072.459541374, 4581158.5714175375),
new Cesium.Cartesian3(-2357231.4925370603, -3745103.7886602185, 4580702.9757762635),
new Cesium.Cartesian3(-2355912.902205431, -3744249.029778454, 4582402.154378103),
new Cesium.Cartesian3(-2357208.0209552636, -3743553.4420488174, 4581961.863286629)]
},
material : '../images/Cesium_Logo_Color.jpg',
classificationType : Cesium.ClassificationType.TERRAIN,
stRotation : Cesium.Math.toRadians(45)
}
});

viewer.zoomTo(e);
}
}, {
text : 'Draw Rectangle',
onselect : function() {
var e = viewer.entities.add({
Loading