Quake3World.com Forums
     Programming Discussion
        Modifying GtkRadiant to render quake2 lightmaps in quake3


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Modifying GtkRadiant to render quake2 lightmaps in quake3

Gibblet
Gibblet
Joined: 20 Aug 2011
Posts: 21
PostPosted: 08-20-2011 12:21 PM           Profile Send private message  E-mail  Edit post Reply with quote


Hi,

I have a copy of the source code to GtkRadiant 1.5. I was just wondering how easy it would be to export a map with radiosity lightmaps like the ones used in quake2 but to save everything else along with these lightmaps in the quake3 bsp format.

Im guessing this is fairly straightforward as the editor already can render these lightmaps for a quake2 map.

This would be done in relation to a bsp loader I have written so I would then accomodate for the fact that it is no longer a greyscale lightmap.

Could anyone point me in the right direction with this?




Top
                 

Cool #9
Cool #9
Joined: 01 Dec 2000
Posts: 44138
PostPosted: 08-20-2011 01:13 PM           Profile   Send private message  E-mail  Edit post Reply with quote


I'm not sure if I can be of any help, but i do know that it's not GtkRadiant itself that does the compiling from .map to .bsp file but the q3map tool.

Most mappers use q3map2 which is a highly optimized and improved version of q3map. Maybe the sourcecode to that is available.




Top
                 

Gibblet
Gibblet
Joined: 20 Aug 2011
Posts: 21
PostPosted: 08-20-2011 01:52 PM           Profile Send private message  E-mail  Edit post Reply with quote


Hey thanks yeah I have the source code to that. I just read through it and it calcualtes the lightmaps in greyscale as its for quake3. There doesnt seem to be a q2 version of this in the quake2 sourcecode. Does anybody know where I could find sourcecode for how quake2 calculates the color radiosity lightmaps?




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 08-20-2011 04:00 PM           Profile Send private message  E-mail  Edit post Reply with quote


It's pre-calculated in q2map. Check out a copy of gtkradiant and look for qrad.c in tools/quake2/q2map.




Top
                 

Gibblet
Gibblet
Joined: 20 Aug 2011
Posts: 21
PostPosted: 08-22-2011 09:22 AM           Profile Send private message  E-mail  Edit post Reply with quote


Oh thanks so much. Do you know where I can get a copy of the source to gtkradiant. I realised I have the q3radiant sourcecode.




Top
                 

I'm the dude!
I'm the dude!
Joined: 04 Feb 2002
Posts: 12498
PostPosted: 08-22-2011 12:02 PM           Profile Send private message  E-mail  Edit post Reply with quote




_________________
GtkRadiant | Q3Map2 | Shader Manual


Top
                 

Gibblet
Gibblet
Joined: 20 Aug 2011
Posts: 21
PostPosted: 08-23-2011 11:37 AM           Profile Send private message  E-mail  Edit post Reply with quote


Thats awesome thanks!




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.