Author Topic: NeHe Tutorial in masm64  (Read 58063 times)

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #45 on: October 05, 2020, 02:09:16 AM »
Lesson #21: Lines, Antialiasing, Timing, Ortho View And Simple Sounds

This is NeHe large tutorial. In this tutorial you will learn about: Lines, Anti-Aliasing, Orthographic Projection, Timing, Basic Sound Effects, and Simple Game Logic. You have to fill in a grid while avoiding nasty enemies.

http://nehe.gamedev.net/tutorial/lines,_antialiasing,_timing,_ortho_view_and_simple_sounds/17003/

There are asm\wav\bmp\exe-files and cursor in the 21.zip attachment.
« Last Edit: October 12, 2020, 02:23:40 AM by Mikl__ »

Siekmanski

  • Member
  • *****
  • Posts: 2719
Re: NeHe Tutorial in masm64
« Reply #46 on: October 05, 2020, 05:15:37 AM »
Your work is really cool. :cool:  :thumbsup:
Creative coders use backward thinking techniques as a strategy.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #47 on: October 12, 2020, 09:24:26 AM »
Lesson #28: Bezier Patches

Tired of flat surfaces? Feel the nice bulge of curved Bezier surfaces! Learn how to create bezier patches. Learn how to alter a surface by modifying control points. The surface being altered is fully texture mapped, the animation is smooth!

Interaction:
  • the Left and Right arrow keys rotate the object
  • the Up and Down arrow keys raise and lower the resolution
  • the SPACE key toggles displaying the control point grid
http://nehe.gamedev.net/tutorial/bezier_patches__fullscreen_fix/18003/

There are asm-\bmp-\exe-files and cursor in 28.zip attachment.
« Last Edit: October 16, 2020, 01:02:28 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #48 on: October 14, 2020, 08:51:46 PM »
Lesson #45: Vertex Buffer Objects.
We are continuing to travel around Antarctica

When you need raw polygon-pushing power, you can always utilize the optimizations provided by OpenGL. Vertex Arrays are one good way to do that. For even more boost you can use a extension to graphics cards called 'Vertex Buffer Objects'. The extension, ARB_vertex_buffer_object, works just like vertex arrays, except that it loads the data into the graphics card's high-performance memory, significantly lowering rendering time. Not all graphics cards support 'Vertex Buffer Objects' extension.

http://nehe.gamedev.net/tutorial/vertex_buffer_objects/22002/

There are asm-\bmp-\exe-files and cursor in 45.zip attachment.
« Last Edit: October 19, 2020, 01:41:16 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #49 on: October 19, 2020, 12:49:34 AM »
[delete]
« Last Edit: September 08, 2021, 02:47:05 AM by Mikl__ »

HSE

  • Member
  • *****
  • Posts: 2499
  • AMD 7-32 / i3 10-64
Re: NeHe Tutorial in masm64
« Reply #50 on: October 21, 2020, 08:48:27 AM »
Hi Mikl!

Code: [Select]
Assembling: tut_40-38.asm
tut_40-38.asm(140) : error A2006:undefined symbol : GL_LINEAR_MIPMAP_LINEAR
 movReg64Arg(11): Macro Called From
  invoke(46): Macro Called From
   tut_40-38.asm(140): Main Line Code
tut_40-38.asm(145) : error A2006:undefined symbol : GL_BGR_EXT

I think I have differents includes and libraries.
Equations in Assembly: SmplMath

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #51 on: October 21, 2020, 09:53:13 AM »
Hi, HSE!
The inc-files are updated with constants from one lesson to next lesson
« Last Edit: November 22, 2020, 10:59:08 AM by Mikl__ »

HSE

  • Member
  • *****
  • Posts: 2499
  • AMD 7-32 / i3 10-64
Re: NeHe Tutorial in masm64
« Reply #52 on: October 22, 2020, 01:17:49 AM »
 :thumbsup: Fantastic Mikl!  Object is assembled.

I have some linking problems. Perhaps I have to see Uncle Tales   :biggrin:
Equations in Assembly: SmplMath

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #53 on: October 22, 2020, 01:41:17 AM »
[delete]
« Last Edit: September 08, 2021, 02:47:21 AM by Mikl__ »

HSE

  • Member
  • *****
  • Posts: 2499
  • AMD 7-32 / i3 10-64
Re: NeHe Tutorial in masm64
« Reply #54 on: October 22, 2020, 01:56:08 AM »
Tomorrow I will run 64bits again  :thumbsup:
Equations in Assembly: SmplMath

TouEnMasm

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: NeHe Tutorial in masm64
« Reply #55 on: October 22, 2020, 03:27:48 AM »
Hello,
I have tried the sample 21,the exe don't want to work with Win10.
So I have tried the C++ sample and he work in 32.
I try to compile it in  64 and link say
Quote
Lesson21.obj : error LNK2001: symbole externe non résolu SOIL_load_OGL_texture
Msdn don't kow that and it seems that it is a library.Did you know how and where find it ??
Fa is a musical note to play with CL

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #56 on: October 22, 2020, 08:35:25 AM »
Salut Yves!
Essayez d'exécuter cette version du programme dans Win10. Je ne sais pas d'où vient la constante "SOIL_load_OGL_texture" dans mon programme
« Last Edit: October 22, 2020, 08:27:19 PM by Mikl__ »

TouEnMasm

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: NeHe Tutorial in masm64
« Reply #57 on: October 22, 2020, 06:25:11 PM »

Thanks for the various samples of the sample21.
There is only the VC one who works with windows 10.
I finally found the SOIL library who need to be compiled in 32 or 64 bits.
https://github.com/paralin/soil
I try to compile the VC sample21 with Visual studio 2019,but it is not win.
The 32 bits versions as worked and changed of idea a little time after.
The 64 bits need the 64 bits SOIL library with numerous constants switch to define or not.
Fa is a musical note to play with CL

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: NeHe Tutorial in masm64
« Reply #58 on: October 22, 2020, 06:32:34 PM »
[delete]
« Last Edit: September 08, 2021, 02:47:42 AM by Mikl__ »

TouEnMasm

  • Member
  • *****
  • Posts: 1764
    • EditMasm
Re: NeHe Tutorial in masm64
« Reply #59 on: October 22, 2020, 08:20:53 PM »
Perhaps it's for that than no one work in windows 10.
The Nehe C++ use it,you can download them in "GITHUB  OPENGL NEHE TUTORIAL"
Fa is a musical note to play with CL