Author Topic: OpenGL in masm64  (Read 37813 times)

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #120 on: June 23, 2020, 10:20:55 PM »
Have you relaxed and rested enough?

Antarctica
Converted example from https://nehe.gamedev.net/tutorial/beautiful_landscapes_by_means_of_height_mapping/16006/ There are asm-file, raw-file, cursor and exe-file in the attachment.
Interaction:
  • pressing the "Arrow Left", "Arrow Right" ― surface rotation clockwise and counterclockwise
  • pressing the "Arrow Up", "Arrow Down" ― Zoom In and Zoom Out
  • Left Mouse Click ― change rendering state between fill/wire frame
January 28, 1820 is the day of the discovery of the sixth continent ― Antarctica. The honor to open the sixth continent fell to the Russian sailors: Thaddeus F. Bellingshausen (1778-1852) and Mikhail P. Lazarev (1788-1851).
« Last Edit: July 08, 2020, 11:30:50 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #121 on: June 27, 2020, 02:10:51 PM »
[delete]
« Last Edit: July 07, 2020, 03:43:06 PM by Mikl__ »

jj2007

  • Member
  • *****
  • Posts: 13944
  • Assembly is fun ;-)
    • MasmBasic
Re: OpenGL in masm64
« Reply #122 on: June 27, 2020, 07:21:41 PM »
Hey, Mikl, this is impressive :thumbsup:

But I was convinced that it showed dark clouds over Antarctica - and that seems entirely plausible to me. Even Greta wouldn't mind, I guess :cool:

Btw it shows a weird behaviour on my Win7-64 machine: sometimes it works, sometimes it just shows me a black screen :rolleyes:

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #123 on: June 27, 2020, 07:48:49 PM »
Quote
Btw it shows a weird behaviour on my Win7-64 machine: sometimes it works, sometimes it just shows me a black screen
Ciao, jj2007!
I'm very interested in the stable work of my programs, but this is impossible if there is no feedback between me and the user
« Last Edit: June 28, 2020, 02:26:47 PM by Mikl__ »

Siekmanski

  • Member
  • *****
  • Posts: 2718
Re: OpenGL in masm64
« Reply #124 on: June 27, 2020, 09:36:22 PM »
Works perfect on my PC, very smooth color transition.  :thumbsup:
Creative coders use backward thinking techniques as a strategy.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #125 on: June 27, 2020, 10:52:07 PM »
Hallo, Siekmanski!
Dank je voor het antwoord!
« Last Edit: June 28, 2020, 02:27:19 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #126 on: June 28, 2020, 06:07:58 PM »
Quote
Den Brer Rabbit talk mighty ’umble.
"I don’t keer w’at you do wid me, Brer Fox," sezee, "so you don’t fling me in dat brier-patch. Roas’ me, Brer Fox" sezee, "but don’t fling me in dat brierpatch," sezee.
The prototype is "Display JPG" by Franck Charlet. There are asm-file, jpg-file, cursor and exe-file in the attachment. The main thing to remember is that the width equal to the height of the image in the jpg file, must be a power of two.
« Last Edit: June 30, 2020, 01:22:55 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #127 on: July 05, 2020, 05:32:22 PM »
Converted example from https://nehe.gamedev.net/tutorial/radial_blur__rendering_to_a_texture/18004/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: July 05, 2020, 06:39:57 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #128 on: July 11, 2020, 12:34:40 PM »
The gift for Stive Hutchinson to 72-nd birthday (better late than never)
Converted example from https://nehe.gamedev.net/tutorial/flag_effect_(waving_texture)/16002/ There are asm/bmp/exe-files and cursor in the attachment.
P.S. Sorry, the bmp-file was missing in the attachment, I had to redo it
« Last Edit: July 23, 2020, 11:45:54 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #129 on: July 13, 2020, 12:45:39 PM »
Converted example from https://nehe.gamedev.net/tutorial/moving_bitmaps_in_3d_space/17001/ There are asm-\bmp-\exe-files and  cursor in the attachment.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #130 on: July 18, 2020, 11:29:31 AM »
This program demonstrates drawing pixels and shows the effect of glDrawPixels(), glCopyPixels(), and glPixelZoom().
Interaction:
  • moving the mouse while pressing the mouse button will copy the image in the lower-left corner of the window to the mouse position, using the current pixel zoom factors. There is no attempt to prevent you from drawing over the original image.
  • pressing the 'r' or 'R' key ― the original image and zoom factors are reset
  • pressing the 'z' or 'Z' keys ― you change the zoom factors
A prototype is image.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-\exe-files and cursor in the attachment.
« Last Edit: July 19, 2020, 09:07:59 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #131 on: July 19, 2020, 03:21:12 PM »
A prototype is "Move Original" by Franck Charlet. There are asm-\exe-files and  cursor in the attachment.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #132 on: July 19, 2020, 04:12:03 PM »
A prototype is "Infinite Light" by Franck Charlet. There are asm-\exe-files and  cursor in the attachment.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #133 on: July 19, 2020, 07:43:39 PM »
A prototype is "Light and Colored Texture" by Franck Charlet. There are asm-\exe-\bmp-files and  cursor in the attachment.

Mikl__

  • Member
  • *****
  • Posts: 1345
Re: OpenGL in masm64
« Reply #134 on: July 20, 2020, 01:02:44 AM »
A prototype is "Texture Matrix" by Franck Charlet. There are asm-\exe-\bmp-files and  cursor in the attachment.