Jump to content
The Dark Mod Forums

Exporting ASE mesh as CM collision model ?


Recommended Posts

Is it possible to export ASE mesh as CM collision model (and then somehow view it to visually confirm if it's good or not) ? If I select my model and then go to File > Export Selected as Collision Model, I get model selection dialog window popping up and when I select model there and hit Ok, nothing happens (window closes and I am back in the Editor). No .cm file gets saved.

Link to comment
Share on other sites

Anything collection of polygons can be a collision model.

It just needs a collision texture. To convert a non-solid visual model to collision, replace the texture with a texture that has inherent or explicit collision.

To make a collision model visible in DR? Re-Texture it with a visible texture or skin.

Beware of nonsolid entity arguments that override the collision texture.

See also "surface parameters":

https://modwiki.dhewm3.org/Global_material_keywords_(Doom_3)

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

There is no need to "export" a model as a "model". You can export a model as a different model format if desired but there is no logic to it. The model is already in optimized form and ready to be re-textured with collision textures.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

14 minutes ago, nbohr1more said:

There is no need to "export" a model as a "model". You can export a model as a different model format if desired but there is no logic to it. The model is already in optimized form and ready to be re-textured with collision textures.

Well, I am not sure where you get your information from, but I couldn't export selected ASE mesh in the map as CM model. It's either a bug in DR or the limitation is that only brushes can be exported as CM (which is in fact how dmap generate .cm files - only from brushes)

Link to comment
Share on other sites

4 minutes ago, motorsep said:

Well, I am not sure where you get your information from, but I couldn't export selected ASE mesh in the map as CM model. It's either a bug in DR or the limitation is that only brushes can be exported as CM (which is in fact how dmap generate .cm files - only from brushes)

There is no such model format as "CM".

A CM is either an OBJ, ASE, or LWO with a collision texture.

The cm data in the map compile cannot be natively manipulated, it is the result of a dmap operation.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

https://wiki.thedarkmod.com/index.php?title=Collision_Models

https://wiki.thedarkmod.com/index.php?title=Clipmodel

and what is an example of a TDM CM?

3 minutes ago, motorsep said:

That is what DMAP produces. It is a map-wide representation of collision. It is not a "model". ( hence all the brush references in the text )

Look again:  barrel01_cm.lwo is a typical collision model in TDM. It is a Lightwave object. ( LWO ). If you know of a single editor program that manipulates Doom 3 DMAP collision products ( cm files ) I would be happy to hear of it.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Radiant is looking for brushes, convex solid geometry, and it will save that as a CM when you select your mapobject.  I don't know why the save dialog seems like a model loader, but it does work.  The CM file can be opened with Notepad and it might be possible to finagle all that data, or in the meantime you could try to convert your triangles into brushwork, which is not recommended.  If your collision data can't easily be made with just brushes, it might be too complex for this engine.

Link to comment
Share on other sites

Afaik yes .cm files (means collision model) can be used as a separate collison model, for a ingame entity, I think that there's even a special func entity for that but the fact is, it was hardly used by idsoftware for that purpose, majority of Doom 3 models have the collision surface incorporated in the model itself (like the shadow model) they did it on Maya, 3DS Max and Modo.

So motorsep I ask, why would you want to make a separate collision model in DR? Can't you edit the model in Blender for example? 

Link to comment
Share on other sites

7 hours ago, HMart said:

So motorsep I ask, why would you want to make a separate collision model in DR? Can't you edit the model in Blender for example? 

I can. In fact, I just set flag "solid" "1" on ASE model and it gives me collisions. I just figured maybe .cm collision file might have some benefits over direct per-poly collision with the ASE model. So I wanted to give it a try.

After I asked original question, I did a lot of tests and I think it's just physics of AFEntity that give me issues and whether it will be .cm or material key or entity key, it wouldn't matter.

Link to comment
Share on other sites

21 hours ago, motorsep said:

I can. In fact, I just set flag "solid" "1" on ASE model and it gives me collisions. I just figured maybe .cm collision file might have some benefits over direct per-poly collision with the ASE model. So I wanted to give it a try.

After I asked original question, I did a lot of tests and I think it's just physics of AFEntity that give me issues and whether it will be .cm or material key or entity key, it wouldn't matter.

Solid 1, if no collision surface is available, will use the model geometry itself for collisions (search for combat model in the code also), so yes is not the best approach, doing a custom collision model is always preferable for performance, but doing it on DR is something I personally don't do and IMO is at most, best for simple box like collision models. 

Like I said the best is to create the collision surfaces in a 3D Tool like blender, you can use the shadow model for it, just change the material from "shadow" to "collision" or even the lower poly LOD model, can't be easier.

Btw isn't AFEntity for ragdool physics? I thought that was only for skinned MD5 models not static ASE or LWO models.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...