-
Sploreg replied to the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 7 hours agoYes I meant it just as a launch of the AI code, which then often runs on a separate thread.
But really, AI usually doesn’t need to be absolutely precise when it runs, give or take half a second would be the […] -
pspeed replied to the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 8 hours ago@zarch said:
Well that would depend on how “busy” the AI is. You may well want to run the AI in a separate thread and then only act on them in the rendering thread…I completely agree with you but the […]
-
zarch replied to the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 9 hours ago@Sploreg said:
Just keep a counter that increments each frame, then when it is over 1.0f (seconds), run your AI code and reset the counter.
Do this in a control.Well that would depend on how “busy” the […]
-
Sploreg replied to the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 12 hours agoJust keep a counter that increments each frame, then when it is over 1.0f (seconds), run your AI code and reset the counter.
Do this in a control. -
pspeed replied to the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 12 hours agoIs your AI a central system or lots of little components?
-
MartinPoirierTheoret started the forum topic What is the best way to call something every X (relative timer like the hello_main_event_loop tutori in the group
Troubleshooting – GUI 1 day, 14 hours agoI want to know the best way to call a function every specific time.
If I base myself to the tutorial http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_main_event_loop you can rotate a item base on the […]
-
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days agoI agree with stats. It would be preferable if it remained on top, but except for some major changes I don’t see a workaround.
Ideally, it would be best if we could indiscriminately tell whatever is in gui […]
-
pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days agoI don’t think there is any requirement that you use JME’s class in this case, though. As I recall, that particular one doesn’t do very much but even so, perhaps just making it easier to extend to swap the […]
-
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days agoWell, I could branch the rendering to either postFrame or postQueue with a boolean flag with the default set as it is right now.
In the end, the way it’s set now, anyone who is using anything on the GUI bucket […]
-
normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 2 hours agoNah, this will only help you and cause lots of others to moan. If at all it should be optional. I don’t know about the implications though.
-
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 3 hours ago@madjack said:
So, instead of having NiftyJmeDisplay draw in postQueue I moved its stuff into postFrame() and it works.The question is: is that viable?
After lots of testing I can see no drawback from […]
-
pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 3 hours ago@normen said:
..as long as nifty uses jme’s font rendering system right?I suppose it could generate its own bitmaps. It has only a few ways to paint on the canvas.
-
normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 3 hours ago@pspeed said:
There’s really no way around it since Nifty does not interact with JME as a scene graph but as a canvas...as long as nifty uses jme’s font rendering system right?
-
pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 3 hours ago@normen said:
Alright, thats what I wanted to know, thought that was solved.I was asking
The way it caches BitmapText instances from one frame to another is based on the text. So if you change it a […]
-
normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 3 hours ago -
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 6 hours agoOh gawd.
I just had an epiphany. Since NiftyJmeDisplay uses postQueue… Then it hit me. I figure, if it’s rendered before everything else, let’s move it AFTER everything else have been rendered. That way it […]
-
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 7 hours agoI know. Just wanted to point out that the only thing out of the ordinary was that I’m not using the default font.
-
pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 7 hours ago@normen said:
Do you use your own font system? Nifty doesn’t render fonts much differently than the rest of jme, in fact jme’s text rendering is used for nifty too. Not saying anything about your empiric […] -
normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 7 hours agoNah I meant for rendering..
-
madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group
Troubleshooting – GUI 2 days, 7 hours ago@normen said:
Do you use your own font system?
Nope. The font I use has been made by BMFont and that’s pretty much it. I use Segoe_UI_semibold with different sizes, so nothing out of the ordinary.
- Load More
