mikeswei / cesiummeshvisualizer Goto Github PK
View Code? Open in Web Editor NEWCesium+Three.js.
License: Other
Cesium+Three.js.
License: Other
比如说先绘制一个普普通通的三维点,我没找到API?(不想用cesium里的方法绘制)
另外,有绘制场数据的方法吗?比如海水温度、空气污染情况等等。
谢谢。
有人遇到这个错吗?定位了一下,发现Cesium只有CesiumMeshVisualizer初始化的值(Cesium.ArrowGeometry),没有原始Cesium的那些对象,如Cesium.Resource.fetchArrayBuffer这类数据。
请问现在支持给Cesium中加载的gltf、glb模型和3DTiles模型添加物理属性吗?
I see the volumer endering use a .png to mipmaping the cubeTex: "./.png", ,Now I have the Volume data .But i can't generat the png image. Help.tell me how to change the RAW data to png texture.Thank you.
`var materialSecondPass = new MeshMaterial({
vertexShader: document.getElementById("vertexShaderSecondPass").textContent,
fragmentShader: document.getElementById("fragmentShaderSecondPass").textContent,
side: MeshMaterial.Sides.FRONT,
uniforms: {
alpha: -1,
dimensions: dimensions,
tex: rtTexture,
cubeTex: "./demo.png",
transferTex: transferTexture,
steps: guiControls.steps,
alphaCorrection: guiControls.alphaCorrection
}
});
var meshSecondPass = new Mesh(boxGeometry, materialSecondPass);
meshVisualizer.add(meshSecondPass);`
我想动态的更新alphaCorrection,我尝试用remove(meshSecondPass)然后再添加但是没有效果?请求有封装好的方法吗?如果没有请给我一个可行的思路。谢谢。
模型跟cesium球体感觉没有贴地还是怎么的,移动地图的时候,看到模型,是在地图上漂移的,跟地图的经纬度没有完全匹配,平移的时候,明显看到,加载的Threejs场景一会在这个区域,一会在另一个区域,这是怎么回事啊?
I open an new issue, i don't want create png texture. cesium Can Volume rendering draw it directly
Hi:
I get the new version .which can't show the map.I changed the map source ,it's also can't work. I open the https://mikeswei.github.io/CesiumMeshVisualizer/App/demo/VolumeRendering/index.html can show the map. my local can't .
Thanks
尝试TTFLoader的例子,这个示例中引用了initCesium.js。initCesium代码里有一部分好像是固定路径,所以就会报错。
错误信息如下:
n error occurred while rendering. Rendering has stopped.
undefined
TypeError: Cannot assign to read only property 'red' of object '[object Object]'
TypeError: Cannot assign to read only property 'red' of object '[object Object]'
at Function.Color.clone (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:416833)
at o.updateSunLight (http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.js:4:11247)
at o.update (http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.js:4:14683)
at PrimitiveCollection.update (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:2049855)
at updateAndRenderPrimitives (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3032387)
at executeCommandsInViewport (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3030969)
at Scene.updateAndExecuteCommands (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3027985)
at render (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3040440)
at tryAndCatchError (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3040677)
at Scene.render (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3042540)
CesiumWidget.showErrorPanel @ Cesium.js:1
VM6:1 Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
e @ VM6:1
tdtVec.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
tdtImg.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
DevTools failed to load source map: Could not load content for http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
I Changed the color code .but it will work show a Single Color.
var guiControls = new function () {
this.model = 'bonsai';
this.steps = 256.0;
this.alphaCorrection = 1;
this.color1 = "#000000";
this.stepPos1 = 0.0;
this.color2 = "#ff0077";
this.stepPos2 = 0.22;
this.color3 = "#3f7210";
this.stepPos3 = 0.3;
//this.color4 = "#FFFAFA";
//this.stepPos4 = 0.65;
//this.color5 = "#FF1493";
//this.stepPos5 = 0.85;
//this.color6 = "#FFff00";
//this.stepPos6 = 1.0;
};
请问如何调整坐标轴样式?
非常佩服作者,技术精湛
我的代码如下var heading = viewer.camera.heading;; var pitch = viewer.camera.pitch; var range = 30000.0; viewer.camera.lookAt(center, new Cesium.HeadingPitchRange(heading, pitch, range)); camera.rotateLeft(0.01);
但是好像一直在绕极点进行旋转?
我想要的就右鼠标右键那样可以一直绕着转。谢谢你,希望你的回答。
我测试了一下OBJ和FBX都有报错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.