Skip to content

Conversation

@bob0bob
Copy link
Contributor

@bob0bob bob0bob commented Dec 3, 2021

Updating all references to setDepthTexture and setColorTexture from old system to the new system.

bob0bob and others added 19 commits November 21, 2021 23:33
… in AppSettings. ‘CenterWindow’, ‘WindowXPosition’ and ‘WindowYPosition’ variables. This way these variable will be saved in the profile when the profile is saved, and be reloaded. I added ‘CenterWindow’ to be added with a ‘true’ value for the default value so it will run just like it did before.

But if you set ‘CenterWindow’ to ‘false’ then inside LwjglWindow.java (lwjgl3 code) it will look at these new values, it will determine to center the window or use the position values to place the window back at the location the user last moved it to.

Of course, these values are only updated if the “program” updates this value. So if you want to save screen position, you can save them on closing to and on restart put the window back into the same location.
LWJGL3-JME library would block the current thread when executing LWJGL3.    Instead of calling run() that is blocking,  made it work like LWJGL2-JME library when they start it as a thread so run gets called. I commented out the run() function and replaced it with Thread.start().
LWJGL3-JME projects was doing a call that is blocking the current thread.  I changed it to match how LWJGL2-JME project launches the Context Window.
LWJGL3-JME projects was doing a call that is blocking the current thread.  I changed it to match how LWJGL2-JME project launches the Context Window.
…MonkeyEngine#1657

Updating all references to setDepthTexture  and setColorTexture from old system to the new system.
@stephengold stephengold linked an issue Dec 3, 2021 that may be closed by this pull request
@stephengold stephengold added this to the v3.5.0 milestone Dec 3, 2021
@stephengold
Copy link
Member

Please go back check for unused imports in the files you modified.

@bob0bob
Copy link
Contributor Author

bob0bob commented Dec 4, 2021

They are removed.

@stephengold
Copy link
Member

Codacy thinks there are still 2 new unused imports in AbstractShadowRendererVR.java
Please take another look.

@bob0bob
Copy link
Contributor Author

bob0bob commented Dec 4, 2021

What 2 imports. My environment doesn't show any unused. I see 2 in AbstractShadowFilterVR.java

@stephengold
Copy link
Member

com.jme3.texture.FrameBuffer.FrameBufferBufferTarget
com.jme3.texture.FrameBuffer.FrameBufferTextureTarget
both in AbstractShadowRendererVR.java (not AbstractShadowFilterVR.java)

@bob0bob
Copy link
Contributor Author

bob0bob commented Dec 4, 2021

Got looking at wrong branch.

@stephengold
Copy link
Member

The code formatting is inconsistent, but it'll be easier for me to fix that directly during integration than to explain precisely what I want changed.

I'm uneasy about adding static methods to the FrameBufferTarget class. I suspect that's not what @riccardobl had in mind when he deprecated setDepthTexture() and setColorTexture(). However, I haven't come up with a better solution, so it'll have to do.

My biggest concern is test coverage. What tests have you run with these changes?

Got looking at wrong branch.

That happens to me often. You have my sympathy.

@bob0bob
Copy link
Contributor Author

bob0bob commented Dec 6, 2021

do you guys have a document on formatting requirements. I know many people have profiles for different environments so you can use that directly and it has the same style.
I didn't see anything like that.

@stephengold
Copy link
Member

do you guys have a document on formatting requirements. I know many people have profiles for different environments so you can use that directly and it has the same style. I didn't see anything like that.

We recently added Java style guidelines to CONTRIBUTING.md. It's basically Google style with a handful of local mods. It covers formatting as well as other style issues such as naming and javadoc.

@stephengold
Copy link
Member

What tests have you run with these changes?

@bob0bob
Copy link
Contributor Author

bob0bob commented Dec 9, 2021

I would test . I ran them against all the test applications that where altered.
Then a FrameBuffer examples and a water example.

That should about cover it all.

@stephengold
Copy link
Member

Alright, then. Thanks for your contribution!

@stephengold stephengold merged commit 53d4704 into jMonkeyEngine:master Dec 9, 2021
@bob0bob bob0bob deleted the Update_new_frameBuffers branch December 14, 2021 03:10
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.

using deprecated FrameBuffer methods in jme3-core and jme3-desktop

2 participants