The MASM Forum

Projects => Game Development => Topic started by: Caché GB on July 01, 2023, 03:14:35 AM

Title: Fire, Water, Earth, and Air
Post by: Caché GB on July 01, 2023, 03:14:35 AM
Yes guys, MASM is the best.


MASM x64 and D3D11 - enjoy
https://youtu.be/xwGkzEAUK-o (https://youtu.be/xwGkzEAUK-o)


P.S. The jet is a work in progress, it's not finished yet.
Title: Re: Fire, Water, Earth, and Air
Post by: jj2007 on July 01, 2023, 03:28:11 AM
Impressive :thumbsup:
Title: Re: Fire, Water, Earth, and Air
Post by: zedd151 on July 01, 2023, 04:29:38 AM
Cool! Thanks for sharing what you have so far.  :thumbsup:
Title: Re: Fire, Water, Earth, and Air
Post by: HSE on July 01, 2023, 08:44:41 AM
Amazing  :thumbsup:

Is the jet the 5th element?  :biggrin:
Title: Re: Fire, Water, Earth, and Air
Post by: Siekmanski on July 01, 2023, 10:07:00 AM
Great stuff!!  :cool: :thumbsup:
Title: Re: Fire, Water, Earth, and Air
Post by: StrykerX on July 01, 2023, 10:41:00 AM
Wow this is pretty awesome!
Title: Re: Fire, Water, Earth, and Air
Post by: Caché GB on July 01, 2023, 09:28:48 PM
jj - If you are impressed than I am happy, thank you.

zedd - You are welcome, thank you.

HSE - The jet, yes. Good catch. Thank you.

Siekmanski - Most of the credit to you. Thanks for all the help.

StykerX - I am glad you liked it. Thank you.
Title: Re: Fire, Water, Earth, and Air
Post by: mabdelouahab on July 02, 2023, 04:31:02 AM
Cool  :thumbsup:
Title: Re: Fire, Water, Earth, and Air
Post by: daydreamer on July 03, 2023, 02:41:18 PM
Impressive  :thumbsup:
I have only coded very little d3d and seen when they show off latest gpu, by showing incredible high number fps, so a question :
Your Code use invoke to keep it synchronised with 60 hz monitor/60hz video mode?

Title: Re: Fire, Water, Earth, and Air
Post by: Caché GB on July 03, 2023, 05:53:01 PM
Hi mabdelouahab - and a very cool to you.


Hi daydreamer - Good question.

For the apps wrapper class for d3d, called CDirect3d, when the Initialize sub is called one
can see that the Vsync_Enabled value is set to false (4:27 to 4:42 in the video).

4:27 -   vcall (CApplication ptr[r15]).m_Direct3d::CDirect3d.Initialize, (CApplication ptr[r15]).m_Fullscreen, false
4:42 -     mov (CDirect3d ptr[r15]).m_Vsync_Enabled, edx

This will give the max FPS. Since this causes OBS to jerk when recording a HD video, I cap the FPS of
the app to 65 in The Game Loop (like in Siekmanski's "smooth") and relinquish any remaining time slice.

The code for The Game Loop is not showen. Thanks
Title: Re: Fire, Water, Earth, and Air
Post by: Greenhorn on July 03, 2023, 10:54:21 PM
This is really cool stuff !  :thumbsup:
Title: Re: Fire, Water, Earth, and Air
Post by: Caché GB on July 04, 2023, 02:47:23 AM
Hi Greenhorn - Thanks.
Title: Re: Fire, Water, Earth, and Air
Post by: daydreamer on July 04, 2023, 04:15:01 PM
Quote from: Caché GB on July 03, 2023, 05:53:01 PM
For the apps wrapper class for d3d, called CDirect3d, when the Initialize sub is called one
can see that the Vsync_Enabled value is set to false (4:27 to 4:42 in the video).

4:27 -   vcall (CApplication ptr[r15]).m_Direct3d::CDirect3d.Initialize, (CApplication ptr[r15]).m_Fullscreen, false
4:42 -     mov (CDirect3d ptr[r15]).m_Vsync_Enabled, edx

This will give the max FPS. Since this causes OBS to jerk when recording a HD video, I cap the FPS of
the app to 65 in The Game Loop (like in Siekmanski's "smooth") and relinquish any remaining time slice.

thanks :thumbsup:
in older directx you can use some call waitforVsync before drawing on screen
Title: Re: Fire, Water, Earth, and Air
Post by: daydreamer on September 07, 2023, 02:07:47 PM
Quote from: Caché GB on July 01, 2023, 03:14:35 AMP.S. The jet is a work in progress, it's not finished yet.
Curious, if it's work in progress, what's the goal?
Keyboard controlled jet flying? Jet fighter game?

Title: Re: Fire, Water, Earth, and Air
Post by: Caché GB on September 07, 2023, 03:54:05 PM
Hi daydreamer

The goal - brain pushups  :cool:

The jet has nothing to do with my 3D engine/framework. The jet is a 3D model I created in
Blender which I have not finished yet.

https://www.blender.org/ (https://www.blender.org/)

Pro Tip - For making models of humanoids

http://www.makehumancommunity.org/ (http://www.makehumancommunity.org/)
Title: Re: Fire, Water, Earth, and Air
Post by: daydreamer on September 07, 2023, 05:21:23 PM
 :thumbsup:
My goal achieved with combination of 3d modelling skills and coding skills are make a tiny demo
That's why I make lowpoly 3d models so they easier fit into demo
But also can use 3d models exported to. Ico files
That's why I been working on procedural landscape code output with greyscale heightmap
Goal is combine much previous code into a demo