CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13.04k stars 3.51k forks source link

Real time optic magnifying glass for Cesium #9367

Open xjindf opened 3 years ago

xjindf commented 3 years ago

hii, Can we magnifiy the objects in https://github.com/amitdiamant/magnify-3d there any magnifier in Cesium. I know that there is magnifier.js library available out there but can we make a magnifier using Cesium. Is there any other way to magnify or zoom that particular object from various objects.

dzungpng commented 3 years ago

@xjindf Hi! Cesium has mouse controls which you can zoom into your object. For some entities like models and billboards, you can also double click on it to zoom in automatically.

How would you use the magnifier feature in Cesium? Would love to learn more about your use case and how this feature could benefit/enhance your application. Please add any details about the feature (do you want to be able to change the size of the magnifier, what does it add to your application that you cannot achieve with the zoom mouse control, etc) that helps explain why this feature is useful.

xjindf commented 3 years ago

@dzungpng Thank you for your reply. Maybe I can't express it clearly. I know the zoom function of the scene, but what I want to achieve is the aiming magnifying glass function similar to the sniper gun.

CandyACE commented 4 months ago

You can change the fov

CandyACE commented 4 months ago

Or you can read the pixels to zoom in.