View previous topic :: View next topic |
Author |
Message |
Adar DeleD PRO user
Joined: 29 Aug 2007 Posts: 233
|
Posted: Mon Mar 03, 2008 6:03 pm Post subject: Exporting .DDS lightmaps |
|
|
We found out that there is a way to change the bmp lightmaps to dds ones.. you have to convert all the lightmaps to dds with a converting program like DDS Converter 2, then edit the DXS file with notepad or something and change all the lightmap files from bmp to DDS, after that some rotating needs to be done to the images and it works.. !
However, not exactly an easy task..
I wish there could be a way to export the lightmaps to DDS |
|
Back to top |
|
|
elementrix DeleD PRO user
Joined: 11 May 2006 Posts: 1300 Location: The Netherlands
|
Posted: Mon Mar 03, 2008 6:28 pm Post subject: |
|
|
I'm not sure it works , or did you try it yourself also?
I had dinner, but now I am testing again... _________________ Chickens RULE | www.elementrix.nl |
|
Back to top |
|
|
case_ncty DeleD PRO user
Joined: 20 Jan 2008 Posts: 50
|
Posted: Mon Mar 03, 2008 8:32 pm Post subject: |
|
|
i don't know anything about lightmaps and i don't know how to make them, but if you can provide me a set of files and how to modify them (rotation, what to change in the DXS) i can try to make a BMP->DDS converter that also change the DXS file and apply the rotation... that will be a good challenge as tomorow's my day off, so i can play on that. |
|
Back to top |
|
|
Adar DeleD PRO user
Joined: 29 Aug 2007 Posts: 233
|
Posted: Mon Mar 03, 2008 10:22 pm Post subject: |
|
|
elementrix wrote: |
I'm not sure it works , or did you try it yourself also?
I had dinner, but now I am testing again... |
Yeah it works fine, Deled even renders them like the older lightmaps.
case_ncty wrote: |
i don't know anything about lightmaps and i don't know how to make them, but if you can provide me a set of files and how to modify them (rotation, what to change in the DXS) i can try to make a BMP->DDS converter that also change the DXS file and apply the rotation... that will be a good challenge as tomorow's my day off, so i can play on that. |
I don't really know how to rotate them, I didn't check.. but I deleted the old BMP lightmap files and added the new DDS ones without any modifications to them.. I could see it works but not in the right angle right away..
Thing is that if you do make a program that changes the DXS, it might accidently change any BMP to DDS although some of the textures might be in BMP file format as well.. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Fri Mar 07, 2008 9:43 am Post subject: |
|
|
Getting the lightmaps to export to DDS is on our list, it's a good suggestion. Please note that converting lightmaps to DDS could result in small artifacts in the lightmap (because it's lossy, and I think the sub-textures being not aligned on a 4x4 grid might also affect edges a bit).
For now, I'd advise you to do the conversion as an automated post-processing step. Also, if pulling them through DDS Convertor 2 requires an extra rotation step, I'd suggest you use a different DDS convertor, because that sure sounds like a bug... |
|
Back to top |
|
|
Adar DeleD PRO user
Joined: 29 Aug 2007 Posts: 233
|
Posted: Fri Mar 07, 2008 4:15 pm Post subject: |
|
|
Paul-Jan wrote: |
Getting the lightmaps to export to DDS is on our list, it's a good suggestion. Please note that converting lightmaps to DDS could result in small artifacts in the lightmap (because it's lossy, and I think the sub-textures being not aligned on a 4x4 grid might also affect edges a bit).
For now, I'd advise you to do the conversion as an automated post-processing step. Also, if pulling them through DDS Convertor 2 requires an extra rotation step, I'd suggest you use a different DDS convertor, because that sure sounds like a bug... |
Could you estimate or guess the time of release of such feature in Deled? |
|
Back to top |
|
|
case_ncty DeleD PRO user
Joined: 20 Jan 2008 Posts: 50
|
Posted: Fri Mar 07, 2008 10:51 pm Post subject: |
|
|
i tested to use PNG instead of BMP for a lightmap and it works.
also i made a tool that automaticly change the texture name used for the lightmap from BMP to PNG by drag and drop of the DXS file on the tool window.
it's just a test tool so no fancy effects or icon drop target , but if you wan't it i can release it this week end so no more hassle with manual editing of you're DXS by hand untill deled include this feature
i'll include a way to chose wich extention use for the DXS modification so you can use DDS PNG or whatever format you wan't
for the DDS convertion part i'm stuck for now as the format can't be saved with the GFX library i use .
i'll try to implement it from scratch but no ETA |
|
Back to top |
|
|
Adar DeleD PRO user
Joined: 29 Aug 2007 Posts: 233
|
Posted: Sun Mar 09, 2008 12:09 am Post subject: |
|
|
case_ncty wrote: |
i tested to use PNG instead of BMP for a lightmap and it works.
also i made a tool that automaticly change the texture name used for the lightmap from BMP to PNG by drag and drop of the DXS file on the tool window.
it's just a test tool so no fancy effects or icon drop target , but if you wan't it i can release it this week end so no more hassle with manual editing of you're DXS by hand untill deled include this feature
i'll include a way to chose wich extention use for the DXS modification so you can use DDS PNG or whatever format you wan't
for the DDS convertion part i'm stuck for now as the format can't be saved with the GFX library i use .
i'll try to implement it from scratch but no ETA |
Well it's pretty easy to change all the file extensions automatically without any program to do it.. you just open it with Notepad and choose the find and replace tool... then replace whatever you want with DDS or whatever you do have to wait a bit though.
Perhaps you can make a tool that also recognizes the file names and that they are lightmap files and not regular texture files so people could replace only the lightmap BMPs to whatever instead of all of their BMP textures. |
|
Back to top |
|
|
case_ncty DeleD PRO user
Joined: 20 Jan 2008 Posts: 50
|
Posted: Sun Mar 09, 2008 10:23 am Post subject: |
|
|
it's already what it does.
change the LIGHTMAP file extention. not the other textures.
i used PNG as it was simplier for me to test and that worked fine .
i'll post it soon today or tuesday (don't know if i can work on it today as it's my brother birthday) so you can also try it to see if it fits you're needs. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sun Mar 09, 2008 10:26 am Post subject: |
|
|
Good work on the creative solutions there!
As a sidenote, seems to me you guys are going through a whole lot of trouble to extend DXS to fit your own need... why not just roll your own file format and write an exporter or converter, or choose a third party file format that suits your needs better?
Just saying, .DXS is a file format designed with accomodating our 3D modeler in mind... I just find it hard to believe that it would be the perfect file format for whatever game/engine/application you are working on.
Then again, it's your choice, and you choose whatever solutions works most efficiently for you. |
|
Back to top |
|
|
case_ncty DeleD PRO user
Joined: 20 Jan 2008 Posts: 50
|
Posted: Sun Mar 09, 2008 11:34 am Post subject: |
|
|
adar wan't to have lightmaps in DDS format
honestly i don"t know why. and what are the benefits of this format instead of bmp as this is an internal format of Deled.
anyway, as coding is one of my hobbies i'm pleased to help him doing it without editing manualy the file |
|
Back to top |
|
|
|