Author Topic: OpenGL in masm64  (Read 6249 times)

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #45 on: May 09, 2020, 11:25:07 AM »
This program demonstrates the creation of a display list. Rotate about x-axis when "x" or "X" typed; rotate about y-axis when "y" or "Y" typed; "i" or "I" returns torus to original view. A prototype is torus.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 11:52:30 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #46 on: May 11, 2020, 02:28:46 PM »
This program draws 5 red balls, each at a different Z-distance from the viewer, in different types of fog. This program chooses between 3 types of fog when "f" or "F" typed:
  • exponential
  • exponential squared
  • and linear
In this program, there is a fixed density value, as well as fixed start and end values for the linear fog. A prototype is fog.c  from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 11:52:42 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #47 on: May 11, 2020, 08:13:53 PM »
A prototype is Flat Rendering.asm by Franck Charlet. There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 11:52:59 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #48 on: May 11, 2020, 11:35:56 PM »
This program shows how to composite modeling transformations to draw translated and rotated models. Interaction: pressing the "d" (day) (rotation of a satellite planet around its axis clockwise), "D" (rotation of a satellite planet around its axis counterclockwise) and "y" (year) (clockwise rotation of a satellite planet around a large planet) and "Y" (rotation of a satellite planet around a large planet counterclockwise). A prototype is planet.c  from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:21:22 PM by Mikl__ »

felipe

  • Member
  • *****
  • Posts: 1333
  • Eagles are just great!
Re: OpenGL in masm64
« Reply #49 on: May 12, 2020, 02:39:04 AM »
Mikl_ looks that you are a genius, this is really great stuff  :greenclp:. I will be trying all this demos...I already tried the first one and runs with no problems here (in my pc). Nice that you are still developing and sharing your software.. :thup: :thup: Btw i didn't recall you had your "own" category in the forum (i mean "Mikl__'s ml64 examples"). You sure deserve it. Thanks a lot man!  :thup: :greensml:
Felipe.

felipe

  • Member
  • *****
  • Posts: 1333
  • Eagles are just great!
Re: OpenGL in masm64
« Reply #50 on: May 12, 2020, 03:23:19 AM »
Second example works fine too  :thumbsup:. Didn't know that opengl32.dll is already in the system. And looks that there are no needs to install any extra software to run all this cool demos. So i think that opengl is less bloated/less work than what it is directx...Any thoughts on this comparison?  :icon_idea:
Felipe.

HSE

  • Member
  • *****
  • Posts: 1381
  • <AMD>< 7-32>
Re: OpenGL in masm64
« Reply #51 on: May 12, 2020, 06:02:26 AM »
Hi Mikl__!

I solved first problem: Ml64 don't know :
Code: [Select]
movq xmm1,rax
In ml64 must be :
Code: [Select]
movd xmm1, rax :biggrin: very ... something

Now I found I don't have glut32.lib

Where you find that?

Thanks

felipe

  • Member
  • *****
  • Posts: 1333
  • Eagles are just great!
Re: OpenGL in masm64
« Reply #52 on: May 12, 2020, 06:49:13 AM »
I just tried the 31.zip. Great stuff. I think opengl is really a worth to try. Nice Mikl__  :thup: one more time, thanks.  :greenclp:
Felipe.

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #53 on: May 12, 2020, 09:44:20 AM »
¡Hola, felipe!
¡Muchas gracias!
Quote
Now I found I don't have glut32.lib Where you find that?
Hi, HSE! Are you from the USA?
I made it myself
« Last Edit: May 12, 2020, 02:51:57 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #54 on: May 12, 2020, 04:40:10 PM »
This program demonstrates arbitrary clipping planes. A prototype is clip.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:21:52 PM by Mikl__ »

HSE

  • Member
  • *****
  • Posts: 1381
  • <AMD>< 7-32>
Re: OpenGL in masm64
« Reply #55 on: May 12, 2020, 10:29:25 PM »
Are you from the USA?
No. Almost so lazzy  :biggrin:

I made it myself
I failed to build glut in 32 bit. I'am not going to try in 64 bit  :undecided:. But in 32 bit there is a building available.
I just play in 64 bits from time to time. This examples make that more interesting.
Thanks MIkl__  :thumbsup:

nidud

  • Member
  • *****
  • Posts: 1980
    • https://github.com/nidud/asmc
Re: OpenGL in masm64
« Reply #56 on: May 13, 2020, 12:14:53 AM »
Here's a simple command line tool to build 64-bit import libraries.

http://masm32.com/board/index.php?topic=8543.new#new
« Last Edit: May 13, 2020, 10:07:17 PM by nidud »

HSE

  • Member
  • *****
  • Posts: 1381
  • <AMD>< 7-32>
Re: OpenGL in masm64
« Reply #57 on: May 13, 2020, 01:11:01 AM »
Thanks. I will test next time in 64bits.  :thumbsup:

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #58 on: May 13, 2020, 04:14:43 PM »
The program demonstrates polygon stippling. A prototype is polys.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:22:06 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1008
Re: OpenGL in masm64
« Reply #59 on: May 14, 2020, 10:42:38 AM »
This is an illustration of the selection mode and name stack, which detects whether objects which collide with a viewing volume. First, four triangles and a rectangular box representing a viewing volume are drawn (drawScene routine). The green triangle and yellow triangles appear to lie within the viewing volume, but the red triangle appears to lie outside it. Then the selection mode is entered (selectObjects routine). Drawing to the screen ceases. To see if any collisions occur, the four triangles are called. In this example, the green triangle causes one hit with the name 1, and the yellow triangles cause one hit with the name 3.
A prototype is select.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 21, 2020, 12:22:19 PM by Mikl__ »