Lines rendering & camera #43
-
Hey, I have 2 issues about these things:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello! To set the viewpoint on startup, you need to call Application::realize() manually, set a viewpoint, and then start the frame loop.(I just made realize() public in the latest push so you will need to update.) Example: app.realize();
auto first_view = app.displayManager->windowsAndViews.begin()->second.front();
if (first_view)
{
auto manip = rocky::MapManipulator::get(first_view);
if (manip)
{
rocky::Viewpoint vp;
vp.pitch = -90.0;
vp.point = rocky::GeoPoint(rocky::SRS::WGS84, 45, 45, 0);
vp.range = 1000000.0;
manip->setViewpoint(vp);
}
}
app.run(); |
Beta Was this translation helpful? Give feedback.
-
Configuring lines (and other primitives) to use LOD or screen-space error is not integrated yet, so in the meantime you'll need to manage this yourself by setting the (The plan is to support SSE on components in general, and possibly to provide a hook whereby you can insert your own custom node processing (like making a parent LOD node) when components get created.) |
Beta Was this translation helpful? Give feedback.
Hello!
To set the viewpoint on startup, you need to call Application::realize() manually, set a viewpoint, and then start the frame loop.(I just made realize() public in the latest push so you will need to update.) Example: