News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

OpenGL in masm64

Started by Mikl__, May 02, 2020, 05:08:37 PM

Previous topic - Next topic

Mikl__

#90
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.

Mikl__

#91
A prototype is "Spot Light" by Franck Charlet. There are asm-file, cursor and exe-file in the attachment.

Mikl__

#92
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.

Mikl__

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__

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__

#95
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.

Mikl__

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

Congratulations :biggrin:
I watched a some of a your examples :thumbsup:
May the source be with you

jj2007

Quote from: Mikl__ on June 03, 2020, 08:09:47 PMIt'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

Quote from: jj2007 on June 04, 2020, 01:09:21 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:.

Mikl__

#100
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!

Mikl__

There is where to strive for something

Mikl__

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__

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__

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.