#Layer 3d orthographic camera over 2d camera

7 messages · Page 1 of 1 (latest)

sour surge
#

I've been trying to get a 2d particle system to work with a 3d rendered orthographic view to no avail.
Anyone have any ideas on how this is supposed to work?

commands.spawn(Camera3dBundle {
        camera_3d: Camera3d {  ..default()},
        camera: Camera {priority: 1, ..default()},
        projection: Projection::Orthographic(OrthographicProjection {
            scale: 0.05,
            ..default()
        }),
        transform: Transform::from_xyz(0.0, 0.0, 999.0).looking_at(Vec3::ZERO, Vec3::Y),
        /*transform: Transform::from_xyz(0.0, 0.0, -30.0).looking_at(Vec3::ZERO, Vec3::Y),*/
        ..default()
    })
#

Note, I think my setting the orthographic scale to 0.05 is making it difficult to line up views, but my 3d models are absolutely tiny without changing scale

strong moss
#

Instead of changing scale, why not move the models closer or scale them up?

#

Also, RenderLayers might be what you want (this works for 3D, but I haven't tried it for 2D + 3D)

sour surge
#

Reverting scale does not seem to get 2d and 3d to work correctly

#

I think my 3d orthographic camera is clipping too close by?