![]() |
|
[HELP] md2 with two models - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Questions (https://www.naalaa.com/forum/forum-3.html) +--- Thread: [HELP] md2 with two models (/thread-312.html) |
[HELP] md2 with two models - 1micha.elok - 09-08-2025 Hi Marcus, I would like to put two models of md2 on the left (texture2) and and on the right (texture1), click the images to zoom in so they should stand face to face and ready to fight (such as in Street Fighter). Question #1 What's wrong with this code ? only 1 texture model is drawn. Code: 'model 1: Translate and rotate.Question #2 What is the best way for collision detection between the 3D models ? You may reply on the weekend, when you are not working. Don't worry, it's not urgent. Thank you RE: [HELP] md2 with two models - Marcus - 09-08-2025 He's actually somewhere behind the "camera" ![]() The transformations (S3D_Translate, S3D_Rotate) you apply to position the first guy are still in effect when you position the second guy. Among all, you've applied a rotation along the y-axis, resulting in an x-axis that is pointing straight into the screen (so, the negative x value in the second S3D_Translate puts the other guy behind the camera). Push and pop when drawing objects to restore the transformation matrix and you'll be fine. Code: 'model 1: Translate and rotate.The second question will have to wait, but probably the answer will be about cheating - actually trying to determine which triangles intersect with eachother would be very inefficient. In the robowack 3-demo the player can collide with enemies and enemies with other enemies, but those are just simple 2d tests combined with push away-effects. RE: [HELP] md2 with two models - 1micha.elok - 09-09-2025 Thanks, Marcus ! It's working well
RE: [HELP] md2 with two models - Marcus - 09-09-2025 (09-09-2025, 09:21 AM)1micha.elok Wrote: Thanks, Marcus ! Cool! Tekken but with DOOM Guy! I'm into an experiment with something Star Fox (SNES) like these days. But ... Star Wars: Outlaws on Switch 2 kind of prevents me from programming after work
|