Forged Alliance Forever Forged Alliance Forever Forums 2017-05-17T22:09:12+02:00 /feed.php?f=53&t=14382 2017-05-17T22:09:12+02:00 2017-05-17T22:09:12+02:00 /viewtopic.php?t=14382&p=149036#p149036 <![CDATA[Re: Mirroring Decals/Props/Units]]>
Anihilnine wrote:
So I guess the mirrored version of each decal needs to get added to faf codebase now right?

Currently the script places the mirror versions of decals in a sub folder of the map folder. To prevent having two mirrored versions for the same decal when used in two different maps, we would need to add them to faf codebase to save some space, yes.
I'm not yet satisfied with mirrored normals for decals, because swapping 8 bit alpha and 6 bit green channel can result in a serious amount of artifacts. I plan to save normal uncompressed or something to get rid of these artifacts, but didn't tried it yet. Also I'm currently looking into mirroring meshes of units (scm files) :roll:

Statistics: Posted by b2ag — 17 May 2017, 22:09


]]>
2017-05-05T05:28:10+02:00 2017-05-05T05:28:10+02:00 /viewtopic.php?t=14382&p=147898#p147898 <![CDATA[Re: Mirroring Decals/Props/Units]]> Statistics: Posted by nine2 — 05 May 2017, 05:28


]]>
2017-05-04T02:34:18+02:00 2017-05-04T02:34:18+02:00 /viewtopic.php?t=14382&p=147787#p147787 <![CDATA[Re: Mirroring Decals/Props/Units]]> https://github.com/b2ag/scmap_mirror_tool

Statistics: Posted by b2ag — 04 May 2017, 02:34


]]>
2017-04-16T18:47:00+02:00 2017-04-16T18:47:00+02:00 /viewtopic.php?t=14382&p=147024#p147024 <![CDATA[Re: Mirroring Decals/Props/Units]]>
Anihilnine wrote:
We'll just mirror the normal as well.


You gave a really good hint here. I successfully fixed wrong normals by swapping channel green and alpha for the mirrored decals. Thanks!

EDIT:

Current WIP-Version:
https://pastebin.com/kNctKNMq
Features:
- mirrors decals, props and units positions
- mirrors decal albedos and normals
- rotates props to look better after position is mirrored
- replaces unit types with mirror version for a few walls
- mirrors heightmap (only left-right yet)
Requirements:
- python-lupa (to read in "_save.lua")
- ImageMagick (to transfrom decals and heightmap)
- python 3 (maybe even 3.5 or 3.6)
Limitations:
- only left-right and diagonal top-left to bottom-right mirror options are tested/implemented
- you have to find and change the hard-coded path to my env.scd file to use decal texture mirror
- script could miss out on units in places I've never seen in the one _save.lua I've used for testing

Have fun!

PS: This huge file should be split up into at least three files, but probably even more :oops:

Statistics: Posted by b2ag — 16 Apr 2017, 18:47


]]>
2017-04-16T03:42:32+02:00 2017-04-16T03:42:32+02:00 /viewtopic.php?t=14382&p=146999#p146999 <![CDATA[Re: Mirroring Decals/Props/Units]]> Statistics: Posted by nine2 — 16 Apr 2017, 03:42


]]>
2017-04-16T03:29:10+02:00 2017-04-16T03:29:10+02:00 /viewtopic.php?t=14382&p=146998#p146998 <![CDATA[Re: Mirroring Decals/Props/Units]]>
Anihilnine wrote:
You can balance a map through rotation, not via mirroring. Because of decals

I wrote a script to mirror decal positions, rotations and even the textures (with ImageMagick) just to see it's not possible.
The culprit is that decal textures have a "sun is coming from this direction" information rendered into it. Mirror and I guess even rotate are messing with that.

Sources: https://pastebin.com/TEsrGcJf

Statistics: Posted by b2ag — 16 Apr 2017, 03:29


]]>
2017-04-16T01:54:46+02:00 2017-04-16T01:54:46+02:00 /viewtopic.php?t=14382&p=146996#p146996 <![CDATA[Re: Mirroring Decals/Props/Units]]>
Paradoxon wrote:
Does it affect balance and gameplay if decals are not perfectly mirrored?


