Author Topic: OpenGL in masm64  (Read 3078 times)

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #90 on: May 30, 2020, 02:17:19 AM »
This program shows how to draw anti-aliased lines. It draws two diagonal lines to form an X when 'r' or 'R' is typed in the window, the lines are rotated in opposite directions. A prototype is aargb.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 30, 2020, 09:04:02 AM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #91 on: May 30, 2020, 12:49:50 PM »
A prototype is "Spot Light" by Franck Charlet. There are asm-file, cursor and exe-file in the attachment.
« Last Edit: May 30, 2020, 11:13:16 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #92 on: May 30, 2020, 10:48:25 PM »
Stainless steel cylinder. A prototype is "Sphere Mapping" by Franck Charlet. There are asm-file, cursor, bmp-file for texture and exe-file in the attachment.
« Last Edit: June 01, 2020, 04:00:10 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #93 on: May 31, 2020, 12:02:26 AM »
This program texture maps a checkerboard image onto two rectangles. This program clamps the texture, if the texture coordinates fall outside 0.0 and 1.0. A prototype is checker.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #94 on: May 31, 2020, 11:57:30 AM »
This program shows how to composite modeling transformations to draw translated and rotated hierarchical models.  A prototype is robot.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
Interaction: pressing the "s", "S", "E" and "e" keys (shoulder and elbow) alters the rotation of the robot arm.

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #95 on: May 31, 2020, 09:47:27 PM »
Graphic primitives. This program demonstrates polygon tessellation. Two tesselated objects are drawn. The first is a rectangle with a triangular hole. The second is a smooth shaded, self-intersecting star. Note the exterior rectangle is drawn with its vertices in counter-clockwise order, but its interior clockwise. Note the combineCallback is needed for the self-intersecting star. Also note that removing the TessProperty for the star will make the interior unshaded (WINDING_ODD). A prototype is tess.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.
« Last Edit: June 01, 2020, 04:10:18 PM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #96 on: June 03, 2020, 08:09:47 PM »
It is a small holiday today - I have 900-th post in masm32.com forum It’s a pity that there is no feedback ...

TimoVJL

  • Member
  • ****
  • Posts: 525
Re: OpenGL in masm64
« Reply #97 on: June 04, 2020, 12:38:46 AM »
Congratulations :biggrin:
I watched a some of a your examples :thumbsup:
May the source be with you

jj2007

  • Member
  • *****
  • Posts: 10318
  • Assembler is fun ;-)
    • MasmBasic
Re: OpenGL in masm64
« Reply #98 on: June 04, 2020, 01:09:21 AM »
It’s a pity that there is no feedback ...

Dear Mikl,

Congrats to your 900th post  :thumbsup:

There is no feedback because we are watching with awe what you produce every day. Most of us are simply not able to follow you... sincere compliments, this is great stuff :thup:

felipe

  • Member
  • *****
  • Posts: 1309
  • Eagles are just great!
Re: OpenGL in masm64
« Reply #99 on: June 04, 2020, 01:20:41 AM »
Most of us are simply not able to follow you...

That's my case too, especially because i just don't have the time  :sad:. But let me tell you: you have done a great job!  :greenclp:.
Felipe.

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #100 on: June 04, 2020, 06:12:22 PM »
Hi, TimoVJL, jj2007, felipe!
Thanks a lot!
There are asm-file, cursor, raw-file for texture and exe-file in the attachment
Interaction:
  • left mouse clicks ― rotation about x-axis
  • right mouse clicks ― rotation about y-axis
Hi, hutch--!
I will can make a planet with only one continent "Australia" and a satellite of such a planet with the continent "New Zealand" I feel myself the creator of the universe!
« Last Edit: June 06, 2020, 10:23:02 AM by Mikl__ »

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #101 on: June 05, 2020, 04:11:04 PM »
There is where to strive for something

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #102 on: June 06, 2020, 08:26:00 PM »
Per aspera ad astra
A few handfuls of stars and the picture came to life. There are asm-file, cursor, bin-file and exe-file in the attachment

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #103 on: June 10, 2020, 08:55:03 PM »
This program demonstrates how to intermix opaque and alpha blended polygons in the same scene, by using glDepthMask. Press the 'a' or 'A' keys to animate moving the transparent object through the opaque object. Press the 'r' or 'R' keys to reset the scene. A prototype is alpha3D.c from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.

Mikl__

  • Member
  • ****
  • Posts: 926
Re: OpenGL in masm64
« Reply #104 on: June 12, 2020, 11:52:16 PM »
This program draws a texture mapped teapot with automatically generated texture coordinates. The texture is rendered as stripes on the teapot. Initially, the object is drawn with texture coordinates based upon the object coordinates of the vertex and distance from the plane x=0. Pressing the 'e' or 'E' keys changes the coordinate generation to eye coordinates of the vertex. Pressing the 'o' or 'O' keys switches it back to the object coordinates. Pressing the 's' or 'S' keys changes the plane to a slanted one (x+y+z=0). Pressing the 'x' or 'X' keys switches it back to x=0. A prototype is texgen.c  from https://www.opengl.org/archives/resources/code/samples/redbook/ There are asm-file, cursor and exe-file in the attachment.