Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading materials using FixedPipeline LightMode in jme 3.2 #3

Closed
Ali-RS opened this issue Mar 4, 2017 · 4 comments
Closed

Error loading materials using FixedPipeline LightMode in jme 3.2 #3

Ali-RS opened this issue Mar 4, 2017 · 4 comments

Comments

@Ali-RS
Copy link
Contributor

Ali-RS commented Mar 4, 2017

Hi
FixedPipeline light mode is removed in jme 3.2 so running SimArboreal-Editor with jme 3.2 jars I am getting

java.lang.UnsupportedOperationException
	at com.jme3.material.plugins.J3MLoader.readTechnique(J3MLoader.java:655)
	at com.jme3.material.plugins.J3MLoader.loadFromRoot(J3MLoader.java:777)
	at com.jme3.material.plugins.J3MLoader.load(J3MLoader.java:798)
	at com.jme3.asset.DesktopAssetManager.loadLocatedAsset(DesktopAssetManager.java:259)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:373)
	at com.jme3.material.Material.<init>(Material.java:108)
	at com.simsilica.arboreal.GroundState.initialize(GroundState.java:130)
	at com.simsilica.lemur.event.BaseAppState.initialize(BaseAppState.java:75)
	at com.jme3.app.state.AppStateManager.initializePending(AppStateManager.java:251)
	at com.jme3.app.state.AppStateManager.update(AppStateManager.java:281)
	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:236)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
	at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:193)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
	at java.lang.Thread.run(Thread.java:745)

should I make a PR and change all

Technique {
        LightMode FixedPipeline
    }


to SinglePass, in following materials ?

  • MultiResolution.j3md (in SimArboreal-Editor)
  • AxisBillboardLighting.j3md (in SimArboreal)
  • LeafLighting.j3md (in SimArboreal)
  • TreeLighting.j3md (in SimArboreal)
  • IndexedBillboardLighting.j3md (in SimArboreal)
@pspeed42
Copy link
Contributor

pspeed42 commented Mar 4, 2017

I think those techniques can just be removed, right? There is already a multipass.

I mean, adding single pass techniques might be nice but that's not the same as the FixedPipeline. There is no fixed pipeline anymore so techniques specific to that should just go away I guess.

@Ali-RS
Copy link
Contributor Author

Ali-RS commented Mar 5, 2017

Hm, yes, I removed them and it works fine now.
Should I make a PR ?

@pspeed42
Copy link
Contributor

pspeed42 commented Mar 5, 2017

That would be great.

@Ali-RS
Copy link
Contributor Author

Ali-RS commented Mar 6, 2017

Fixed #4

@Ali-RS Ali-RS closed this as completed Mar 6, 2017
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

No branches or pull requests

2 participants