|
|
|||||
Цитата:
Можно какие-нить ссылки ? возьмусь за чтение. |
|
|||||
Цитата:
Цитата:
__________________
Ко мне можно и нужно обращаться на ты) |
|
|||||
Цитата:
http://renderhjs.net/shoebox/ На выходе такой XML файл, который тоже легко эмбедится <TextureAtlas imagePath="sprites.png"> <SubTexture name="0677.image_26EF2854.png" x="0" y="0" width="1024" height="747"/> <SubTexture name="33 (1).png" x="0" y="1874" width="309" height="70"/> <SubTexture name="file_000.png" x="1830" y="450" width="400" height="223"/> <SubTexture name="file_001.png" x="3438" y="450" width="400" height="223"/> <SubTexture name="file_002.png" x="3438" y="225" width="400" height="223"/> <SubTexture name="file_003.png" x="3438" y="0" width="400" height="223"/> <SubTexture name="file_004.png" x="3216" y="1800" width="400" height="223"/> <SubTexture name="file_005.png" x="3216" y="1575" width="400" height="223"/> <SubTexture name="file_006.png" x="3216" y="1350" width="400" height="223"/> <SubTexture name="file_007.png" x="3216" y="1125" width="400" height="223"/> <SubTexture name="file_008.png" x="3216" y="900" width="400" height="223"/> <SubTexture name="file_009.png" x="3216" y="675" width="400" height="223"/> <SubTexture name="file_010.png" x="3036" y="450" width="400" height="223"/> <SubTexture name="file_011.png" x="3036" y="225" width="400" height="223"/> <SubTexture name="file_012.png" x="3036" y="0" width="400" height="223"/> <SubTexture name="file_013.png" x="2814" y="1800" width="400" height="223"/> <SubTexture name="file_014.png" x="2814" y="1575" width="400" height="223"/> <SubTexture name="file_015.png" x="2814" y="1350" width="400" height="223"/> <SubTexture name="file_016.png" x="2814" y="1125" width="400" height="223"/> <SubTexture name="file_017.png" x="2814" y="900" width="400" height="223"/> <SubTexture name="file_018.png" x="2814" y="675" width="400" height="223"/> <SubTexture name="file_019.png" x="2634" y="450" width="400" height="223"/> <SubTexture name="file_020.png" x="2634" y="225" width="400" height="223"/> <SubTexture name="file_021.png" x="2634" y="0" width="400" height="223"/> <SubTexture name="file_022.png" x="2412" y="1800" width="400" height="223"/> <SubTexture name="file_023.png" x="2412" y="1575" width="400" height="223"/> <SubTexture name="file_024.png" x="2412" y="1350" width="400" height="223"/> <SubTexture name="file_025.png" x="2412" y="1125" width="400" height="223"/> <SubTexture name="file_026.png" x="2412" y="900" width="400" height="223"/> <SubTexture name="file_027.png" x="2412" y="675" width="400" height="223"/> <SubTexture name="file_028.png" x="2232" y="450" width="400" height="223"/> <SubTexture name="file_029.png" x="2232" y="225" width="400" height="223"/> <SubTexture name="file_030.png" x="2232" y="0" width="400" height="223"/> <SubTexture name="file_031.png" x="2010" y="1800" width="400" height="223"/> <SubTexture name="file_032.png" x="2010" y="1575" width="400" height="223"/> <SubTexture name="file_033.png" x="2010" y="1350" width="400" height="223"/> <SubTexture name="file_034.png" x="2010" y="1125" width="400" height="223"/> <SubTexture name="file_035.png" x="2010" y="900" width="400" height="223"/> <SubTexture name="file_036.png" x="2010" y="675" width="400" height="223"/> <SubTexture name="file_037.png" x="0" y="749" width="400" height="223"/> <SubTexture name="file_038.png" x="1830" y="225" width="400" height="223"/> <SubTexture name="file_039.png" x="1830" y="0" width="400" height="223"/> <SubTexture name="file_040.png" x="1608" y="1800" width="400" height="223"/> <SubTexture name="file_041.png" x="1608" y="1575" width="400" height="223"/> <SubTexture name="file_042.png" x="1608" y="1350" width="400" height="223"/> <SubTexture name="file_043.png" x="1608" y="1125" width="400" height="223"/> <SubTexture name="file_044.png" x="1608" y="900" width="400" height="223"/> <SubTexture name="file_045.png" x="1608" y="675" width="400" height="223"/> <SubTexture name="file_046.png" x="1428" y="450" width="400" height="223"/> <SubTexture name="file_047.png" x="1428" y="225" width="400" height="223"/> <SubTexture name="file_048.png" x="1428" y="0" width="400" height="223"/> <SubTexture name="file_049.png" x="1206" y="1800" width="400" height="223"/> <SubTexture name="file_050.png" x="1206" y="1575" width="400" height="223"/> <SubTexture name="file_051.png" x="1206" y="1350" width="400" height="223"/> <SubTexture name="file_052.png" x="1206" y="1125" width="400" height="223"/> <SubTexture name="file_053.png" x="1206" y="900" width="400" height="223"/> <SubTexture name="file_054.png" x="1206" y="675" width="400" height="223"/> <SubTexture name="file_055.png" x="1026" y="450" width="400" height="223"/> <SubTexture name="file_056.png" x="1026" y="225" width="400" height="223"/> <SubTexture name="file_057.png" x="1026" y="0" width="400" height="223"/> <SubTexture name="file_058.png" x="804" y="1649" width="400" height="223"/> <SubTexture name="file_059.png" x="804" y="1424" width="400" height="223"/> <SubTexture name="file_060.png" x="804" y="1199" width="400" height="223"/> <SubTexture name="file_061.png" x="804" y="974" width="400" height="223"/> <SubTexture name="file_062.png" x="804" y="749" width="400" height="223"/> <SubTexture name="file_063.png" x="402" y="1649" width="400" height="223"/> <SubTexture name="file_064.png" x="402" y="1424" width="400" height="223"/> <SubTexture name="file_065.png" x="402" y="1199" width="400" height="223"/> <SubTexture name="file_066.png" x="402" y="974" width="400" height="223"/> <SubTexture name="file_067.png" x="402" y="749" width="400" height="223"/> <SubTexture name="file_068.png" x="0" y="1649" width="400" height="223"/> <SubTexture name="file_069.png" x="0" y="1424" width="400" height="223"/> <SubTexture name="file_070.png" x="0" y="1199" width="400" height="223"/> <SubTexture name="file_071.png" x="0" y="974" width="400" height="223"/> </TextureAtlas>
__________________
There is no thing in this world that is not simple. Последний раз редактировалось ZackMercury; 01.12.2016 в 20:04. |
|
|||||
Всё всегда зависит от задач. Если тебе надо добавить куда-то одну картинку, то создавать атлас и загрузчик для него - избыточно. Плюс к тому, паковка всего и вся в атласы в старлинге - рисковое дело. Размер текстуры ограничен 2048х2048. Есл, по каким-то причинам он будет превышен, то все отвалится. Часто бывает так: на одной мобиле все отлично работает, а на другой крашится по непонятным причинам. Файл один и тот же. Потом выясняется, что причиной стало превышение размеров текстуры. Уже много раз сталкивался. Так что, еще раз повторюсь, всё зависит от конкретной задачи. Атлас далеко не всегда лучше
__________________
Ко мне можно и нужно обращаться на ты) |
|
|||||
Регистрация: Jan 2012
Сообщений: 836
|
caseyryan разве у старлинга сейчас максимальный размер не 4096x4096?
|
|
|||||
Регистрация: Apr 2009
Сообщений: 409
|
Дело не в старлинге, а в устройстве на котором запускается
|
|
|||||
Цитата:
Цитата:
__________________
There is no thing in this world that is not simple. |
|
|||||
Регистрация: Jan 2012
Сообщений: 836
|
ZackMercury а каким образом можно отдать изображение на gpu, если не через старлинг и сторонние библиотеки?
|
|
|||||
Регистрация: Dec 2010
Адрес: Ярославль
Сообщений: 1,255
|
Godwarlock, напрямую через stage3d api
|
Часовой пояс GMT +4, время: 14:47. |
|
« Предыдущая тема | Следующая тема » |
Опции темы | |
Опции просмотра | |
|
|