Author Topic: OpenGL in masm64  (Read 3079 times)

Mikl__

  • Member
  • ****
  • Posts: 926
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

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #121 on: June 27, 2020, 02:10:51 PM »
What community is gloomy and not talkative. I can think there are only Finns and Estonians here. For example, would you not ask - "why is the snow in Antarctica so gray (Ashes from fires in Australia?)? Why is Greta Tintin Eleonora Ernman Thunberg silent?"

jj2007

  • Member
  • *****
  • Posts: 10319
  • Assembler 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: 926
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: 2170
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: 926
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: 926
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__ »