News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

The Ascended ASM game creation thread

Started by Lonewolff, April 09, 2018, 02:21:23 PM

Previous topic - Next topic

aw27

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.

Lonewolff

Quote from: aw27 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.

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.

aw27

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.

Lonewolff

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

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.

aw27

Quote from: Siekmanski 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?
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.

Lonewolff

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

russellgreen

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

Lonewolff

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)

Lonewolff

#39
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.

russellgreen

Quote from: Lonewolff on April 23, 2018, 11:13:56 AM
Still a few bugs in my matrix code....

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

So far so good!

Lonewolff

I'm sure it will be a one liner.  :bgrin:

About to delve into it again now.

russellgreen

Quote from: Lonewolff 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.

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.

Lonewolff

Quote from: RussG on April 23, 2018, 12:41:47 PM
I couldn't resist not saying something about the Matrix   :icon_mrgreen:

Red pill all the way!  :bgrin:

FORTRANS

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