Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exporting .DDS lightmaps

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Feature Requests
View previous topic :: View next topic  
Author Message
Adar
DeleD PRO user


Joined: 29 Aug 2007
Posts: 233

PostPosted: Mon Mar 03, 2008 6:03 pm    Post subject: Exporting .DDS lightmaps Reply with quote

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 Cool
Back to top
View user's profile Send private message Send e-mail
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Mon Mar 03, 2008 6:28 pm    Post subject: Reply with quote

I'm not sure it works Razz , or did you try it yourself also?
I had dinner, but now I am testing again...
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
case_ncty
DeleD PRO user


Joined: 20 Jan 2008
Posts: 50

PostPosted: Mon Mar 03, 2008 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adar
DeleD PRO user


Joined: 29 Aug 2007
Posts: 233

PostPosted: Mon Mar 03, 2008 10:22 pm    Post subject: Reply with quote

elementrix wrote:
I'm not sure it works Razz , 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
View user's profile Send private message Send e-mail
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Fri Mar 07, 2008 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Adar
DeleD PRO user


Joined: 29 Aug 2007
Posts: 233

PostPosted: Fri Mar 07, 2008 4:15 pm    Post subject: Reply with quote

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? Razz
Back to top
View user's profile Send private message Send e-mail
case_ncty
DeleD PRO user


Joined: 20 Jan 2008
Posts: 50

PostPosted: Fri Mar 07, 2008 10:51 pm    Post subject: Reply with quote

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 Smile

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 Smile


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
View user's profile Send private message
Adar
DeleD PRO user


Joined: 29 Aug 2007
Posts: 233

PostPosted: Sun Mar 09, 2008 12:09 am    Post subject: Reply with quote

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 Smile

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 Smile


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 Smile 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
View user's profile Send private message Send e-mail
case_ncty
DeleD PRO user


Joined: 20 Jan 2008
Posts: 50

PostPosted: Sun Mar 09, 2008 10:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Sun Mar 09, 2008 10:26 am    Post subject: Reply with quote

Good work on the creative solutions there! Smile

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
View user's profile Send private message Visit poster's website
case_ncty
DeleD PRO user


Joined: 20 Jan 2008
Posts: 50

PostPosted: Sun Mar 09, 2008 11:34 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum