Author Topic: NeHe Tutorial in masm64  (Read 6369 times)

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #15 on: August 06, 2020, 07:36:37 PM »
Lesson #16: Cool Looking Fog
It's a pretty short tutorial aimed at teaching you the art of fog. You'll learn how to use 3 different fog filters, how to change the color of the fog, and how to set how far into the screen the fog starts and how far into the screen it ends.
There are asm\bmp\exe-files and cursor in the attachment

http://nehe.gamedev.net/tutorial/cool_looking_fog/19001/

Interaction:
  • pressing "L/l" ― turn on/off light
  • pressing "F/f" ― select texture filter
  • pressing "G/g" ― select fog filter
  • pressing "Page Up/Down" ― increases/decrease the z-variable and moves the cube towards/away from the viewer
  • pressing "Arrow Left/Right" ― increase/decrease x-rotation speed
  • pressing "Arrow Up/Down" ― increase/decrease y-rotation speed
« Last Edit: October 06, 2020, 08:46:09 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #16 on: August 06, 2020, 08:12:13 PM »
Lesson #18: Quadrics
In this tutorial you will learn how to write any character or phrase you want to the screen using texture mapped quads. You will learn how to read one of 256 different characters from a 256x256 texture map, and finally NeHe will show you how to place each character on the screen using pixels rather than units. Even if you're not interested in drawing 2D texture mapped characters to the screen, there is lots to learn from this tutorial. Definitely worth reading!

http://nehe.gamedev.net/tutorial/quadrics/20001/

There are asm\bmp\exe-files and cursor in the attachment
Interaction:
  • pressing "space" ― create complex objects such as sphere, discs, cylinder, cone
  • pressing "L/l" ― turn on/off light
  • pressing "F/f" ― select texture filter
  • pressing "Page Up/Down" ― increases/decrease the z-variable and moves the cube towards/away from the viewer
  • pressing "Arrow Left/Right" ― increase/decrease x-rotation speed
  • pressing "Arrow Up/Down" ― increase/decrease y-rotation speed
« Last Edit: October 06, 2020, 08:47:09 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #17 on: August 06, 2020, 09:02:26 PM »
Lesson #36: Radial Blur & Rendering To A Texture
This tutorial will show you how to create an extremely impressive Radial Blur effect. It should run fast on just about every type of hardware, and does not require the use of extensions. This tutorial will also teach you how to render to a texture using the off-screen buffer. A topic I'm sure many of you are interested in! It's important to note that there is very little explanation of the GL commands. By now you should know what they do!
There are asm-\exe-files and cursor in the attachment

http://nehe.gamedev.net/tutorial/radial_blur__rendering_to_a_texture/18004/
« Last Edit: September 15, 2020, 10:07:20 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #18 on: August 07, 2020, 11:38:01 AM »
Lesson #17: 2D-Texture Font
In this tutorial you will learn how to write any character or phrase you want to the screen using texture mapped quads. You will learn how to read one of 256 different characters from a 256x256 texture map, and finally NeHe will show you how to place each character on the screen using pixels rather than units. Even if you're not interested in drawing 2D-texture mapped characters to the screen, there is lots to learn from this tutorial. Definitely worth reading!
There are asm-\bmp-\exe-files and cursor in the attachment

http://nehe.gamedev.net/tutorial/2d_texture_font/18002/
« Last Edit: September 15, 2020, 10:08:33 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #19 on: August 08, 2020, 10:46:02 PM »
Lesson #10: Loading and Moving Through a 3D-World

In this lesson you will learn how to load a 3D world from a data file, and move through the 3D world. The tutorial only explains the NEW code used to load the 3D scene, and move around inside the 3D world. Download asm-code, and follow through it as you read the tutorial. Keys to try out are Blend, Filtering, Lighting (light does not move with the scene however), Left/Right/Up/Down Arrow, and Page Up/Page Down.

http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/

There are asm-\exe-files, cursor, mud.bmp for texture and world.txt in the attachment
« Last Edit: August 24, 2020, 08:56:26 PM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #20 on: August 09, 2020, 04:23:51 PM »
Lesson #19: Particle Engine Using Triangle Strips

Have you ever wanted to create an explosion, water fountain, flaming star, or some other cool effect in your OpenGL program, but writing a particle engine was either too hard, or just too complex? If so, this tutorial is for you. You'll learn how to program a simple but nice looking particle engine. NeHe has thrown in a few extras like a rainbow mode, and lots of keyboard interaction. You'll also learn how to create OpenGL triangle strips. NeHe hopes you find the code both useful and entertaining.

http://nehe.gamedev.net/tutorial/particle_engine_using_triangle_strips/21001/

Interaction:
  • pressing "+"/"-" ― increases/decrease the variable slowdown
  • pressing "Page Up"/"Page Down"  ― increases/decrease the z-variable and moves the source of stars towards/away from the viewer
  • pressing "Arrow Left"/"Arrow Right" ― increase/decrease x-rotation speed
  • pressing "Arrow Up"/"Arrow Down" ― increase/decrease y-rotation speed
There are asm-\exe-\bmp-files and cursor in the attachment
« Last Edit: October 06, 2020, 08:49:34 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #21 on: August 10, 2020, 02:52:10 PM »
Lesson #20: Masking

Up until now we've been blending our images onto the screen. Although this is effective, and it adds our image to the scene, a transparent object is not always pretty. Lets say you're making a game and you want solid text, or an odd shaped console to pop up. With the blending we have been using up until now, the scene will shine through our objects. By combining some fancy blending with an image mask, your text can be solid. You can also place solid oddly shaped images onto the screen. A tree with solid branches and non transparent leaves or a window, with transparent glass and a solid frame. Lots of possiblities!