it looks stupid

Statistics: Posted by nine2 — 16 Apr 2017, 01:54


]]>
2017-04-15T19:08:26+02:00 2017-04-15T19:08:26+02:00 /viewtopic.php?t=14382&p=146978#p146978 <![CDATA[Re: Mirroring Decals/Props/Units]]>

You can balance a map through rotation, not via mirroring. Because of decals

Does it affect balance and gameplay if decals are not perfectly mirrored? If you mirror them it will require a considerable effort to edit or replace them to fit the map, but is there any significant impact?


... and maybe don't give to many fs about the props. ...

I don't know how the reclaim range of props is determined, but i guess as long as you choose somewhat symmetrical ones and their symmetry axis intersects with the location coordinates this too should not be a major problem.

Statistics: Posted by Paradoxon — 15 Apr 2017, 19:08


]]>
2017-04-15T15:57:03+02:00 2017-04-15T15:57:03+02:00 /viewtopic.php?t=14382&p=146960#p146960 <![CDATA[Re: Mirroring Decals/Props/Units]]> Statistics: Posted by nine2 — 15 Apr 2017, 15:57


]]>
2017-04-15T15:19:42+02:00 2017-04-15T15:19:42+02:00 /viewtopic.php?t=14382&p=146958#p146958 <![CDATA[Re: Mirroring Decals/Props/Units]]>

One way this still could work is to create flipped versions of every decal outside of SC and maybe don't give to many fs about the props. But new decals would increase map size dramatically.

Statistics: Posted by b2ag — 15 Apr 2017, 15:19


]]>
2017-04-15T10:43:09+02:00 2017-04-15T10:43:09+02:00 /viewtopic.php?t=14382&p=146937#p146937 <![CDATA[Re: Mirroring Decals/Props/Units]]> Object Coordinate Transformation Script

I don't think it is made to mirror objects, but maybe you could use the resize function for that.

Statistics: Posted by Paradoxon — 15 Apr 2017, 10:43


]]>
2017-04-15T01:35:30+02:00 2017-04-15T01:35:30+02:00 /viewtopic.php?t=14382&p=146923#p146923 <![CDATA[Re: Mirroring Decals/Props/Units]]> Statistics: Posted by nine2 — 15 Apr 2017, 01:35


]]>
2017-04-14T21:20:57+02:00 2017-04-14T21:20:57+02:00 /viewtopic.php?t=14382&p=146908#p146908 <![CDATA[Re: Mirroring Decals/Props/Units]]> viewtopic.php?f=45&t=14381

Statistics: Posted by b2ag — 14 Apr 2017, 21:20


]]>
2017-04-14T18:30:37+02:00 2017-04-14T18:30:37+02:00 /viewtopic.php?t=14382&p=146896#p146896 <![CDATA[Re: Mirroring Decals/Props/Units]]>
I didn't know you could export them....

So depending on your standards and how fast you want that i could help

Statistics: Posted by Paradoxon — 14 Apr 2017, 18:30


]]>
2017-04-14T15:08:48+02:00 2017-04-14T15:08:48+02:00 /viewtopic.php?t=14382&p=146888#p146888 <![CDATA[Mirroring Decals/Props/Units]]>
If you are a mapper you most likely already hit the ''can't mirror across a center line'' limitation. For those who didn't, the official Map Editor doesn't support mirroring decals and props across center-line, it only supports rotating them around map center. this ia HUGE limitation, becouse we can make only maps that are symetric over a diagonal line.

But good news! I figured out a way to do it, but I NEED HELP!

I need someone to write a code that searches for values in a document and replaces them. More info on what values needs to be changes and how are in this document:

https://goo.gl/si1vGJ

For now it would be nice to have a basic script in any language the coder prefers. Later on it would be nice to have an application so users with no coding experience can use this tool as well. I will be more than happy to provide any testing for this!

Thanks for reading and i hope someone will help me in this dire situation ;)

credits: Exotic_Retard for help with mirroring values

Statistics: Posted by Tokyto — 14 Apr 2017, 15:08


]]>