Hey thanks for the fast reply:
- Well i think it would be much easier to attach a spline, than calculating the interpolation based on a private spline.
- Ok, i’ll try it. What i definitly need to instantiated before is the camera, assetmanager and inputmanager.
Edit: Argh, and the main viewport
All of the jme3 viewports, objects etc should be no problem, as long as your code works with the null renderer it will work with the canvas at any time too. If you access OpenGL directly (which you shouldn’t do anyway) then you’re screwed
That’s great …
And when do i have to apply the LWJGL-Renderer, because if the frame is shown the lwjgl renderer should be used.
Saw that there was a big update about that initiaize and update stuff.
Don’t now why but now my app is broken:
[java]Exception in thread “LWJGL Renderer Thread” java.lang.NullPointerException
Sorry i didn’t see this post before, please use a more explicit title to your posts, we are reading a lot of them and a catchy title can help a lot.
I can indeed help with question 1.
you can use MotionPath and use MotionTrack as a control over a spatial.
The MotionPath use a spline in the end, I guess I could add a constructor that have a spline parameter.
Note that for now MotionPath only support Linear and Catmull Rom interpolation, Bezier has been added to splines, but is not yet supported by motionPath.
Look at TestMotionPath or TestCameraMotionPath for an example on how to use it.
I know how to use the motion stuff, i only miss bezier curves ;) I try to bring our project from jme2 to jme3 and that's the last thing what has to be done ;)
Well, two options for you then, wait for me to do it, but I can't say when this will be done. Or...make it yourself and post a patch :D.
The main problem with bezier is that the resulting curve does not go through the control points, so the motionPath would need some adaptations.
for the second problem i'm afraid i can't really help you.
Ok thank, maybe i’ll fix it if there is enough time.
About the exception problem maybe shadowislord could say something. Latest revision says that there was a big refactoring.
Well i think i found the problem. I don’t inherit the SimpleApplication, i use the Application directly as parent class. The following lines seemed to cause the problem:
But now the canvas stays red all the time. Nothing to see anymore
That’s what it looks like if the frame is shown:
Edit: It seems that the input system doesn’t work anymore.
There should be some messages going back and forth that start with “OGL” and “EDT” in the log, can you post them?
unfortunately there aren’t any messages starting with OGL or EDT. Since the last update (rev. 7095) the canvas works. My program was adjusted to receive the initialize events even if the parent frame was set visible. There will be some changes now i think. Will give you a word if it works again…
Yeah it works now. Thanks