http://nehe.gamedev.net/tutorial/masking/15006/

Interaction:
  • pressing "space" ― switch textures
  • pressing "M/m" ― masking is turned on/off
« Last Edit: October 06, 2020, 08:51:09 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #22 on: August 10, 2020, 06:48:28 PM »
Lesson #34: Beautiful Landscapes By Means Of Height Mapping
Want to create beautiful landscapes smooth shaded landscapes using nothing more than a single texture? If so, this tutorial will teach you how to convert a 2D-greyscale height map image into a full blown 3D landscape. NeHe also talk a little about gluLookAt, a command that seems to have a few of you baffled.
http://nehe.gamedev.net/tutorial/beautiful_landscapes_by_means_of_height_mapping/16006/
« Last Edit: August 16, 2020, 11:43:09 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #23 on: August 15, 2020, 09:19:16 AM »
Lesson #35: Playing AVI-files in OpenGL
(1-st part. Only avi-player!)
This tutorial will teach you how to play AVI files in OpenGL. Play them in a window, on the side of a cube, sphere, cylinder, etc. Create a billboard with full motion video playing on it! The tutorial also shows you how to use sphere mapping to create a cool looking live environment mapping effect.

http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/

File movie0.avi is here. Important! Avi-file must be uncompressed and not contain an audio stream. It must be in the same directory with the avi-player.

There are asm-/exe-file and cursor in 35.zip, lib-files in 35 lib.zip and include-files in 35 include.zip.
(to be continue...)
« Last Edit: October 06, 2020, 09:08:12 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #24 on: August 16, 2020, 02:26:17 PM »
Lesson #23: Sphere Mapping Quadrics in OpenGL
This tutorial code is based on NeHe quadrics tutorial (lesson 18). In lesson 15 (texture mapped fonts) NeHe talked a little bit about sphere mapping. NeHe explained how to auto-generate texture coordinates, and how to set up sphere mapping, but because lesson 15 was fairly simple NeHe decided to keep the tutorial simple, leaving out alot of details in regards to sphere mapping. Now that the lessons are a little more advanced it's time to dive into the world of sphere mapping.

http://nehe.gamedev.net/tutorial/sphere_mapping_quadrics_in_opengl/15005/

There are asm-\exe-\bmp-files and cursor in the attachment.

Interaction:
  • pressing "L/l" ― turn on/off light
  • pressing "space" for switch figures (cube, cylinder, sphere, cone)
  • pressing "F/f" ― select texture filter
  • pressing "Page Up/Down" ― increases/decrease the z-variable and moves towards/away from the viewer
  • pressing "Arrow Left/Right" ― increase/decrease x-rotation speed
  • pressing "Arraw Up/Down" ― increase/decrease y-rotation speed
« Last Edit: October 06, 2020, 08:53:34 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #25 on: August 20, 2020, 01:46:27 AM »
Lesson #42: Multiple Viewports
This tutorial was written for to show how to display multiple views on a single screen. This tutorial will teach you how to set up multiple viewports, how to display both ortho and perspective views on the same screen, and how to display a variety of effects with each effect running in it's own viewport. As an added bonus, you will learn how to get the size of your OpenGL window, you will learn a very fast way to update a texture without rebuilding it. You will learn how to use GL_COLOR_MATERIAL to color a texture and you will get to play around with the maze.

http://nehe.gamedev.net/tutorial/multiple_viewports/20002/

There are asm-\exe-files and cursor in the attachment.

Interaction:
  • pressing "space" ― the maze is reset, and the program starts redrawing a new maze
« Last Edit: October 06, 2020, 08:54:10 AM by Mikl__ »

Mikl__

  • Member
  • *****
  • Posts: 1065
Re: NeHe Tutorial in masm64
« Reply #26 on: August 20, 2020, 03:32:09 PM »
Lesson #26: Clipping & Reflections Using The Stencil Buffer
This tutorial demonstrates how to create extremely realistic reflections using the stencil buffer, clipping, and multi-texturing. This tutorial is more advanced than previous lessons, so please make sure you've read the previous lessons before jumping in. It's also important to note this tutorial will not run on video cards that do not support the stencil buffer (voodoo 1, 2, perhaps more).

http://nehe.gamedev.net/tutorial/clipping__reflections_using_the_stencil_buffer/17004/

Interaction:
  • pressing one of the 4 arrow keys ― the ball is spun right, left, down or up.
  • pressing 'A/a' ― zoom you in closer to the ball
  • pressing 'Z/z' ― zoom you away from the ball.
  • Pressing 'PAGE UP/DOWN' ― increase/decrease  the value of height moving the ball up/down.
There are asm-\exe-\bmp-files and cursor in the attachment.
« Last Edit: October 06, 2020, 08:58:17 AM by Mikl__ »

LordAdef

  • Member
  • ****
  • Posts: 669
Re: NeHe Tutorial in masm64
« Reply #27 on: August 20, 2020, 04:31:46 PM »
wow, I saw it tonight, and I know what I’ll be doing as a side study for the next few days!




caballero

  • Member
  • *****
  • Posts: 1561
  • Matrix - Noah
    • abre ojos ensamblador
Re: NeHe Tutorial in masm64
« Reply #28 on: August 20, 2020, 05:17:08 PM »
wishes: give us more examples  :thumbsup:  :bgrin:
The logic of the error is hidden among the most unexpected lines of the program

jj2007

  • Member
  • *****
  • Posts: 11124
  • Assembler is fun ;-)
    • MasmBasic
Re: NeHe Tutorial in masm64
« Reply #29 on: August 20, 2020, 06:56:59 PM »
There is silence, like in a crematory. Are there really no questions or wishes?

I wish I had the time to study your examples, Mikl :greenclp: