.3ds models and emissive maps
-
Topic authorReiko
- Posts: 1119
- Joined: 05.10.2006
- Age: 41
- With us: 18 years 1 month
- Location: Out there...
.3ds models and emissive maps
Is there a way to make emissive maps work in .3ds models? When using Anim8or I place them and make sure the emissive value is set to 1. However they do not work in Celestia. Does the .3ds format not support emissive maps or am I doing something wrong?
Re: .3ds models and emissive maps
My understanding is that 3DS meshes don't support emissive maps.
However, CMOD meshes do support emissive maps, and the CMOD export plugin that I wrote for Anim8or will specify them if they're declared in a material definition. You also can use Anim8or's point editor to make regions on a surface emissive without an emissive map.
A description of the CMOD export plugin is available at
http://www.lepp.cornell.edu/~seb/celest ... g.html#4.1
However, CMOD meshes do support emissive maps, and the CMOD export plugin that I wrote for Anim8or will specify them if they're declared in a material definition. You also can use Anim8or's point editor to make regions on a surface emissive without an emissive map.
A description of the CMOD export plugin is available at
http://www.lepp.cornell.edu/~seb/celest ... g.html#4.1
Selden
-
Topic authorReiko
- Posts: 1119
- Joined: 05.10.2006
- Age: 41
- With us: 18 years 1 month
- Location: Out there...
Re: .3ds models and emissive maps
I'm familiar with CMODs and the script for Anim8or. In fact that is what I use most of the time. I was wanting some of the models in 3ds format because they can cast shadows. For some reason CMODs cannot produce shadows.
Re: .3ds models and emissive maps
I can think of a couple of ways it might be done with two separate models, although neither of them is entirely satisfactory because of depth sorting problems.
Method 1: Its difficulty depends on the complexity of the model. One copy of the model would consist only of the parts you want to glow. The other would consist only of the parts that you do not want to glow. Then, specify Emissive true for the glowing model. Use the SSC to place the two models at exactly the same polsition so that the holes in one are filled in by the other. Cutting a complicated mesh into many pieces would be a *lot* of work, though.
Method 2: Its difficulty depends on the complexity of the surface texture images. One model would have a surface texture image (or several) that's opaque or translucent where you want it to glow and transparent elsewhere. (3DS does do transparency.) Specify Emissive true for the glowing model. The other model would be painted with opaque surface texture images. Make the model that will be glowing very slightly larger than the one that does not glow.
A combination of the two methods might work, too.
Method 1: Its difficulty depends on the complexity of the model. One copy of the model would consist only of the parts you want to glow. The other would consist only of the parts that you do not want to glow. Then, specify Emissive true for the glowing model. Use the SSC to place the two models at exactly the same polsition so that the holes in one are filled in by the other. Cutting a complicated mesh into many pieces would be a *lot* of work, though.
Method 2: Its difficulty depends on the complexity of the surface texture images. One model would have a surface texture image (or several) that's opaque or translucent where you want it to glow and transparent elsewhere. (3DS does do transparency.) Specify Emissive true for the glowing model. The other model would be painted with opaque surface texture images. Make the model that will be glowing very slightly larger than the one that does not glow.
A combination of the two methods might work, too.
Selden
Re: .3ds models and emissive maps
Reiko wrote:I'm familiar with CMODs and the script for Anim8or. In fact that is what I use most of the time. I was wanting some of the models in 3ds format because they can cast shadows. For some reason CMODs cannot produce shadows.
Does the CMODs have normals and tangents?
Never at rest.
Massimo
Massimo
-
Topic authorReiko
- Posts: 1119
- Joined: 05.10.2006
- Age: 41
- With us: 18 years 1 month
- Location: Out there...
Re: .3ds models and emissive maps
Selden, it didn't occur to me to make a combo model part 3ds and part CMOD. I'll have to give that a try and see how it comes out.
I don't know about tangents but they do have normals.Fenerit wrote:Does the CMODs have normals and tangents?
Re: .3ds models and emissive maps
Sorry, I'm out from my computer for experimenting with. There isn't reason why 3DS would cast shadow while CMOD not. 3DS saves tangents by default while for CMOD the option is left to the user; you can try to make CMOD's tangents with the CMODview utility. Tangents usually are required by vertex shaders, albeit could be avoided under certain circumstances. The file size will be more heavy, of course.Reiko wrote:Selden, it didn't occur to me to make a combo model part 3ds and part CMOD. I'll have to give that a try and see how it comes out.I don't know about tangents but they do have normals.Fenerit wrote:Does the CMODs have normals and tangents?
Never at rest.
Massimo
Massimo