Comments (3)
Ah, interesting thought! How about just returning a Point3d
instead of a Point2d
, LineSegment3d
instead of LineSegment2d
, etc.? In that case I'd be inclined to call it toCameraSpace
.
from elm-3d-camera.
from elm-3d-camera.
Was just thinking about this some more and I think toCameraSpace
could be misleading - to me that implies a simple 3D coordinate transform (basically just a relativeTo
call) that converts from world coordinates to camera-relative coordinates, while toScreenSpace
also includes a perspective divide (assuming the camera is in fact using perspective projection). So I think maybe stick with returning Point3d
, LineSegment3d
etc. but call the functions toScreenSpace3d
instead.
from elm-3d-camera.
Related Issues (9)
- Rename OpenSolid.Viewpoint -> OpenSolid.Camera.Viewpoint HOT 1
- Change viewPlane to return a Plane3d, not a SketchPlane3d HOT 7
- Don't store near/far clip plane in Camera3d HOT 1
- Return records instead of Mat4 values?
- Add Sphere3d.Projection module HOT 1
- Add Camera3d.projectionMatrix HOT 2
- Add examples of how to construct screen rectangle for Camera3d.ray HOT 2
- Add support for generating 3D CSS transforms?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-3d-camera.