Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 4 5 [6]

Author Topic: DWARF VISION ingame realtime portrait generator [0.2.2 FABULATION UPDATE]-HALTED  (Read 43106 times)

Laterigrade

  • Bay Watcher
  • Is that a crab with
    • View Profile

thanks, bay12forums, very cool
(why are you looking at me like that I’m being sincere)
Logged
and the quadriplegic toothless vampire killed me effortlessly after that
bool IsARealBoy = false
dropping clothes to pick up armor and then dropping armor to pick up clothes like some sort of cyclical forever-striptease
if a year passes, add one to age; social experiment

DolorousJohn

  • Escaped Lunatic
    • View Profile

I've updated the github with the missing dwarfinfo plugin.
https://github.com/RustKnight/Dwarf-Vision/tree/main

For those interested they can now compile it for the latest version of dfhack.

This is great, but I'm too dumb to figure out how to compile it correctly, any chance of an updated version for the dumb dumbs like me?
Logged

crispy_ross

  • Escaped Lunatic
    • View Profile

Here is my build for 0.47.05:

https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0
https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection

I don't know if this is the "correct" way to build it, but I downloaded the dfhack source, put dwarfinfo.cpp file in /plugins, added "dfhack_plugin(dwarfinfo dwarfinfo.cpp)" to /plugins/CMakeLists.txt, then built dfhack using their instructions.
Logged

DolorousJohn

  • Escaped Lunatic
    • View Profile

You are an absolute lad. Thank you.
Logged

AudiRgr8

  • Bay Watcher
    • View Profile
Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
« Reply #79 on: October 16, 2021, 07:33:49 am »

This is so awesome! PTW

How did you create this man? Did you draw each feature individually and mash it together in a generator or is there machine learning involved? I've recently got into coding C# and would love to do something like this one day!

Cheers

Logged

Rust_Knight

  • Bay Watcher
  • Click signature for DF Procedural Portraits!
    • View Profile

Another section was added at the end of the first post explaining the status of the project.
Your praises delight us and humble us in the same time. We are grateful for this.
Thank you for being with us and we hope that in the future we will meet again.


EDIT: Reply for AudiRgr8

Sorry to have greeted you with such news!
Yes, each body part has dozens of variants and our generator just takes those images and mashes them together (well, it can also read textual description of a dwarf and generate a -close as possible with given assets- portrait). No machine learning is involved.
I'd recommend something for you, if you plan to get familiar with C# and wish to do similar generators.
Take a look at this fan-made tool of Crusader Kings 2 generator: https://github.com/rquinio/PortraitBuilder

To be frank, the code architecture is quite advanced, much more modular than my approach for Dwarf Vision and you definitely shouldn't be surprised if you don't understand the overall architecture of the code at start. You need some exposure/bit of experience to understand what is going on.
Learn a bit about event systems / design patterns, come back again at it, scratch your head, learn what you can, repeat and enjoy the journey!







« Last Edit: October 16, 2021, 02:15:27 pm by Rust_Knight »
Logged
DWARF VISION - REALTIME IN-GAME DF PORTRAIT GENERATOR

Every little bit of your help on our Patreon GREATLY fuels our energy to further develop DWARF VISION !

FrankVill

  • Bay Watcher
    • View Profile
Re: DWARF VISION in-game realtime portrait generator [0.2.2 FABULATION UPDATE]
« Reply #81 on: October 17, 2021, 08:04:03 am »

Here is my build for 0.47.05:

https://www.dropbox.com/s/9dmukmzwbn97312/dwarfinfo.plug.dll?dl=0
https://www.virustotal.com/gui/file/9c29dd97e35f7293441e2210868e7681edde4a5af448d6d7fb43983ed3f20058/detection

I don't know if this is the "correct" way to build it, but I downloaded the dfhack source, put dwarfinfo.cpp file in /plugins, added "dfhack_plugin(dwarfinfo dwarfinfo.cpp)" to /plugins/CMakeLists.txt, then built dfhack using their instructions.

Marvelous !! :)
I should add that it only works on DFHACK 0.47.05-r02, I have tried it on r03 and it doesn't work. So if someone uses PeridexisErrant, they have to use the old version 0.47.05-r04.
Thank you very much for doing that.

Another section was added at the end of the first post explaining the status of the project.
Your praises delight us and humble us in the same time. We are grateful for this.
Thank you for being with us and we hope that in the future we will meet again.


EDIT: Reply for AudiRgr8

Sorry to have greeted you with such news!
Yes, each body part has dozens of variants and our generator just takes those images and mashes them together (well, it can also read textual description of a dwarf and generate a -close as possible with given assets- portrait). No machine learning is involved.
I'd recommend something for you, if you plan to get familiar with C# and wish to do similar generators.
Take a look at this fan-made tool of Crusader Kings 2 generator: https://github.com/rquinio/PortraitBuilder

To be frank, the code architecture is quite advanced, much more modular than my approach for Dwarf Vision and you definitely shouldn't be surprised if you don't understand the overall architecture of the code at start. You need some exposure/bit of experience to understand what is going on.
Learn a bit about event systems / design patterns, come back again at it, scratch your head, learn what you can, repeat and enjoy the journey!









Thanks for doing this project, I hope that one day you can continue with it. I am frankly excited about its potential.
Logged
Pages: 1 ... 4 5 [6]