Skip to content

Conversation

@grizeldi
Copy link
Member

@grizeldi grizeldi commented Mar 18, 2019

This fixes #1033.

Should I also deprecate the TestLightNode.java?

@stephengold
Copy link
Member

In the past, I've deleted tests/examples that targeted deprecated features.

@stephengold
Copy link
Member

stephengold commented Mar 22, 2019

There are 3 jme3-examples apps that use LightNode:

  1. TestLightNode should be deleted.
  2. TestConeVsFrustum should be modified to position the lights directly.
  3. TestManyLightsSingle should be modified to position the lights directly.

@stephengold
Copy link
Member

Stuck?

@grizeldi
Copy link
Member Author

Not really, just don't have much time for coding these days. I'll try to do it asap.

@stephengold
Copy link
Member

Just curious. No rush.

@grizeldi
Copy link
Member Author

Been doing some work and figured out that TestConeVSFrustum will need some general cleanup. There are random variables that are never used and the class uses TempVars. Aren't those supposed to be used by the engine only?

@stephengold
Copy link
Member

Yes, TempVars is intended only for internal use. Yes, examples should ... set a good example. However, cleanup of examples should probably go into a separate pull request unless it's clearly related to issue #1033.

@ghost
Copy link

ghost commented Sep 8, 2019

What is the status of this?

@grizeldi
Copy link
Member Author

grizeldi commented Sep 8, 2019

I think I have some more stuff done locally but never pushed it, will have to check.

@grizeldi
Copy link
Member Author

grizeldi commented Sep 8, 2019

Okay, looked into it a bit and I'm not sure what TestConeVSFrustum is even supposed to do. There's some unused stuff and the test as a whole looks unfinished. Still have to check TestManyLightSingle.

@stephengold
Copy link
Member

I believe that TestConeVSFrustrum is supposed to test the SpotLight.intersectsFrustum() method. When the test is running, drag with the right mouse button pressed to reposition the spotlight's cone. When the cone no longer intersects the frustum, its color changes to grey.

@MeFisto94
Copy link
Member

Friendly reminder to have a look at this again :)

@MeFisto94
Copy link
Member

Yearly reminder again :D

@stephengold stephengold added this to the v3.4.0 milestone Mar 15, 2021
Conflicts:
	jme3-examples/src/main/java/jme3test/light/TestConeVSFrustum.java
	jme3-examples/src/main/java/jme3test/light/TestLightNode.java
@stephengold stephengold self-assigned this Mar 23, 2021
@stephengold stephengold merged commit 2c91e14 into jMonkeyEngine:master Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deprecate the LightNode class

3 participants