Creating or Converting to .CSM -- Is there a way???!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Ace
Posts: 18
Joined: Mon Mar 15, 2004 4:47 am
Location: Louisiana
Contact:

Creating or Converting to .CSM -- Is there a way???!

Post by Ace »

I've been looking all over the net trying to figure out how to convert a file to .CSM format. It apparently has built in lightmapping whereas you don't have to have a separate lightmap and have to worry about the textures not showing up or loading correctly. This would be ideal for me, however I'm stumped on how I would create one of these files...

I have Cartography Shop 4 but the damn thing's perspective viewport is all screwy and won't show any objects after the first one rendering the program useless to me. :(

Is there ANY OTHER WAY to create .csm levels with textures and lighting??? I've already tried the .my3d thing and successfully created lightmaps both in Gile[s] and in 3d Studio Max 6 but either the textures wont map correctly in 3ds or I just can't figure out how to load the Gile[s] format lightmap.

PLEASE tell me there's another way to create .csm files or maybe convert them from Giles or some other format???? I've been racking my brain for days now trying to get a simple lightmapped level into Irrlicht but cant seem to get it right at all! The .CSM format seems to be automatically lighmapped so if there was only a way to save to it without CShop4 or maybe some other version that might work... :( I have the latest version of it, but it's useless thanks to the crazy perspective viewport...

Please, I beg anyone to help me out with this... :(
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

try map2csm converter:
http://www.apexnow.co.uk/tools4.htm

you'd need your level to be created as a quake3 map (or HL map, not sure). I tried sometime and it worked ok.
Ace
Posts: 18
Joined: Mon Mar 15, 2004 4:47 am
Location: Louisiana
Contact:

Post by Ace »

I don't have a way to make .map files though... :( Is there a program out there that could do this? I've seen some of your lightmapped levels and they look awesome, I just wonder what programs you use to do it and what method you use to get them to load in Irrlicht? I'd just like to know a better way if there is one than CSM.

I would like to be able to create a CSM if possible, but I don't know if there's a way. All I need to do is have a lightmap load for a level but I can't figure out how to do it and what formats do what in Irrlicht.

If someone could at least tell me how to go about loading a lightmap into Irrlicht from Giles + my3d or 3ds + my3d or what formats automatically have them (I think CSM does), I would appreciate it greatly. Any information would be awesome.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

If you want to convert to csm I assume you got cshop, right? Why not create your stuff directly in cshop, lightmap it and load it into Irrlicht? I've tried csm maps in the engine and they load perfectly. Cshop is a great level editor and I'm sure some impressive stuff can be created with it, I just find deled to have some more manipulating options (although I'm sure 3d world studio must have a lot of stuff updated). I got a test app I made in Cshop that I might upload for you; just let me find it frist :wink:

about .maps: you can use gtkradiant for that; it's, in my opinion, the best map editor out there for Q3 levels:
http://www.qeradiant.com

About other formats: To be honest, I've tried almost every single way of loading a lightmapped level in Irrlicht (Murphy's stuff is the only thing I haven't tried but because of my inexperience with the workflow implied) and I can assure you they all produce excellent results when loaded into Irrlicht; the main advantages I see Is the way you create such maps; i.e. My3d: you can model everything in 3dsmax, create any sort of shapes your mind can think of , place lights, render to texture and export directly to My3d or.... do the same thing till the lights stuff, export to ASE or 3ds, open you level in Giles, lightmap there and again, export to My3d (an advantage in Giles is that it makes only 1 lightmap of your whole level,making it less time-consumming to load). Just remember Giles is not a modeler itself but a tool to import geometry created in other packages, add materials, place lights and lightmap you model. Giles creates some very nice results tho. And then there's Deled and cshop; both fully suported; advantage: you create, texture and lightmap all in the same tool; loading is very straightforward. Disadvantage: they're both more brush-oriented, so creating some special shapes is very limited, you have to use a lot of csg. Also polycount matters here; but they're both great. And last one, gtkradiant-quake 3 maps: Great tool, also brush based, but you gotta learn the ins and outs of loading a Q3 bsp, specially how to place your textures properly so that radiant finds them, compiling your level and finally, creating your pk3 file properly so that you don't get any loading errors in Irrlicht.

So, as you can see, there are many ways of doing it; my advice would be to try them out and see which one suits your needs best, pick it and then learn it nd specialize on that one you picked! :wink:

some links that may help you:
http://irrlicht.sourceforge.net/phpBB2/ ... tive#35421
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=7494
Ace
Posts: 18
Joined: Mon Mar 15, 2004 4:47 am
Location: Louisiana
Contact:

Post by Ace »

Yeah, I have Cshop, but I have version 4.1 and for some reason the perspective view is all mucked up after I create the second object and from then on no objects are shown. The only way I can tell that they are there are in the other grid viewports. :P I'd like to find an earlier version or something that I might be able to use but at this point, I've pretty much given up on .CSM files.

What I would REALLY like to do is export in my3d in GILES. The models look awesome when rendered from there not to mention the efficiency of a single lightmap.

The only problem with this though is when I export to .my3d in Giles it gives me an error message after the popup saying "don't forget to put textures in lightmap folder" or smth to that effect. Sometimes the model will load in Irrlicht, but the lightmapping doesnt. :( I don't know why I'm getting this error considering all I'm using is a rectangle floor, a cube, a giles omni light, and two materials. :S

Am I doing something wrong?? I'm using the export plugin in the 0.9 version of Irrlicht unless my3d has been updated since then and I should be using a later version? I'm not sure what I'm doing wrong. I have no idea of the workflow or how I should be using to use lightmaps in my3d exported from Giles and how to load it in Irrlicht. Maybe the error is the reason I can't import??
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

did you check my links?

there's a quick tut on My3d there, very basic.
Ace
Posts: 18
Joined: Mon Mar 15, 2004 4:47 am
Location: Louisiana
Contact:

Post by Ace »

Actually I did! lol! I did it before I ever started this topic!

I have 3ds Max 6 though so it didn't help due to the crazy workaround method for the new complex "Bake" menus. However, I DID succeed in getting a lightmapped level exported from 3dsm 6 AND completely loaded into Irrlicht!! It took me days to figure it out but finally I did!

I'm not sure who's it was that created it, but I used a modified meshviewer that supported lightmaps for ver 0.12 and everything looks great!

Thanks a ton for your help, though Afecelis! You definetly helped me understand the formats a bit better. Though there's only one thing that I'm lacking now... I've GOT to be able to export a .my3d level from Gile[s]!

The only problem I'm having is the fact that I saved a .ASE, imported it into Giles lit the scene and everything looked great with the textures and all from 3ds max and into Giles, however when I exported the .my3d file everything went smooth except for the error message after the "don't forget to put stuff in your lightmaps folder" message. It said "failed to export" + path to my3d plugin.

However the model still loads in the meshviewer but it's invisible until I set the material to lightmap and then the textures are all over the place. Is there some way to find out why this is happening? I think you said that you had done it before, so What would the workflow be to get an .ASE to export correctly from gile[s]?
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

mmmmhh, you should definitely try working with Irrlicht 0.12 and use the exporters that come with it. I used that one for the levels I showed from Giles (the one at Zdmitor's website) and it loads perfectly into Irrlicht.
That level was modeled and textured in max, exported to 3ds and then opened, lit and lightmapped in Giles to finally export to my3d.

you're right, Giles makes some impressive lightmaps...too bad it's not a modeler;but I'm surprised of how compatible it is with 3dsmax. Even transparent materials you create in 3dsmax show up the same way in Giles when exported (ASE, 3ds).

dunno what else to tell you but see if you're using the latest versions of everything :wink:
Post Reply