Open Baker7 opened 5 months ago
@Baker7 Does one add the tagname
lines manually to the .obj file or is it already supported by the editor/exporter?
@Baker7 Does one add the
tagname
lines manually to the .obj file or is it already supported by the editor/exporter?
Manually. OBJ files are text files.
Note: To self, release something with that helicopter in it so a working example is out in the real world.
Might add -- I have .mdl with attachments also ... you pick a specific triangle of the model and can make it an attachment point ... when the .mdl is loaded, the attachment data is generated for indicated triangles.
Hemebond ...
Here is a test case for you ...
Download Link: https://www.moddb.com/mods/zircon-engine/downloads/the-helicopter-map
Helicopter lives in models/vehicles/helicopter.obj
QC ... qc/extras/misc_mdl_entity.c
Might add -- I have .mdl with attachments also ... you pick a specific triangle of the model and can make it an attachment point ... when the .mdl is loaded, the attachment data is generated for indicated triangles.
Is this a separate change from what you shared in the first comment?
.mdl md3tags is a separate change and was quite a huge amount of work (has to pre-compute triangle rotation at model load time for every morphframe). .mdl md3tags was implemented in Zircon Beta #59 and Zircon Beta #58 didn't have it, so using WinMerge or your favorite open source diff application to compare the 2 folders shows the changes pretty clearly.
But the payoff is making Shambler into your own personal Mr. Potatohead ...
Tutorial for OBJ supporting MD3 Tags For Attachment
Step 1: Open model_brush.c Step 2: Copy the following code and press CTRL-V in appropriate place in Mod_OBJ_Load(model_t mod, void buffer, void *bufferend) Step 3: Declare the int idx I didn't mention Step 4:
OBJS: The main one is helicopter_less_2.obj which uses "tagname propellor_rear 102.8 0.7 20.6" to indicate attachment point.
helicopter.zip
In QuakeC you have do something like:
Eventually I'll do a little QuakeC demo with the model.