[REL] Blender importer/exporter for PAPA files - v0.5

Discussion in 'Mod Discussions' started by Raevn, June 15, 2013.

  1. nuketf

    nuketf Active Member

    Messages:
    702
    Likes Received:
    130
    pls fix?
  2. nuketf

    nuketf Active Member

    Messages:
    702
    Likes Received:
    130
    i need this fixed >:O
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    You could try to do it yourself if you need it this much.
  4. nuketf

    nuketf Active Member

    Messages:
    702
    Likes Received:
    130
    i have no clue how to code at all
  5. nuclearedantimatter

    nuclearedantimatter New Member

    Messages:
    5
    Likes Received:
    1
    Thank you so much!

    This is awesome!

    How did you do it?
    WwAiRtRhIiOnR likes this.
  6. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    Sorry for being so late
    My e-mail notification for this thread hasen't worked till today.

    @nuketf
    @nuclearedantimatter
    I'll check and fix my .Blend file the next days and upload it with a detailed description right in the material.
  7. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    I've updated the Blender-file and will upload it soon.
    I've seen that not every model works with the importer.
  8. nuketf

    nuketf Active Member

    Messages:
    702
    Likes Received:
    130
    your going to fix this?
  9. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    Hope we will see a version 0.6 of the importer, so we can import more (maybe all) models (maybe with the animations).
    nuketf likes this.
  10. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    How to use:

    Install/activite importer:
    File
    user preferences
    Addons
    Instal from file
    io_scene_papa-v0.5.zip

    check if it's checked

    Data stored in:
    ...\Planetary Annihilation\media\pa\...
    [1] xxx.papa
    [2] xxx_diffuse.papa
    [3] xxx_mask.papa
    [4] xxx_material.papa
    [5] xxx_normal.papa

    Import model (not every model works):
    File
    import
    Planetary annihilation model (.papa)
    [1]


    save textures (outside Blender):
    papatextureeditor
    units: [2][3][4]
    terrain: [2][4][5]


    make a sinle user copy of the material for every unit type!
    Append the textures to the material


    If you want to know how it works don't be afrait of taking a look deep into the material.
    The shaders are just Node-Groups you can look into with [TAB].
    And if you find something to make the material better than make it better and upload it for other users.

    Attached Files:

    • PA.zip
      File size:
      108.3 KB
      Views:
      15
  11. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    It's a mix between "try and error" and reading the thread about specs for modding. (there is a difference between the described color meaning and how they are used; i think its a problem with the papatextureeditor)
    you can look into the material node-Groups in my updated file with [TAB] if you are interested.
  12. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    Nope, i can't code, too.
  13. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Oh, it could very well be that I mixed up the colour channels for certain texture formats. Most of those were greyscale, so I didn't have much to go on. Do you have an example of that? Though you might want to post that bug in the texture editor thread.
  14. nuclearedantimatter

    nuclearedantimatter New Member

    Messages:
    5
    Likes Received:
    1
    I was asking how the original person made it. It worked fine for me on blender 2.71.
  15. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    I built on the work of @LennardF1989 to fully reverse-engineer the format by looking at patterns along with some guesswork on what the data structures were. The process can be seen here: https://forums.uberent.com/threads/unofficial-papa-file-format.46767/
    The release of the papadump tool was especially useful for this.
  16. nuclearedantimatter

    nuclearedantimatter New Member

    Messages:
    5
    Likes Received:
    1
  17. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    Your link doesn't work......

    with original texture:
    upload_2014-7-31_16-57-47.png
    I've got to switch over the color of the unit and terrain textures like this:
    upload_2014-7-31_16-46-13.png
    In the texture | what it should be
    Red | Blue
    Green | Green
    Blue | Red

    with edited texture:
    upload_2014-7-31_16-56-43.png

    With the new combined colorchannels everything workt like dikribed in the specs.
    Last edited: July 31, 2014
  18. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Oops, made a slight mistake copying the link. Correct one. Anyway, doesn't matter.
    I fixed the colour bug on GitHub, but I'm unable to compile it for Windows at the moment because of trouble with the wine package. You seem to have a workaround already anyway.
  19. WwAiRtRhIiOnR

    WwAiRtRhIiOnR New Member

    Messages:
    14
    Likes Received:
    3
    Jup
    Just give me a hint if you fix the win version so I can update my blend file to delete the workaround.

    @everyone who uses my blend file not on win, but with the corrected textures:
    Just [tab] into the material and reconnect the nodes shown above in straight lines.
  20. lunaru

    lunaru New Member

    Messages:
    3
    Likes Received:
    1
    So is there no way to get into the textures?
    Just the models?

Share This Page