Author Topic: The Ascended ASM game creation thread  (Read 2478 times)

AW

  • Member
  • *****
  • Posts: 1505
  • Let's Make ASM Great Again!
Re: Lonewolff's ASM game creation thread
« Reply #30 on: April 20, 2018, 07:00:34 PM »
I have converted the whole DirectXMath library to ASM.
When you are able to post your performance comparisons source code I would like to see how it stacks up against the others.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #31 on: April 20, 2018, 07:40:35 PM »
I have converted the whole DirectXMath library to ASM.
When you are able to post your performance comparisons source code I would like to see how it stacks up against the others.

Sounds good.

As I mentioned before, the code is sub optimal at the moment, with focus being on accuracy. But, I can already see many places where I can improve upon it.

AW

  • Member
  • *****
  • Posts: 1505
  • Let's Make ASM Great Again!
Re: Lonewolff's ASM game creation thread
« Reply #32 on: April 20, 2018, 08:13:57 PM »
I never really tested the performance of the x86 part of my library, I concentrated on the x64 part, which actually beats DirectXMath on frame rate on the collision test sample supplied by Microsoft.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #33 on: April 20, 2018, 08:21:52 PM »
Nice one!

If my current results are anything to go by, I should beat DirectXMath in real world use also.

That will be tomorrow's task. Getting that elusive 3D camera system running.

Should be easy in comparison to the efforts put in in the past week. Never really dealt with matrices in depth before then. It's good to have a much better understanding how they work now.

Siekmanski

  • Member
  • *****
  • Posts: 1674
Re: Lonewolff's ASM game creation thread
« Reply #34 on: April 20, 2018, 11:42:39 PM »
Hi Jose,

Are you willing to release the source code of the DMath lib?
So we can learn from it and see if improvements can be done?
Creative coders use backward thinking techniques as a strategy.

AW

  • Member
  • *****
  • Posts: 1505
  • Let's Make ASM Great Again!
Re: Lonewolff's ASM game creation thread
« Reply #35 on: April 21, 2018, 12:40:52 AM »
Hi Jose,

Are you willing to release the source code of the DMath lib?
So we can learn from it and see if improvements can be done?
Hi Marinus,

I may publish in the near future in Github for the x86, for x64 I will have to modify it because was produced for UASM/JWASM and does not assemble with ML64, contains things like "uses xmm6 xmm7" and other amenities like relying on an option to align stack variables to 16 byte boundaries.
Modification will take a fair amount of time because the code is huge.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #36 on: April 21, 2018, 06:25:05 PM »
Huge week!

Got the required portions done for my matrix library (exactly 1000 lines later  :dazzled:)

Had an error that had me stumped for a couple of hours where I transposed a couple of values.

But at the end of the day, we now have a working 3D perspective camera.



Yeah, looks similar to the last images, but you'll notice the perspective is much better. (No longer stretched).

I'll post something more interesting in the render window in the morning.  :t

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: Lonewolff's ASM game creation thread
« Reply #37 on: April 21, 2018, 06:36:51 PM »
Quote
I'll post something more interesting in the render window in the morning.  :t

Now thats what everyone is waiting for.   :t

It is very good that you are doing this incrementally, a little at a time.  For a fairly large project, that is exactly how I would do it.

A baby has to crawl before they can walk; a child has to walk before they can run.  Just baby steps at first.  lol


Russell

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #38 on: April 21, 2018, 07:14:36 PM »
For sure Russell  :t

It's the only way to do it, I think.

Saves beating yourself up later on for something silly that you 'short cutted' early on. Test everything!  8)

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #39 on: April 23, 2018, 11:13:56 AM »
Little bit more to see now.

Still a few bugs in my matrix code (if I move the camera away from looking down the Z axis, thinks get a bit skewed). So, I have a miscalculation in my code somewhere. Shouldn't be too hard to track.
« Last Edit: April 26, 2018, 06:00:38 PM by Lonewolff »

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: Lonewolff's ASM game creation thread
« Reply #40 on: April 23, 2018, 12:36:22 PM »
Still a few bugs in my matrix code....

You can figure it out Neo - or get Morpheus to help.  lol

So far so good!

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #41 on: April 23, 2018, 12:37:50 PM »
I'm sure it will be a one liner.  :bgrin:

About to delve into it again now.

-infinity

  • Regular Member
  • *
  • Posts: 19
Re: Lonewolff's ASM game creation thread
« Reply #42 on: April 23, 2018, 12:41:47 PM »
I'm sure it will be a one liner.  :bgrin:

About to delve into it again now.

I couldn't resist not saying something about the Matrix   :icon_mrgreen:

Edit==
I know nothing about graphics beyond GDI, so this is learning experience for me. Thank you for this thread.

Ascended

  • Member
  • ***
  • Posts: 331
Re: Lonewolff's ASM game creation thread
« Reply #43 on: April 23, 2018, 12:49:28 PM »
I couldn't resist not saying something about the Matrix   :icon_mrgreen:

Red pill all the way!  :bgrin:

FORTRANS

  • Member
  • *****
  • Posts: 1025
Re: Lonewolff's ASM game creation thread
« Reply #44 on: April 24, 2018, 12:32:33 AM »
Hi,

   Maybe off-topic, if so, sorry.  I bought a series of books by
Jim Blinn titled "Jim Blinn's Corner".  These two;  "A Trip Down the
Graphics Pipeline" and "Notation, Notation, Notation" discuss
perspective and the use of matrices.  I enjoyed the whole series. 

Cheers,

Steve