#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_rejected.png) \[SUBMISSION\] Doomed Buildings actors

##

- **kfpopeye**
- ![kfpopeye's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Dark Imp
- ![Dark Imp](https://www.realm667.com/media/kunena/ranks/rank_41_darkimp.png)

 Less More- Posts: 10
-
-

   5 years 1 week ago - 5 years 1 week ago [\#9063](#9063) by kfpopeye  *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9063)* was created by *kfpopeye*

> **Information:**
> **Name:** *Doomed Buildings*
> **Connection:** *Cloud Spawner (modified)*
> **Palette:** *PNG Truecolor*
> **Summon:** Building\_1 through Building\_18, Rubble\_1 through Rubble\_4 and Building\_1\_Demod though Building\_18\_Demod
> **Ambient Sound:** *No*
> **De-/Activatable:** Yes
> **Destroyable:** Yes
> **Special Effects:** *Cloud Spawner(modified) and Dust Cloud*
> **Brightmaps:** *None*
> **Actor modification:** *No*
> **ACS:** *No*
>
> **Credits:**
> **Code:** *kfpopeye*
> **GLDefs:**
> **Sounds:**
> **Sprites:** CGTrader.com and Free3D.com
> **Sprite Edit:** kfpopeye
> **Idea Base:** *Every city wad I ever played.*
>
> **Description:**
> 18 3D modeled buildings textured with Doom2 graphics (not included) so to fit in with the game. The buildings are animated to collapse to a demolished state. Also includes 4 piles of rubbish for garnish. All models are low poly, can be easily re-textured by editing the MODELDEF lump and spawn additional hit boxes for non-regular shapes. Refer to DOCUMENT lump for instructions.
>
> **Sprite:**
>
>  [ ![[img](https://i.imgur.com/7VCdsme.png) ](https://i.imgur.com/7VCdsme.png "[img")
>
>
>
> **Download Link:**
> https://mega.nz/file/gBg2WZCD#NyhBLx8pFAL6p9DVvlzZ0v2DZiiAgecskUJVvis49R0

 Last edit: 5 years 1 week ago by kfpopeye. Reason: added [SUBMISSION] to title

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   5 years 1 week ago [\#9087](#9087) by Gothic  Replied by *Gothic* on topic *[&lt;span class=](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9087)*

 They look really cool, but one thing that puts me off is the 3D smoke, I wonder if it would look better with smoke sprites instead.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **kfpopeye**
- ![kfpopeye's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Dark Imp
- ![Dark Imp](https://www.realm667.com/media/kunena/ranks/rank_41_darkimp.png)

 Less More- Posts: 10
-
-

   5 years 1 week ago - 5 years 1 week ago [\#9088](#9088) by kfpopeye  Replied by *kfpopeye* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9088)*

> [ Gothic wrote: ](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9087)

>
>  They look really cool, but one thing that puts me off is the 3D smoke, I wonder if it would look better with smoke sprites instead.

I thought of that but sprites are 2D and the model is 3D. The sprites would get clipped alot especially with multiplayer.

 Last edit: 5 years 1 week ago by Tormentor667.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **inkoalawetrust**
- ![inkoalawetrust's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11669.jpg?1718890853)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 254
-
-

   5 years 6 days ago [\#9107](#9107) by inkoalawetrust  Replied by *inkoalawetrust* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9107)*

 Why does the base building class have a function that seems to just spawn in a rocket, then modify it to just be an explosion ? Wouldn't it be better to just make an explosion actor and directly spawn that, no modification required ?
Code:

 private static void BldgExplosion(vector3 pos) { Actor boom = Actor.Spawn("Rocket", pos, NO_REPLACE); if (boom) { boom.Vel.z = random(0, 255)/128.; boom.SetStateLabel ("Death"); boom.bRocketTrail = false; boom.SetDamage(0); // disables collision detection which is not wanted here boom.tics -= random(0, 7); if (boom.tics &lt; 1) boom.tics = 1; } }

Also those rubble textures inside /textures/rubble/ take way too much space, they are 3 MB in size in total, which is about half of the file size of the whole PK3 archive, and it's only 4 textures.

You can use SLADE's PNG compression to cut their size by 400 KB with no quality loss*, you can do that by selecting a PNG or more, pressing right click, then going to Graphic&gt;Optimize PNG and clicking on it. But to do that you need to link the 3 PNG compression tools SLADE supports (PNGout, PNGCrush, DeflOpt). You can do that by downloading them off the internet, then going to Edit&gt;Preferences&gt;Graphics&gt;PNG to link them.

But besides optimizing them, what would help the most with decreasing their file size would be to decrease their resolution, the rubble models wouldn't look any worse if you just halved their texture resolution, not to mention that by decreasing their resolution they would just fit more in Doom, since the textures are 734x1042, when the building textures themselves are Doom 2's, and are therefore only about 64x128, that almost makes the rubble resolution like 6x larger. Removing the large amount of empty space at the bottom of the textures would also help a lot, because in PNGs even empty space takes a lot of disk space. Another optimization that could be done with little to no quality loss is making the PNGs 8-bit. In fact, here are the results of me applying all these optimizations mentioned in this paragraph to rubble3.png (The largest texture, even after optimization.):

File size outside of PK3/ZIP archive, post optimization: 940 KB

File size after cutting all of the empty bottom space: 920 KB

File size after resolution was cut down 50% using the Best Quality option in paint.net (Super Sampling): 260 KB (!!!)

File size after re-exporting the PNG to 8-Bit color: 84 KB (!!!)

 [ ![[img](https://i.imgur.com/bY8HlJL.png) ](https://i.imgur.com/bY8HlJL.png "[img")

If you compare it to the original texture, the only real difference is that this one is a bit more blurry, but that's only because I downscaled it with Best Quality/Super Sampling, you could downscale it with Nearest Neighbor scaling, get the same file size decrease, and still have it look crisp (Which is better IMO.).

*I know because I compressed them to see how much smaller they can get, or if you had already compressed them.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **kfpopeye**
- ![kfpopeye's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Dark Imp
- ![Dark Imp](https://www.realm667.com/media/kunena/ranks/rank_41_darkimp.png)

 Less More- Posts: 10
-
-

   4 years 11 months ago [\#9213](#9213) by kfpopeye  Replied by *kfpopeye* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9213)*

 Do I need to make these changes to get accepted?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **inkoalawetrust**
- ![inkoalawetrust's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11669.jpg?1718890853)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 254
-
-

   4 years 11 months ago [\#9215](#9215) by inkoalawetrust  Replied by *inkoalawetrust* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9215)*

 No but it would be good to optimize the graphics like I recommended since they currently take the most space out of anything else for no real reason. The thing about spawning a rocket that is instantly killed isn't as bad though, but spawning a custom explosion actor instead would make more sense.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 11 months ago [\#9216](#9216) by Gothic  Replied by *Gothic* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9216)*

 I suggest including a test map to show them off, it usually isn't necessary with regular props, but these are too big for any of the vanilla Doom 2 maps.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **kfpopeye**
- ![kfpopeye's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Dark Imp
- ![Dark Imp](https://www.realm667.com/media/kunena/ranks/rank_41_darkimp.png)

 Less More- Posts: 10
-
-

   4 years 11 months ago [\#9218](#9218) by kfpopeye  Replied by *kfpopeye* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9218)*

 OK, I reduced the size of the PNG's by 50% and optimized them in Slade. I left the blank parts in as removing this would mess up the UV mapping on the models.

The code you mention is taken from the Icon of Sin death state. It worked fine so I left it.

The updated ZIP file is here:
https://mega.nz/file/9NxyFbTD#ElrIt0o96xy_UrT0ZgZPgpXgfXiAHTQXl9qukBIrraw

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **kfpopeye**
- ![kfpopeye's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Dark Imp
- ![Dark Imp](https://www.realm667.com/media/kunena/ranks/rank_41_darkimp.png)

 Less More- Posts: 10
-
-

   4 years 11 months ago [\#9219](#9219) by kfpopeye  Replied by *kfpopeye* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9219)*

 I don't have a test map but I did make a Youtube video of the buildings:
https://youtu.be/GUd3iPGolg4

I also uploaded the Blender file to a cloud here:
https://mega.nz/folder/gYIzwKgZ#rgW1TqhASFG4hvkeAOYXBA

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **KILLA DIO**
- ![KILLA DIO's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11563.png?1598298529)
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 93
-
-

   4 years 11 months ago [\#9222](#9222) by KILLA DIO  Replied by *KILLA DIO* on topic *[\[SUBMISSION\] Doomed Buildings actors](https://www.realm667.com/forum/closed-submissions/1629-submission-doomed-buildings-actors#9222)*

 Making a test map couldnt be that difficult given that you in one in the video

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjI5LXN1Ym1pc3Npb24tZG9vbWVkLWJ1aWxkaW5ncy1hY3RvcnM/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
