EOSERV Forum > Lounge > EMF2PNG Application [Released]
Topic is locked.
Page: << 1 2 3 4 5 >>
EMF2PNG Application [Released]
Author Message
Post #109892 EMF2PNG Application [Released]
I am working on an application for exporting EMF filestoimage.

Read the included readme.txt file located in the Official Build download.

Features
  • Layers
    • Ground [100%]
    • Objects [100%]
    • Overlay [100%]
    • Walls (D/R) [90%] (Animated trees, fire ect need to be dione)
    • Roof [100%]
    • Top [100%]
    • Shadows [100%]
    • Overlay 2 [100%]
  • File Dialog if not used from command line.
  • Can save output image in either BMP, PCX, TGA, JPEG and also PNG!
  • Can output image with tile specs. command line only. Accessed by using "-S" at the start of the command line.
Known Bugs
  • Fire, Christmas Tree ect does not work. (Any object disguised as a wall is not working)

As stated above, there is more to do.

This till will come in handy for map developers that wish to show a screenshot of the entire map and savesthe hassle of multiple small shots of the one map.
---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109893 Re: EMF2PNG Application

that seems like a fun project :P

render map, draw it, and save it.

I couldn't do that shit, nice work desmond!

13 years, 12 weeks ago
Post #109894 Re: EMF2PNG Application
Thank you :D

However someone should have thought of this ages ago for the mappers :P

Edit: btw, Render Map / Draw it is the same thing :D

Edit 2: The routine is:

  1. Load map
  2. Work out bitmap size
  3. Create bitmap
  4. Render the map to the bit map
  5. Save the bitmap
Application close :P
---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109895 Re: EMF2PNG Application

ah, I've never done any "advanced" graphic programming.

13 years, 12 weeks ago
Post #109899 Re: EMF2PNG Application

Sounds awesome man.

---
...
13 years, 12 weeks ago
Post #109903 Re: EMF2PNG Application

are you going to add scaling to it?

---
Beware of your thoughts, they become your words. Beware of your words, they become your actions.
Beware of your actions, they become your habits. Beware of your habits, they become your character.
Beware of your character, it becomes your destiny.
- Unknown
13 years, 12 weeks ago
Post #109908 Re: EMF2PNG Application
Redrocco posted: (7th Oct 2011, 12:42 pm)

are you going to add scaling to it?


I'm just adding draw as original and the bitmap will end up being the size of the map. It shouldn't take long to render a map like the maze but I shall try that rafter fixing the shadows and adding walls.
---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109909 Re: EMF2PNG Application

how are you converting the map to an image? btw looks great though, i only was able to save the display to a png or a single bitmap.

---
opensource isometric game engine ~ www.avac-engine.blogspot.com
13 years, 12 weeks ago
Post #109911 Re: EMF2PNG Application

By creating an image in memory and then drawing the map directly to it. After the map has been drawn it simply saves it as an image :P

---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109912 Re: EMF2PNG Application
Desmond Taylor posted: (7th Oct 2011, 03:21 pm)

By creating an image in memory and then drawing the map directly to it. After the map has been drawn it simply saves it as an image :P

mind showing some code? because how are you drawing the map directly to one bitmap?

---
opensource isometric game engine ~ www.avac-engine.blogspot.com
13 years, 12 weeks ago
Post #109913 Re: EMF2PNG Application

al_set_target_bitmap( ALLEGRO_BITMAP* bitmap );

That's the only code you need.

---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109915 Re: EMF2PNG Application
Desmond Taylor posted: (7th Oct 2011, 02:55 pm)

Redrocco posted: (7th Oct 2011, 12:42 pm)

are you going to add scaling to it?


I'm just adding draw as original and the bitmap will end up being the size of the map. It shouldn't take long to render a map like the maze but I shall try that rafter fixing the shadows and adding walls.

Nice work. Not to take the fame from you for your project idea, but after reading this I decided I would put together something like this. Managed to get it together and just about flawless in a little under a hour.

Screenshot


This is what it saved for aeven. Just posting the link as the image is too large to post on here. http://exile-studios.com/TehAeven.png

Download
Binary

I'm sure what Desmond comes up with will be much more flawless based on image dimensions and shadow positioning etc. I just wanted to see how fast i could whip up such a thing and this is what i came up with.

Edit - Also forgot to mention for those of you without common sense you gotta put the gfx files from the eo client in the gfx folder of this to have it work.
---
¨°º¤ø„º°¨ Exile Studios ¨°º„ø¤º°¨
13 years, 12 weeks ago
Post #109916 Re: EMF2PNG Application

Let me guess that's shitty VB and needs .NET :P

Write it in C++, I would have done mine by now but had to shop for a new freezer and computer chair. Now I'm just having problems with rendering the shadows as they seem to be transparent but white not black XD

---
I am an alien and not crazy!
13 years, 12 weeks ago
Post #109917 Re: EMF2PNG Application
Desmond Taylor posted: (7th Oct 2011, 03:48 pm)

Let me guess that's shitty VB and needs .NET :P

Write it in C++, I would have done mine by now but had to shop for a new freezer and computer chair. Now I'm just having problems with rendering the shadows as they seem to be transparent but white not black XD


Can't knock on it if it gets the job done :P. I agree would take much more time in C++. Also you using Allegro rather then the slow ass GDI+ im using will make yours greater then mine by far. I just had fun putting that together cause I didn't have shit better to do xD.
---
¨°º¤ø„º°¨ Exile Studios ¨°º„ø¤º°¨
13 years, 12 weeks ago
Post #109918 Re: EMF2PNG Application
Deathx posted: (7th Oct 2011, 03:51 pm)

Desmond Taylor posted: (7th Oct 2011, 03:48 pm)

Let me guess that's shitty VB and needs .NET :P

Write it in C++, I would have done mine by now but had to shop for a new freezer and computer chair. Now I'm just having problems with rendering the shadows as they seem to be transparent but white not black XD


Can't knock on it if it gets the job done :P. I agree would take much more time in C++. Also you using Allegro rather then the slow ass GDI+ im using will make yours greater then mine by far. I just had fun putting that together cause I didn't have shit better to do xD.
Lol, Well it's done now. Let's see if I can find a bug in yours as I was only making this because it could come in handy. If your's is bug free then no need for me to carry on XD

Edit: Found a bug, Do a check for gfx022.egf as it crashes.
---
I am an alien and not crazy!
13 years, 12 weeks ago
Page: << 1 2 3 4 5 >>
Topic is locked.
EOSERV Forum > Lounge > EMF2PNG Application [Released]