/** * Create a named picture. * * By default a picture's width and height are 1 * and its position is 0, 0. * * @param name the name of the picture in the scene graph * @param flipY If true, the Y coordinates of the texture will be flipped. */ public Picture(String name, boolean flipY){ super(name, new Quad(1, 1, flipY)); setQueueBucket(Bucket.Gui); setCullHint(CullHint.Never); }
/** * Create a named picture. * By default a picture's width and height are 1 * and its position is 0, 0. * * @param name the name of the picture in the scene graph * @param flipY If true, the Y coordinates of the texture will be flipped. */ public Picture(String name, boolean flipY){ super(name, new Quad(1, 1, flipY)); setQueueBucket(Bucket.Gui); setCullHint(CullHint.Never); }
/** * Create a named picture. * * By default a picture's width and height are 1 * and its position is 0, 0. * * @param name the name of the picture in the scene graph * @param flipY If true, the Y coordinates of the texture will be flipped. */ public Picture(String name, boolean flipY){ super(name, new Quad(1, 1, flipY)); setQueueBucket(Bucket.Gui); setCullHint(CullHint.Never); }
public LidarDistortionProcessor(JMERenderer jmeRenderer, int scansPerSweep, int scanHeight, int numberOfCameras, float startAngle, float fieldOfView, LidarSceneViewPort[] lidarSceneProcessors) { ViewPort viewport = jmeRenderer.getRenderManager().createPostView("LidarDistortionViewport", new Camera(scansPerSweep, scanHeight)); this.scansPerSweep = scansPerSweep; this.scanHeight = scanHeight; this.scan = new float[scanHeight * scansPerSweep]; this.lidarOutFloatBuffer = BufferUtils.createFloatBuffer(scansPerSweep * scanHeight); FrameBuffer distortionFrameBuffer = new FrameBuffer(scansPerSweep, scanHeight, 1); distortionFrameBuffer.setColorBuffer(Format.RGBA32F); Material distortionMaterial = createDistortionMaterial(jmeRenderer.getAssetManager(), scansPerSweep, numberOfCameras, startAngle, fieldOfView, lidarSceneProcessors); Picture distortionPicture = new Picture("Distortion"); distortionPicture.setMaterial(distortionMaterial); distortionPicture.setHeight(scanHeight); distortionPicture.setWidth(scansPerSweep); distortionPicture.setQueueBucket(Bucket.Gui); distortionPicture.setCullHint(CullHint.Never); viewport.attachScene(distortionPicture); viewport.setClearFlags(true, true, true); viewport.setOutputFrameBuffer(distortionFrameBuffer); viewport.addProcessor(this); distortionPicture.updateGeometricState(); }
public LidarDistortionProcessor(JMERenderer jmeRenderer, int scansPerSweep, int scanHeight, int numberOfCameras, float startAngle, float fieldOfView, LidarSceneViewPort[] lidarSceneProcessors) { ViewPort viewport = jmeRenderer.getRenderManager().createPostView("LidarDistortionViewport", new Camera(scansPerSweep, scanHeight)); this.scansPerSweep = scansPerSweep; this.scanHeight = scanHeight; this.scan = new float[scanHeight * scansPerSweep]; this.lidarOutFloatBuffer = BufferUtils.createFloatBuffer(scansPerSweep * scanHeight); FrameBuffer distortionFrameBuffer = new FrameBuffer(scansPerSweep, scanHeight, 1); distortionFrameBuffer.setColorBuffer(Format.RGBA32F); Material distortionMaterial = createDistortionMaterial(jmeRenderer.getAssetManager(), scansPerSweep, numberOfCameras, startAngle, fieldOfView, lidarSceneProcessors); Picture distortionPicture = new Picture("Distortion"); distortionPicture.setMaterial(distortionMaterial); distortionPicture.setHeight(scanHeight); distortionPicture.setWidth(scansPerSweep); distortionPicture.setQueueBucket(Bucket.Gui); distortionPicture.setCullHint(CullHint.Never); viewport.attachScene(distortionPicture); viewport.setClearFlags(true, true, true); viewport.setOutputFrameBuffer(distortionFrameBuffer); viewport.addProcessor(this); distortionPicture.updateGeometricState(); }