If you use the SDK, convert model mesh.xml file to .j3o.
Edit it in SceneComposer.
Select the models geometry node in the scene explorer panel to the left.
In the properties panel to the right, under geometry, next to Material, hit the drop down arrow and select:
Yes.
Best practice is to export into the Textures folder first . Generate the .j3o. If your going to generate a material file then do that. If not, create the material in the material folder. Last, move your .j3o. Basically, use the texture folder to store everything it takes to make the model work. Makes it easy to re-create the model.
I have followed the eclipse setup from the wiki and getting I am getting this output:
Jan. 22, 2018 7:36:30 NACHM. com.jme3.system.JmeDesktopSystem initialize
INFORMATION: Running on jMonkeyEngine 3.2-stable
* Branch: HEAD
* Git Hash: f85624a
* Build Date: 2018-01-21
Jan. 22, 2018 7:36:31 NACHM. com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFORMATION: LWJGL 2.9.3 context running on thread jME3 Main
* Graphics Adapter: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_c791f781cd94491f\nvldumdx.dll
* Driver Version: null
* Scaling Factor: 1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jme3.util.ReflectionAllocator (file:/C:/Users/MyUsername/jME3.2-stable/lib/jme3-core.jar) to method sun.nio.ch.DirectBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.jme3.util.ReflectionAllocator
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan. 22, 2018 7:36:31 NACHM. com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFORMATION: OpenGL Renderer Information
* Vendor: NVIDIA Corporation
* Renderer: GeForce GTX 1080/PCIe/SSE2
* OpenGL Version: 4.6.0 NVIDIA 388.31
* GLSL Version: 4.60 NVIDIA
* Profile: Compatibility
Jan. 22, 2018 7:36:31 NACHM. com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFORMATION: Audio Renderer Information
* Device: OpenAL Soft
* Vendor: OpenAL Community
* Renderer: OpenAL Soft
* Version: 1.1 ALSOFT 1.15.1
* Supported channels: 64
* ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
* AL extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
Jan. 22, 2018 7:36:31 NACHM. com.jme3.audio.openal.ALAudioRenderer initOpenAL
WARNUNG: Pausing audio device not supported.
Jan. 22, 2018 7:36:31 NACHM. com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFORMATION: Audio effect extension version: 1.0
Jan. 22, 2018 7:36:31 NACHM. com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFORMATION: Audio max auxiliary sends: 4
How to solve the warnings from the illegal reflective access operation and whatâs the warning âPausing audio device not supportedâ? I am also getting this warning in the SDK.
I also get the warning about pausing audio devices on both of my (Linux) workstations. Is the build crashing or otherwise failing? If not, you can probably ignore the illegal reflection warning.
Regarding pausing audio - I get it in the SDK. I think the javadoc references that it is android related or an android capability. I donât think it affects anything else.
Copy All Material to one file.
This file Has to be called the same name as the .mesh.xml mince the .mesh.xml add .material
Example: model.mesh.xml and model.material
Load the file in JME
spatial = assetManager.loadModel(âModels/Voyager/model.mesh.xmlâ);
Note: For stars app config.json we use a model path like â/Models/Voyagerâ.
Then the loader will look for all .xml files in /Models/Voyager and load them to spatials.