Jump to content
The Dark Mod Forums

Recommended Posts

Posted

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.

Posted
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.

Posted

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...)

Posted

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...)

Posted
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)

Posted
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...)

Posted

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...)

Posted

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.

Posted

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? 

Posted
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.

Posted
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.

Posted (edited)
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

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

    • Goblin of Akenash

      Goblin-Secrets episode 2 is out now!
       
      · 3 replies
    • Airship-Ballet

      https://www.twitch.tv/airshipballet2 There was a mapping stream here, it's gone now.
      · 8 replies
    • peter_spy

      Stumbled upon a documentary on Enki Bilal, he is one of the most influential comic book artists of my adolescence. English auto-subtitles is rubbish, so you might need to brush up on your French
      · 3 replies
    • Goblin of Akenash

      Today I did a bit of an experiment! I wanted to see if I could get a dark radiant map into garry's mod, the quickest and dirtiest and not-workiest method is "OBJ2VMF" which converts .obj models into VMF files for hammer to then compile, the way its supposed to work is that you input a 6 sided cube and it turns it into a 6 brush room (not exactly ideal for this since that's not how TDM maps work, this honestly would have been a better idea with any thief game from 1 to the one from 2014 since they all work like that) so what ended up happening was that for every brush there was 6 brushes would be ontop of that almost inflating everything in the map like a balloon, map scale was also an issue that I couldn't fine-tune easily either so the scale is way off ontop of everything being inflated making the space inside the map very tiny! anyways heres the result of that and it looks almost nothing like footloose (plus I did add a bunch of random props in gmod for funsies and better visibility since the process involved replacing all the textures with dev ones that look very flat when in full-bright)

      https://streamable.com/ctmh58

      (streamable link will expire in 2 days but I'll have a spoken word version of this post along side the video and other fun images relating to the bsp inflation effect in the next "Goblin Secrets" video next month)
      · 0 replies
    • Frost_Salamander

      @taaaki Wiki seems broken. Main page works but click any link and:

      · 2 replies
×
×
  • Create New...