jMonkeyEngine.org

  • Home
    • News
    • News Archives
    • Activity
    • Members
    • Links
  • Introduction
    • About
    • Website Manual
    • Core Team
    • Contributing
      • Anyone
      • Modeler
      • WebDev
      • Writer
      • Programmer
    • Product Showcase
  • Forums
    • Latest Topics
    • Forums Index
    • Troubleshooting >
      • General
      • Import Assets
      • Graphics
      • Effects
      • GUI
      • Physics
      • Sound
      • Networking
      • SpiderMonkey
      • TerraMonkey
      • jMonkeyPlatform
    • Project Relations >
      • Beta 1 Game Contest
      • Free Announcements
      • User Code & Projects
      • Site & Project Feedback
      • Feature Discussion
      • Small Talk
    • Development >
      • Developers
      • Contributions
      • Docs
      • jMonkeyPlatform
      • Android
      • MonkeyZone
    • Legacy jME2 >
      • Discussion
      • Contributions
      • Docs Discussion
  • Documentation
    • Installation & Setup
    • Tutorials & Docs
    • SDK Documentation
    • FAQ
    • JavaDoc
    • Docs Discussion
  • Projects
    • All Projects
    • Games
    • Tools
    • Open Source
  • Downloads
    • Download jME3 SDK
    • SVN Checkout
    • GoogleCode
    • Nightly Builds
  • Contact

Group Admins

  • Profile picture of void256
Group logo of Troubleshooting – GUI

Troubleshooting – GUI

Public Group active 4 hours, 52 minutes ago

Help with the GUI portion of jME.

  • Home
  • Forum
  • Members 4,416
  • RSS
  • Profile picture of Sploreg

    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 Group logo of Troubleshooting – GUITroubleshooting – GUI 1 day, 7 hours ago

    Yes 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 […]

  • Profile picture of pspeed

    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 Group logo of Troubleshooting – GUITroubleshooting – 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 […]

  • Profile picture of zarch

    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 Group logo of Troubleshooting – GUITroubleshooting – 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 […]

  • Profile picture of Sploreg

    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 Group logo of Troubleshooting – GUITroubleshooting – GUI 1 day, 12 hours ago

    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.

  • Profile picture of pspeed

    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 Group logo of Troubleshooting – GUITroubleshooting – GUI 1 day, 12 hours ago

    Is your AI a central system or lots of little components?

  • Profile picture of MartinPoirierTheoret

    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 Group logo of Troubleshooting – GUITroubleshooting – GUI 1 day, 14 hours ago

    I 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 […]

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days ago

    I 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 […]

  • Profile picture of pspeed

    pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days ago

    I 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 […]

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days ago

    Well, 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 […]

  • Profile picture of normen

    normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days, 2 hours ago

    Nah, 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.

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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 […]

  • Profile picture of pspeed

    pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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.

  • Profile picture of normen

    normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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?

  • Profile picture of pspeed

    pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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 […]

  • Profile picture of normen

    normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days, 3 hours ago

    @pspeed said:
    But for rapidly changing text, the Nifty->JME layer will create a new BitmapText each frame.

    Alright, thats what I wanted to know, thought that was solved.

    @madjack said:
    I know.

    I was asking ;)

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days, 6 hours ago

    Oh 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 […]

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days, 7 hours ago

    I know. Just wanted to point out that the only thing out of the ordinary was that I’m not using the default font.

  • Profile picture of pspeed

    pspeed replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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 […]

  • Profile picture of normen

    normen replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – GUI 2 days, 7 hours ago

    Nah I meant for rendering..

  • Profile picture of madjack

    madjack replied to the forum topic Custom GUI stuff + Nifty, Z-order. in the group Group logo of Troubleshooting – GUITroubleshooting – 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
Click below to login with..

Please create an account to get started.

Loading

Latest News

  • Happy earth day.. to our new contributors!
  • Google Summer of Code 2012

Recently Active Members

Profile picture of Setekh
Profile picture of hbandura
Profile picture of knucklesandwich
Profile picture of pspeed
Profile picture of iamcreasy
Profile picture of iwgeric
Profile picture of ikelaiah
Profile picture of Momoko_Fan
Profile picture of michaelkorshandbags123
Profile picture of sbook
Profile picture of cajtarth
Profile picture of neopangaia

Drag&Drop Help

  • 3D Scene Graph for Dummies
  • jME3 Math for Dummies
  • 3D Graphics Terminology
  • Hello Assets
  • Export from Blender
  • Custom Meshes
  • Physics
  • FAQ
  • Nifty’s bible

Group Tags

game jme3 online jme2 jme1 tool mmo boxes rpg crafting physics fps action gui baseball realistic gbui editor texture gis space turn-based platform tower-defense side-scroller betaville racing ogre marbles blue mmorpg albion scripting byte 1995 indie

Proudly powered by WordPress and BuddyPress.

jMonkeyEngine.org
  • Log In
  • Sign Up
  • Visit
    • Random Member
    • Random Group
close