mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
bring in sync with new lens system
This commit is contained in:
parent
fc6db22bb1
commit
a146f98569
@ -26,7 +26,7 @@
|
||||
#include <textureTransition.h>
|
||||
#include <chancfg.h>
|
||||
#include <camera.h>
|
||||
#include <perspectiveProjection.h>
|
||||
#include <perspectiveLens.h>
|
||||
#include <frustum.h>
|
||||
|
||||
StitchImageConverter::
|
||||
@ -55,16 +55,8 @@ void StitchImageConverter::
|
||||
setup_camera(const RenderRelation &camera_arc) {
|
||||
PT(Camera) cam = DCAST(Camera, camera_arc.get_child());
|
||||
|
||||
Frustumf frust;
|
||||
frust._t = 0.5;
|
||||
frust._b = -0.5;
|
||||
frust._l = -0.5;
|
||||
frust._r = 0.5;
|
||||
frust._fnear = 0.5;
|
||||
frust._ffar = 2.0;
|
||||
|
||||
PerspectiveProjection proj(frust);
|
||||
cam->set_projection(proj);
|
||||
PT(Lens) lens = new PerspectiveLens;
|
||||
cam->set_lens(lens);
|
||||
}
|
||||
|
||||
bool StitchImageConverter::
|
||||
|
@ -207,7 +207,7 @@ setup() {
|
||||
group_node_index < chanConfig.get_num_groups();
|
||||
group_node_index++) {
|
||||
DisplayRegion *dr = chanConfig.get_dr(group_node_index);
|
||||
dr->get_camera()->set_near_far(1.0, 10000.0);
|
||||
dr->get_camera()->get_lens()->set_near_far(1.0, 10000.0);
|
||||
new RenderRelation(_render, chanConfig.get_group_node(group_node_index));
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user