Skip to content

Commit

Permalink
jMonkeyEngine#2174 deprecate key classes in JME3-vr. This functionali…
Browse files Browse the repository at this point in the history
…ty is outdated (using OpenVR) and will be deleted in a future version.

User provided libraries supporting OpenXR should be used instead
  • Loading branch information
richardTingle committed Jan 1, 2024
1 parent 04da08f commit 91614d3
Show file tree
Hide file tree
Showing 18 changed files with 100 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jme3-vr/src/main/java/com/jme3/app/VRAppState.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@
* </ul>
* Attaching an instance of this app state to an already started application may cause crashes.
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class VRAppState extends AbstractAppState {
public static final String ID = "VRAppState";
private static final Logger logger = Logger.getLogger(VRAppState.class.getName());
Expand Down Expand Up @@ -117,7 +123,12 @@ public VRAppState(VREnvironment environment) {
* Create a new VR app state with given settings. The app state relies on the given {@link VREnvironment VR environment}.
* @param settings the settings to use.
* @param environment the {@link VREnvironment VR environment} that this app state is using.
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public VRAppState(AppSettings settings, VREnvironment environment){
this(environment);
this.settings = settings;
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/app/VRConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
* Some constants dedicated to the VR module.
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
* @since 3.1.0
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class VRConstants {
/**
* An AppSettings parameter that set if the VR compositor has to be used.
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/app/VREnvironment.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
*
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class VREnvironment {
private static final Logger logger = Logger.getLogger(VREnvironment.class.getName());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
package com.jme3.input.vr;

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

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
package com.jme3.input.vr;

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

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

private static final Logger logger = Logger.getLogger(LWJGLOpenVRInput.class.getName());
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/post/CartoonSSAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
* @author reden - phr00t - https://github.com/phr00t
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class CartoonSSAO extends Filter{
private Pass normalPass;
private Vector3f frustumCorner;
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/post/FilterUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
/**
*
* @author Rickard
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class FilterUtil {
/**
* A private constructor to inhibit instantiation of this class.
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/post/PreNormalCaching.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
* Pre normal caching class.
* @author reden - phr00t - https://github.com/phr00t
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class PreNormalCaching {

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

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

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

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

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

/**
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/util/VRGUIPositioningMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
* An enumeration that describes the GUI display positioning modes.
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public enum VRGUIPositioningMode {
MANUAL,
AUTO_CAM_ALL,
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/util/VRGuiManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
* @author reden - phr00t - https://github.com/phr00t
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class VRGuiManager {
private Camera camLeft, camRight;
private float guiDistance = 1.5f;
Expand Down
5 changes: 5 additions & 0 deletions jme3-vr/src/main/java/com/jme3/util/VRUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
*
* @author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
*
* @deprecated The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR).
* For new Virtual Reality projects, use user libraries that provide OpenXR support.
* See <a href = "https://wiki.jmonkeyengine.org/docs/3.4/core/vr/virtualreality.html">Virtual Reality JME wiki section</a>
* for more information.
*/
@Deprecated
public class VRUtil {

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

0 comments on commit 91614d3

Please sign in to comment.