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

2 hours ago, motorsep said:

After reading that article, it sounds like only brushes can be exported as CM files?

Yes, that's at least my recollection. Keep the CM model as simple as possible. I always use simple cubes for this.

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

17 minutes ago, HMart said:

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

Yeah, but also for vehicles. Vehicle is MD5, terrain is ASE.

Edited by motorsep
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

    • MayheM

      Hello, Since this track is originally from TDM,i think it's better to ask here than TTLG. Do you guys have the full version of this ambient track?
      https://sndup.net/z4ty/
      https://sndup.net/qwhy/
      · 2 replies
    • DeTeEff

      Bachelor Mapping Challenge!
      The girlfriend will be away to her mum's place for almost a week, which means more mapping time for me! I'm planning a speed build. Hope it will go my way
      I'm starting by downloading 2.11. Don't know if I'm going to use any fancy new stuff. Just want to crack those itching map muscles that has gone dry and dead since almost a year's worth of no-mapping
      · 4 replies
    • kano

      The cool part of Canonical's Snap, is that my machine can now ray-trace an entire (simple) scene faster than it takes the web browser to start!
      · 5 replies
    • datiswous

      Fm idea (braindump)
      "Experience the life of a mission builder"
      Esentially there are finnished elements placed somewhere in storage in the game and you have to place them in the correct places, build some walls here and there, add guard routes, give them their correct speech lines, etc. Decorate the places.. all in-game. lots of fun.. 😉
      If you do it right in the end you can play the mission.
      (would be even cooler if a thief-ai could play the mission, making it some kind of tower-defence game)
       
      This first started as an idea for an aquarium builder mission where-in you have to fill an empty aquarium with sand, waterplants, castles water and swimming fish. But above idea is more fun.
       
      · 4 replies
    • JackFarmer

      Dear ChatGPT, What are The Builders in the Dark Mod?
       
      The Builders is a popular game mode in the video game community called "Dark Mod," which is a fan-made tribute to the classic "Thief" series of stealth games. In this game mode, players assume the role of builders who construct structures in a dark and ominous environment while trying to avoid detection by patrolling guards.
      The Builders game mode is unique in that it offers players the opportunity to create and design their own levels using the in-game tools and resources provided. Players can experiment with different building materials, construct intricate traps and puzzles, and create their own unique gameplay experiences.
      While The Builders game mode is not an official part of the Dark Mod, it has become one of the most popular and well-loved aspects of the game, thanks to its emphasis on creativity, strategy, and stealth.
       
      You guys did not know that, did you?
      · 2 replies
×
×
  • Create New...