Skip to content

Commit 9e71c73

Browse files
#2174 deprecate key classes in JME3-vr. This functionality is outdated (using OpenVR) and will be deleted in a future version. (#2175)
User provided libraries supporting OpenXR should be used instead
1 parent ec9c8c5 commit 9e71c73

18 files changed

+100
-0
lines changed

jme3-vr/src/main/java/com/jme3/app/VRAppState.java

+11
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@
7272
* </ul>
7373
* Attaching an instance of this app state to an already started application may cause crashes.
7474
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
75+
*
76+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
77+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
78+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
79+
* for more information.
7580
*/
81+
@Deprecated
7682
public class VRAppState extends AbstractAppState {
7783
public static final String ID = "VRAppState";
7884
private static final Logger logger = Logger.getLogger(VRAppState.class.getName());
@@ -117,7 +123,12 @@ public VRAppState(VREnvironment environment) {
117123
* Create a new VR app state with given settings. The app state relies on the given {@link VREnvironment VR environment}.
118124
* @param settings the settings to use.
119125
* @param environment the {@link VREnvironment VR environment} that this app state is using.
126+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
127+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
128+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
129+
* for more information.
120130
*/
131+
@Deprecated
121132
public VRAppState(AppSettings settings, VREnvironment environment){
122133
this(environment);
123134
this.settings = settings;

jme3-vr/src/main/java/com/jme3/app/VRConstants.java

+5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
* Some constants dedicated to the VR module.
88
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
99
* @since 3.1.0
10+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
11+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
12+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
13+
* for more information.
1014
*/
15+
@Deprecated
1116
public class VRConstants {
1217
/**
1318
* An AppSettings parameter that set if the VR compositor has to be used.

jme3-vr/src/main/java/com/jme3/app/VREnvironment.java

+5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
*
3232
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
3333
*
34+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
35+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
36+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
37+
* for more information.
3438
*/
39+
@Deprecated
3540
public class VREnvironment {
3641
private static final Logger logger = Logger.getLogger(VREnvironment.class.getName());
3742

jme3-vr/src/main/java/com/jme3/input/vr/AnalogActionState.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package com.jme3.input.vr;
22

3+
/**
4+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
5+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
6+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
7+
* for more information.
8+
*/
9+
@Deprecated
310
public class AnalogActionState{
411

512
/**

jme3-vr/src/main/java/com/jme3/input/vr/DigitalActionState.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package com.jme3.input.vr;
22

3+
/**
4+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
5+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
6+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
7+
* for more information.
8+
*/
9+
@Deprecated
310
public class DigitalActionState{
411

512
/**

jme3-vr/src/main/java/com/jme3/input/vr/lwjgl_openvr/LWJGLOpenVRInput.java

+5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ make helper functions to pull the following easily from raw data (DONE)
7373
* @author reden - phr00t
7474
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
7575
* @author Rickard Edén
76+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
77+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
78+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
79+
* for more information.
7680
*/
81+
@Deprecated
7782
public class LWJGLOpenVRInput implements VRInputAPI {
7883

7984
private static final Logger logger = Logger.getLogger(LWJGLOpenVRInput.class.getName());

jme3-vr/src/main/java/com/jme3/post/CartoonSSAO.java

+5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
* @author reden - phr00t - https://github.com/phr00t
1616
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
1717
*
18+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
19+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
20+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
21+
* for more information.
1822
*/
23+
@Deprecated
1924
public class CartoonSSAO extends Filter{
2025
private Pass normalPass;
2126
private Vector3f frustumCorner;

jme3-vr/src/main/java/com/jme3/post/FilterUtil.java

+5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
/**
99
*
1010
* @author Rickard
11+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
12+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
13+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
14+
* for more information.
1115
*/
16+
@Deprecated
1217
public class FilterUtil {
1318
/**
1419
* A private constructor to inhibit instantiation of this class.

jme3-vr/src/main/java/com/jme3/post/PreNormalCaching.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
* Pre normal caching class.
1212
* @author reden - phr00t - https://github.com/phr00t
1313
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
14+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
15+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
16+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
17+
* for more information.
1418
*/
19+
@Deprecated
1520
public class PreNormalCaching {
1621

1722
private static FrameBuffer cachedPreNormals;

jme3-vr/src/main/java/com/jme3/shadow/AbstractShadowFilterVR.java

+5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@
5555
* @author reden - phr00t - https://github.com/phr00t
5656
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
5757
* @param <T> the type of the underlying renderer (subclass of {@link AbstractShadowRendererVR}).
58+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
59+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
60+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
61+
* for more information.
5862
*/
63+
@Deprecated
5964
public abstract class AbstractShadowFilterVR<T extends AbstractShadowRendererVR> extends Filter {
6065

6166
protected T shadowRenderer;

jme3-vr/src/main/java/com/jme3/shadow/AbstractShadowRendererVR.java

+5
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@
7575
* @author Rémy Bouquet aka Nehon
7676
* @author reden - phr00t - https://github.com/phr00t
7777
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
78+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
79+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
80+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
81+
* for more information.
7882
*/
83+
@Deprecated
7984
public abstract class AbstractShadowRendererVR implements SceneProcessor, Savable {
8085
private static final LightFilter NULL_LIGHT_FILTER = new NullLightFilter();
8186
protected int nbShadowMaps = 1;

jme3-vr/src/main/java/com/jme3/shadow/DirectionalLightShadowFilterVR.java

+5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@
5656
* @author Rémy Bouquet aka Nehon
5757
* @author reden - phr00t - https://github.com/phr00t
5858
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
59+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
60+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
61+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
62+
* for more information.
5963
*/
64+
@Deprecated
6065
public class DirectionalLightShadowFilterVR extends AbstractShadowFilterVR<DirectionalLightShadowRendererVR> {
6166

6267
/**

jme3-vr/src/main/java/com/jme3/shadow/DirectionalLightShadowRendererVR.java

+5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@
6262
* @author Rémy Bouquet aka Nehon
6363
* @author reden - phr00t - https://github.com/phr00t
6464
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
65+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
66+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
67+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
68+
* for more information.
6569
*/
70+
@Deprecated
6671
public class DirectionalLightShadowRendererVR extends AbstractShadowRendererVR {
6772

6873
protected float lambda = 0.65f;

jme3-vr/src/main/java/com/jme3/shadow/InstancedDirectionalShadowFilter.java

+5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
* An instanced version of the {@link DirectionalLightShadowFilterVR directional light shadow filter}.
1010
* @author reden - phr00t - https://github.com/phr00t
1111
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
12+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
13+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
14+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
15+
* for more information.
1216
*/
17+
@Deprecated
1318
public class InstancedDirectionalShadowFilter extends DirectionalLightShadowFilterVR {
1419
private final Vector4f temp4f = new Vector4f(), temp4f2 = new Vector4f();
1520

jme3-vr/src/main/java/com/jme3/shadow/VRDirectionalLightShadowRenderer.java

+5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@
4444
* href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html</a><br>
4545
*
4646
* @author Rémy Bouquet aka Nehon
47+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
48+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
49+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
50+
* for more information.
4751
*/
52+
@Deprecated
4853
public class VRDirectionalLightShadowRenderer extends DirectionalLightShadowRenderer {
4954

5055
/**

jme3-vr/src/main/java/com/jme3/util/VRGUIPositioningMode.java

+5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
* An enumeration that describes the GUI display positioning modes.
55
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
66
*
7+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
8+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
9+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
10+
* for more information.
711
*/
12+
@Deprecated
813
public enum VRGUIPositioningMode {
914
MANUAL,
1015
AUTO_CAM_ALL,

jme3-vr/src/main/java/com/jme3/util/VRGuiManager.java

+5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
* @author reden - phr00t - https://github.com/phr00t
2929
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
3030
*
31+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
32+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
33+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
34+
* for more information.
3135
*/
36+
@Deprecated
3237
public class VRGuiManager {
3338
private Camera camLeft, camRight;
3439
private float guiDistance = 1.5f;

jme3-vr/src/main/java/com/jme3/util/VRUtil.java

+5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
*
1212
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
1313
*
14+
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
15+
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
16+
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
17+
* for more information.
1418
*/
19+
@Deprecated
1520
public class VRUtil {
1621

1722
private static final long SLEEP_PRECISION = TimeUnit.MILLISECONDS.toNanos(4);

0 commit comments

Comments
 (0)