Questions of a new user

  1. last year
    Edited last year by MNetoNX

    Hello. I am totally new to Polycode.

    Already understood the program interface, but I have some doubts. Can you help me?

    1. Reading the documentation, I saw a scene that has a standard RootIdentity. And observing right pane of the program in the List view, I realized that the scenes have an item called Root ... are the same thing? Root = RootIdentity?
    2. There is a bug in one of the central panel buttons: every time I try to add the primitive via the interface button ("Add Primitive") the program unexpectedly quits. I am using Linux (Kubuntu 15.10).
    3. I can not properly use the Config class. When I try to save two namespaces, the second overwrites the first in the file. In addition, the configuration file does not show the namespace name ... I also can not retrieve the string saved. Can you explain me how to properly use this class?
    4. I read somewhere that there was a possibility of the program compile Android in the future. This will be implemented?
    5. The program editor and the interface in Linux does not allow Unicode characters (my language is Portuguese). This is the standard of the program or a temporary bug?

    The program is very interesting.

    Thanks for the great work.

  2. Deleted last year by MNetoNX
  3. Edited last year by MNetoNX

    Hello.
    I solved the problem of question 3. I thought erroneously that each file contained multiple namespaces! In fact, from what I understand now, each file has a unique namespace and vice versa.
    I can already recover the data saved on file.

    It remains only a question related to item 3:
    If each file has a unique namespace, which is the purpose of namespaces?
    I can use them, but not yet realized its full potential.

    The following is a sample code to show how I am using the Config class.
    For convenience, I am writing the namespace name equal to the file name.

    ConfigFile = Config()
    ConfigFile:setStringValue("SaveData", "Key", "Value")
    ConfigFile:setStringValue("Program", "Title", "A Test Program")
    
    -- Save data: two files
    ConfigFile:saveConfig("SaveData","/home/user/SaveData.cfg")
    ConfigFile:saveConfig("Program","/home/user/Program.cfg")
    
    -- Load data
    ConfigFile:loadConfig("SaveData","/home/user/SaveData.cfg")
    ConfigFile:loadConfig("Program","/home/user/Program.cfg")
    
    Key = ConfigFile:getEntry("SaveData", "Key")
    Title = ConfigFile:getEntry("Program", "Title")
    
    print(Key.stringVal)
    print(Title.stringVal)

    No error occurs.

  4. fodinabor

    23 Apr 2016 Administrator
    Edited last year by fodinabor

    1. yeah I think you at least treat them as if they are the same.

    2. you mean this button? -image-

    3. the purpose of the namespaces is that you might have different components in your application that might use same key names - by using different namespaces they don't override each other.
    There are the UIThemes using the "Polycode" namespace. If you would need a value using the key "uiBgColor" for anything you're doing, you would unintentionally override the color in the config of Polycode and all your UI elements would look quite funny or if your value is no hex string your app might even crash.

    4. there's a new branch with a much faster renderer making this possible - it is already possible but very experimental to build Polycode for Android and iOS. Still working on it.

    5. hm.. yeah.. I also do struggle with that.. input boxes currently use usual "char" - but it actually would be possible to use UTF-8 strings... but that's currently not implemented for input.

  5. Thank you!

    About item 2, this is the button.
    The command "Add Primitive" closes the Polycode.

    About item 3, the function getStringValue don't returns the string value:

    s = ConfigFile:getStringValue("Key", "Value")
    print(s)

    The code prints: "Class of type String".

    The functions getNumericValue and getBoolValue working fine.

  6. fodinabor

    23 Apr 2016 Administrator

    Hmm.. the getStringValue seems like a bug..
    seems like the conversion from a String& to String does not work very well in Lua... I'll file a bug report..

  7. Thanks.

    As a workaround, the getEntry method works correctly, allowing to use variables to retrieve string values through stringVal property of the ConfigEntry class.

  8. the error in item 2 above occurs when I try to import 3D models also. If I import, for example, a simple cube made in Blender for Polycode it closes unexpectedly.

    If I run the program via terminal, this accused segmentation fault.

  9. fodinabor

    25 Apr 2016 Administrator

    See issues #687 and #688

  10. Thank you for reporting the bugs, fodinabor.

    From what I understand, the problem is related to Polycode interface, which can not display 3D ... so early, I think the two problems reported in issue 688 are related.

    Even then it is perfectly possible to add 3D primitives via code.

    While the problem is not resolved, I learn programming in Lua script in Polycode.

  11. fodinabor

    26 Apr 2016 Administrator

    you said the IDE is crashing when clicking on those buttons, right?
    It's not the Player, that you start to test your application that crashes?

  12. Edited last year by MNetoNX

    No. Is the IDE that closes unexpectedly ...

    Player works nice and faster. All that is added via script works in the player. I added several 3D primitives (via script) and made a short animation where the camera moves about objects (also via script) and the player worked with a good performance, without crashes.

    However, the IDE closes when I try to view any 3D model in the center window. Now discovered, even if I click on the name of a .mesh file in the Project Browser, the IDE closes instantly. That is, any situation where I need to view a 3D model in the center window causes a failure in Polycode.

  13. I tested the Polycode in Windows 8, and this error does not occur. I think it's something Linux specific.

  14. fodinabor

    30 Apr 2016 Administrator

    I gues I should have added that earlier :$

  15. Edited last year by MNetoNX

    Excuse me. I did not pay attention to the title of issue # 688 ("IDE Seg fault on Linux").

  16. Edited last year by MNetoNX

    Hello.

    I found more information about the problem: is the driver that I use on Linux (I know ... I should have given this information before ...).

    My graphics card is an AMD R7 260X. I was using Linux with the Radeon driver. After installing the fglrx driver, the close unexpectedly of Polycode stopped occur.

    The only drawback is that this driver will be discontinued and replaced by another driver. In ubuntu 16.10 there will be no possibility to install fglrx, unless the new alternatives (Radeon or amdgpu).

    Today I will make a Kubuntu 16.10 installation to view the status of these drivers and say how Polycode working on them.
    Thanks.

  17. fodinabor

    4 May 2016 Administrator

    ok - thanks for the info!

  18. I did the installation of Kubuntu 04.16 ... the video driver used is the radeon and, so far, you can not install the fglrx this version of ubuntu.

    The IDE does not close more when using 3D objects, though they are not rendered correctly.

    I did the installation of Kubuntu 04.16 ... the video driver used is the radeon and, so far, you can not install the fglrx this version of ubuntu.

    The IDE does not close more when using 3D objects, though they are not rendered correctly.

    Textures, colors, shadows, are not displayed in the IDE. The most that can is to show the outline of objects.

    The player does not show anything. Just a blank screen.

    With the driver fglrx none of these problems occur, but it can not be installed from the Ubuntu/Kubuntu 16.04 because it is deprecated.

    I believe that with time, the drivers for AMD video cards will improve and these problems will disappear. But for now, some users will prefer to stay even in Ubuntu 14.04 because these open source drivers do not compare to the old fglrx in terms of gaming performance, etc.

    Sorry if this discussion ends up getting off topic.

  19. I am presently running 16.04 with an R9 270x. I am running into the same issue with outlines only being visible. It appears to only be with primitives though; creating a sprite with a texture works correctly, etc.

  20. @zeebok I am presently running 16.04 with an R9 270x. I am running into the same issue with outlines only being visible. It appears to only be with primitives though; creating a sprite with a texture works correctly, etc.

    3D models imported from Blender also only show the outlines here.

    You can see the models in Polycode player?

  21. Newer ›
 

or Sign Up to reply!