Mac Particle designer @2x @4x

Hi guys,

Does anyone have experience with Mac Particle Designer…

I am interested in @2x, @4x variations.

If I understand well I have to:

  1. Create blabla @4x.json and blabla @4x.png

  2. Go to photoshop and reduce blabla @4x.png (created in step 1) by 2 and 4, so I get blabla @2x.png and blabla.png

  3. Take reduced @2x and @1x png`s and create new @2x and @1x json files

Is there settings for this in Particle Designer (I did not find “Texture size” settings)?

Many many thanks!  :smiley:

Ivan

To use @4x… you have to choose the suffix use by phone resolution in config.lua:

application = { content = { width = 320, height = 480,  scale = "letterBox", fps = 30,       imageSuffix = {             ["@2x"]=2,     ["@4x"]=1,             ["@1x"]=3 } } }

You can find information in corona docs.

You can use the same json file. blabla.json and have blabla@4x.png and blabla@1x.png. When you create your json file save it as blabla.png and it will generate the blabla.json. After that rename blabla.png to blabla@1x.png and resize this image and save it with the name blabla@4x.png (for exemple if blabla.png is 2048x1024 resize it to 1024x512.

If the json file is correctly create (blabla.json) you will find sheetContentWidth=2048,sheetContentHeight=1024 (value of the sample).

At final you have blabla.json, blabla@1x.png, blabla@4x.png

Good luck 

Rémi

Tnx Remi!
So only one (biggest json) is required.

Yes the little one can work but it can produce bug  because if the width of the little image is 100 and the big image is 201. In the json file you will have sheetContentWidth=100 instead of 100.5 (impossible value require only int).

Good luck!

Rémi

To use @4x… you have to choose the suffix use by phone resolution in config.lua:

application = { content = { width = 320, height = 480,  scale = "letterBox", fps = 30,       imageSuffix = {             ["@2x"]=2,     ["@4x"]=1,             ["@1x"]=3 } } }

You can find information in corona docs.

You can use the same json file. blabla.json and have blabla@4x.png and blabla@1x.png. When you create your json file save it as blabla.png and it will generate the blabla.json. After that rename blabla.png to blabla@1x.png and resize this image and save it with the name blabla@4x.png (for exemple if blabla.png is 2048x1024 resize it to 1024x512.

If the json file is correctly create (blabla.json) you will find sheetContentWidth=2048,sheetContentHeight=1024 (value of the sample).

At final you have blabla.json, blabla@1x.png, blabla@4x.png

Good luck 

Rémi

Tnx Remi!
So only one (biggest json) is required.

Yes the little one can work but it can produce bug  because if the width of the little image is 100 and the big image is 201. In the json file you will have sheetContentWidth=100 instead of 100.5 (impossible value require only int).

Good luck!

Rémi