S3D : the devil's triangle - 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: S3D : the devil's triangle (/thread-132.html) |
S3D : the devil's triangle - 1micha.elok - 05-05-2024 The Devil's Triangle click each image to zoom in Question #1 As you may see in the images above, I found a strange thing with the movement of the pyramid. When I pressed UP or DOWN, the pyramid followed the plane direction. What should be changed in the code ? Question #2 The initial value of plane.y = 0 pyramid.y = 6 But why are the plane and the pyramid in the same horizontal line at the beginning of the game ? Code: '===================================================== RE: S3D : the devil's triangle - Marcus - 05-05-2024 (05-05-2024, 02:12 PM)1micha.elok Wrote: The Devil's Triangle You need to push and pop the transformation when drawing the plane, else the pyramid's position will be relative to the plane's position and rotations. Code: ' Move everything 10 units into the screen. This can be seen as setting the camera position, I added a translate into the screen before drawing the plane and the pyramid so that I could see what the pyramid was up to. RE: S3D : the devil's triangle - 1micha.elok - 05-06-2024 (05-05-2024, 03:01 PM)Marcus Wrote: You need to push and pop the transformation when drawing the plane, else the pyramid's position will be relative to the plane's position and rotations. It's very exciting to learn S3D, ... "one small step for man, one giant leap for humankind" .... Next, I plan to make a very simple game "The Devil's Triangle" RE: S3D : the devil's triangle - johnno56 - 05-06-2024 Quick question(s): Can S3D handle animated models? If so, how is that done? Just curious... RE: S3D : the devil's triangle - 1micha.elok - 05-06-2024 (05-06-2024, 07:56 AM)johnno56 Wrote: Quick question(s): Can S3D handle animated models? If so, how is that done? Just curious... It's just a quick answer(s) click image to zoom in Code: model = S3D_LoadMesh("assets/funchum/funchum.obj", 3, -3, 3, false) For further details, Marcus has better explanation regarding frame by frame animation for sure. RE: S3D : the devil's triangle - Marcus - 05-06-2024 1micha.elok's answer is correct, and currently that's the only way to do it. I'm using a homemade modelling tool that I wrote (thinking ...) 23 years ago. The model in micha's image (and the s3d example) was created using that tool. It supports hierarchical models. I recently wrote a program to convert from its fileformat to OBJ. So I save a model in different poses and convert these "frames" to separate OBJ files that I can load and animate in s3d. It's just as non-fun as it sounds. (This, https://youtu.be/4M8LW6es8Gs?si=LiGOWJxQjt9Y1Loc, game only contains models created in that tool.) But I plan to write a loader for quake 2 models, MD2 format. I've done that before, wasn't hard. Those files support frames and animation. However, 3d modelling is boring and hard as hell. In the 3d thing I'm working on you can use sprites (as in wolfenstein and doom) instead if you want to. RE: S3D : the devil's triangle - johnno56 - 05-06-2024 Thank you. I know what you mean... Many years back, I dabbled - only for a short time - in making models using Blender, so that I could add my own characters to the game engine Cube2 (sauerbratten). Once the models (and the textures) were made, it was then saved as an OBJ, then imported into Cube2. That was as far as I got. I had no idea as to how, or even if I had to, code/script Cube2 to manipulate the model. The model imported just fine... but that was it... no movement etc... Your editor looks WAY simpler to use than Blender... Oh, the learning curve for Blender... Migraine central... I have done nothing with 3D since... By the way ex5 example runs very smoothly... I should have viewed the examples before asking... *doh* Thank you for the explanation... J RE: S3D : the devil's triangle - 1micha.elok - 05-07-2024 The Devil's Triangle Coming Soon Friday, May 10th, 2024 click each image to zoom in In December 1945, Flight 19 - Avenger Torpedo Bombers disappeared over the Bermuda Triangle. The Bermuda Triangle is known as The Devil's Triangle It is on an area bounded by Florida,Bermuda and Puerto Rico. And now, you are assigned to investigate the area. Beware, it is a dangerous area ! Press ESCAPE to continue RE: S3D : the devil's triangle - Marcus - 05-07-2024 Looks very interesting The plane is made of cubes right? They call it voxels, but for me "voxel graphics" will always be what it was in the Amiga days. It was a fast way to draw cool 3d stuff. But you rendered rectangles, fast, rather than cubes. Here's an old Amiga game that uses a voxel engine: https://youtu.be/jV6rKWph5nk?si=bcJomX7ezA7P1vbv RE: S3D : the devil's triangle - 1micha.elok - 05-08-2024 (05-07-2024, 07:19 PM)Marcus Wrote: Looks very interesting The 3D model of the plane is available in several different format such as .obj and .vox (voxel ) I chose .obj which is compatible with s3d library. Amiga Game, The Shadow of the Third Moon looks very interesting ... it makes me think to make a stage 2 of the upcoming release The Devil's Triangle ... I may create the Stage 2 with some similar (more or less) elements found in The Shadow of the Third Moon such as : - enemies' plane - pilot's dashboard - heightmap ... let me check whether it is possible or not ... |