Comments (3)
hi. Thanks for the feedback.
- the screenshot functionality is something new, and we would like to expand it in the future. High-res images could be a good idea.
There are two ways to do that:
- tiled rendering (as it is currently done in MeshLab): the scene is rendered multiple times, every time drawing only a chunk of the viewport. Chunks are collected and saved as a single image.
- offscreen buffer: a new buffer of the appropriate size is created and rendered into, and then saved.
Neither of these can be easily implemented, at the moment, but we will think about it.
Finally, there is the problem of multiresolution. The engine try to load and draw a representation that is "good" for the current viewpoint and resolution. We cannot increase the resolution TOO MUCH, because the model would be still displayed at a geometrical detail good for your screen. This is one of the cases where, if you need the maximum resolution, you need to work locally :)
- good news, the slanted plane is already available. It is not on the features described in the tutorials because it does not have a pre-made interface (you have to create your own in HTML/javascript), and because the parameters are more difficult to control w.r.t. the "axis-aligned sections".
As soon as I have a minute, I'll write down some information on how to use this feature
from 3dhop.
As I said, the oblique section does NOT have a ready-made interface, you have to create one depending on your needs.
as an example of interface, see http://vcg.isti.cnr.it/varie/terrain/M2_AUTO.html
The oblique sectioning plane is stored in the format normal + offset (and sign).
The plane at offset 0 passes through the center of the scene bounding sphere.
To control the oblique section, you have to use these functions:
resetClippingPlane();
removes the current oblique section plane. The section disappears
setClippingPlane(angle1, angle2, sign, offset)
angle1 and angle2 can be between -90 +90, and control how much tilt over Y and Z axis
sign can be 1.0 (positive side is clipped) or -1 (negative side is clipped)
offset can be between -100 100, and determines the offset % of the plane, i.e. how much the plane is far from the scene center.
if you want, you can control the offset with an absolut value. e.g. I want to move the plane 12mm, you may add another parameter with the offset
setClippingPlane(angle1, angle2, sign, 0, offsetabs)
if you know the exact plane you need, you may also specify directly the normal and offset of the plane in absolute values.
setClippingPlaneExplicit(axis, offset)
axis is a vector with three components, nx,ny,nz. the vectors has to be normalized.
offset is
To have an example, load the minimal example, open the console, and try these commands
presenter.setClippingPlane(0, 0, 1.0, 0.0)
straight vertical section (perpendicular to X), centered on the center of the scene, right half is removed
presenter.setClippingPlane(0, 0, -1.0, 0.0)
straight vertical section (perpendicular to X), centered on the center of the scene, left half is removed
presenter.setClippingPlane(45, 0, 1.0, 0.0)
vertical section, rotated 45° on the Y axis, centered on the center of the scene, front-right half is removed
presenter.setClippingPlane(0, 45, 1.0, 0.0)
vertical section, rotated 45° on the Z axis, centered on the center of the scene, top-right half is removed
presenter.setClippingPlane(0, 45, 1.0, 20.0)
vertical section, rotated 45° on the Z axis, 20% offset from the center, top-right half is removed
presenter.setClippingPlane(0, 45, 1.0, -20.0)
vertical section, rotated 45° on the Z axis, -20% offset from the center, top-right half is removed
presenter.setClippingPlane(0, 45, 1.0, 0.0, 6)
vertical section, rotated 45° on the Z axis, 6mm offset from the center, top-right half is removed
presenter.setClippingPlane(0, 45, 1.0, 0.0, -6)
vertical section, rotated 45° on the Z axis, -6mm offset from the center, top-right half is removed
from 3dhop.
Thank you Marco for replying in such detail.
To convey what I was envisaging with the rotation of the plane section tool to be feature like my attached image, enabling the rotation of the existing sections in tandem with translation.
from 3dhop.
Related Issues (20)
- Touch control HOT 2
- Modifying Touch Sensitivity HOT 3
- Deformed model when changing trackball position [trackballs paradigm] HOT 3
- Resizing after full screen view in Firefox not working properly HOT 5
- keyboard input disabled HOT 2
- adding loading masks to the canvas HOT 2
- bump/normal etc HOT 1
- loading many nxs files [dynamic scene declaration] HOT 13
- Objects have limited rotation angle in certain axes (usually Y and Z) [trackballs setup] HOT 2
- Implementing 3DHOP in Rails HOT 5
- Implementing 3DHOP in Drupal HOT 3
- Setting tabindex on canvas messes with focus in Firefox HOT 2
- jQuery no-conflict mode + docker + implementing 3DHOP in Clowder HOT 51
- Allow configurable selectors HOT 1
- Data/LODs stop loading in (after using viewer for a few minutes) [nexus setup] HOT 3
- Textured objects are not displayed on iOS HOT 1
- Trackballs dragging speed option HOT 3
- Input data for "animateToTrackballPosition"
- Best Tools for Rendering Very Large Meshes with Millions of Vertices/Faces in Browser
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 3dhop.