Facepunch / sbox-issues

175 stars 12 forks source link

Overriding a hammer-created model should only update the dmx #1007

Closed gvarados1 closed 2 years ago

gvarados1 commented 2 years ago

What can't you do? When you create a model in hammer, and override an existing model, it's completely reset to a blank model with only a render mesh.

How would you like it to work? Instead of resetting the whole model, it should only update the dmx Alternatively, there could be an option to only export dmx from hammer, and not create a model.

Additional context I'm using hammer to blockout placeholder weapons, and I have to remake the entire model every time I update the rendermesh. image

DoctorGurke commented 2 years ago

You can already export a selection as dmx only without creating a model

gvarados1 commented 2 years ago

You can already export a selection as dmx only without creating a model

how?

bakscratch commented 2 years ago

image File, Export Selected

gvarados1 commented 2 years ago

Oh wow. Thanks! That should get added to the right click menu so people know about it. image

gvarados1 commented 2 years ago

Actually, File -> Export Selected doesn't use the pivot point as the model's origin, providing bad results

File, Export Selected: image

Create Model From Selection: image

gvarados1 commented 2 years ago

Looks like File, Export Selected uses the world origin as the model's origin. There should probably be an option for both.

aylaylay commented 2 years ago

Don't you have the option for both because create model from selection does use the models origin and export selected doesn't?

gvarados1 commented 2 years ago

Create model from selection removes the old model and creates a completely new one. Export selected only creates a mesh file, not a model.

I want to export a mesh using the hammer mesh's origin

aylaylay commented 2 years ago

aight

aylaylay commented 2 years ago

@gvarados1 I've added support for local space export on dmx, both fbx and obj already supported it. Note that this is only for single selection export. I can add support local space export for multiple selected using the selection origin but i'll need to add some things to options etc so see how you get on with this first. I think you were only looking to export single selection anyway.

aylaylay commented 2 years ago

I've also added export selected to the selection context menu so you have the option of doing it there or through file > export selected