What are the exact export settings for a texture atlas?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Fhizban
Posts: 68
Joined: Sun Oct 21, 2012 2:57 pm
Location: Germany
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Fhizban »

Okay, now I am really desperate. Please - can a Photoshop user take a look at the PSD file I attached to this post?

1. Did all the same as with my wizardry icons - the wiz icons work perfectly, the new ones do not
2. Im using Photoshop on a Mac and then copy the files to my PC where rimrock is running
3. mac does not support DDS converting so I am using a (crappy as it seems) tool to do this
4. added alpha channel with an exact outline of the icons, using 512x512 texture size, convert to DXT5 (RGBA)
5. sometimes even the old icons wont show up in the editor, when i restart they do
6. all samples downloaded from this site show up, all original icons show up

https://www.dropbox.com/s/ti2xumowztvqm ... es.psd.zip
--
Fhizban's Asset Repository - the place where you find all my LoG contributions:
viewtopic.php?f=14&t=3904
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Xanathar »

I just exported an atlas for my room in the contest.

Here it is a screenshot of photoshop CS5.1 exporting the DDS with the nvidia tools:

Image

Notice that:
  • In my case the texture was 512x128
  • The psd is transparent
  • Take note of the settings I used -- even if now, reviewing them, I would disable the mipmap creation (but the ones in the screenshot are the ones I used so they are known to work)
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Xanathar »

I've tried your PSD

With the above conversion, it's working.

Here is a DDS download for the atlas:

https://www.dropbox.com/s/xmq22mju5ox0fi3/gfxatlas.zip
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Isaac
Posts: 3179
Joined: Fri Mar 02, 2012 10:02 pm

Re: What are the exact export settings for a texture atlas?

Post by Isaac »

These settings were mentioned in the the 5th post and are described in the Template. The UI icon atlas cannot be compressed, or it will not display properly.
User avatar
Fhizban
Posts: 68
Joined: Sun Oct 21, 2012 2:57 pm
Location: Germany
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Fhizban »

@xanathar Hmm, i begin to feel like a total idiot.

downloaded your converted dds and dropped it into my projects texture folder. still nothing, the icons are all black. I also created a new mod and added the dds to it, made a sample items.lua with notepad containing a dummy item that has gfxIndex = 0 (should be the icon to the top left). this is the code of the test icon:

Code: Select all

	defineObject{
		name = "fiz_itm_wpn_stf_wand",
		class ="Item",
		uiName = "Wand",
		model = "assets/models/items/whitewood_wand.fbx",
		description = "",
		skill = "spellcraft",
		gfxAtlas = "mod_assets/textures/fiz_item_icons_staves.tga",
		gfxIndex = 0,
		energy = 2,
		willpower = 1,
		attackMethod = "castRuneSpell",
		impactSound = "impact_blunt",
		weight = 3.0,
	}
*sigh*
--
Fhizban's Asset Repository - the place where you find all my LoG contributions:
viewtopic.php?f=14&t=3904
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: What are the exact export settings for a texture atlas?

Post by JohnWordsworth »

I've got no idea if this is the case or not, but a random suggestion from left field - arrays in lua are '1-indexed' not '0-indexed', so if gfxIndex is a standard lua index (and isn't just passed to C/C++ as an index) then you would need a value >= 1.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Xanathar »

downloaded your converted dds and dropped it into my projects texture folder. still nothing, the icons are all black. I also created a new mod and added the dds to it, made a sample items.lua with notepad containing a dummy item that has gfxIndex = 0 (should be the icon to the top left). this is the code of the test icon:
I tried using your script piece and it worked. So, there must be something else going on, like a typo in the texture name or maybe you have the object redefined somewhere else in your file in another way.

My test mod with your icon and wand: https://www.dropbox.com/s/ktd7l67c2zync5n/TestMod1.zip
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Fhizban
Posts: 68
Joined: Sun Oct 21, 2012 2:57 pm
Location: Germany
Contact:

Re: What are the exact export settings for a texture atlas?

Post by Fhizban »

@Xanathar Thank you so much, i will try the mod once i get home.
--
Fhizban's Asset Repository - the place where you find all my LoG contributions:
viewtopic.php?f=14&t=3904
User avatar
cougardod
Posts: 36
Joined: Sun Oct 28, 2012 2:29 am

Re: What are the exact export settings for a texture atlas?

Post by cougardod »

I created one last night pretty easily. Will get you my files when I get home tonight.
User avatar
cougardod
Posts: 36
Joined: Sun Oct 28, 2012 2:29 am

Re: What are the exact export settings for a texture atlas?

Post by cougardod »

Here is a copy of my files for a working texture atlas. I only have one item in it at the moment, it was the satchel from my other post. It functions in game, but as stated in my other post, it's a model from Skyrim so use at your own risk. It's the only one I have currently, so I have no other examples to share.

https://www.dropbox.com/s/fpl645wv837xjc9/satchel.zip

As for how i exported my texture atlas, i just used a DXT5 RGBA 8bpp export option for .dds. Hope this helps.
Post Reply