-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBJ Support For MD3 Tags For Attachment Tutorial #181
Comments
@Baker7 Does one add the |
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 |
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. #58 is https://www.moddb.com/mods/zircon-engine/downloads/zircon-beta-release-58-win64-binary-source 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.
The text was updated successfully, but these errors were encountered: