GIMP Cubemap Problem... - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: GIMP Cubemap Problem... (/thread-19471.html) |
GIMP Cubemap Problem... - Statyk - 12-07-2012 So following Your Computer's GIMP .dds cubemap export tutorial (as I never use GIMP myself), I ran into a bit of a problem... Upon export, the image comes out looking like this: Spoiler below!
But to give you an idea of what it's SUPPOSED to look like, here's a full image of the cubemap slides. (NOTE: In GIMP, they are stacked just as described in YC's tutorial video ) Spoiler below!
Any ideas? I do most of my cubemap editing in Photoshop with the Nvidia plugin, but when exporting with DXT1 compression, the quality gets diminished. While it's not noticeable as much in daytime skyboxes that I've done, it's pretty noticable in a night time skybox, so I figured perhaps GIMP will provide better quality exports. Thanks guys. RE: GIMP Cubemap Problem... - Your Computer - 12-07-2012 Use the GIMP plug-in i made (here) and pick horizontal strip XYZ (then follow the export settings in the video). If you're using GIMP 2.8, let me know if the plug-in works. I haven't tested it for that. RE: GIMP Cubemap Problem... - Statyk - 12-07-2012 Hey YC, glad you're here. I ran the script, and as said in the comments of http://registry.gimp.org/node/25532 -- I get this error when trying to run in Gimp 2.8 (Mind you, I have GIMP installed on a second hard drive in my laptop, but the error still persists in the same fashion): Code: Traceback (most recent call last): RE: GIMP Cubemap Problem... - TheGreatCthulhu - 12-07-2012 Hm... YC, I dont know much about Python, and I don't know how implicit type conversions work in the language, but, any chance this could be solved by simple type-casting in get_width_height()? Or is this potentially gonna cause other errors? Edit. Aah I think I see - this is probably where the types get's promoted to float: Code: if "H-strip" in layout: RE: GIMP Cubemap Problem... - Your Computer - 12-07-2012 I've updated my script and it should solve all issues. I simply explicitly type casted the floats that were causing an issue to an integer. RE: GIMP Cubemap Problem... - Acies - 12-07-2012 I usually use "cubemapgen". As for format try saving as a dxt3 (8 bits per pixel). Dxt1 is 4bits per pixel - ergo you would loose information as you save in dxt1 - and darker colors on the sky probably mix together. RE: GIMP Cubemap Problem... - Statyk - 12-07-2012 Well, the exporter did better than last time, but I don't recommend using DXT1 with it =P DXT3 and DXT5 worked much better, but the compression is still damaging the quality... Hmm... If you want to check out what I mean, here's a comparison shot using YC's Python script for GIMP 2.8: Spoiler below!
As you can see in the DXT3/DXT5 compression, the halo around the moon gets discolored and not as smooth as depicted in the editing software. As well, (it could be the renders here) a bit underneath the blue axis sphere, you can see where a corner of the cubemap meets due to discoloration. This isn't as noticeable in daytime skyboxes like I said, but in a cloudy night time situation, it stands out pretty bad... RE: GIMP Cubemap Problem... - Acies - 12-07-2012 Can you send me the renders later? :] RE: GIMP Cubemap Problem... - TheGreatCthulhu - 12-07-2012 You could also try using this (pretty awesome) free tool: AMD's Cubemap Generator (modified) RE: GIMP Cubemap Problem... - Statyk - 12-07-2012 Perhaps I will =P Thanks guys! |