News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

OpenGL in masm64

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

Previous topic - Next topic

Mikl__

Hi, jj2007!
I seem to have done everything right, but for some reason the brightness is low. nidud had Same result in http://masm32.com/board/index.php?topic=7599.0 Try to increase the brightness and see 5 teapots. I will probably have to redo the program

jj2007


Mikl__

Of course better! jj2007, what did you fix? There is a picture on the site https://www.opengl.org/archives/resources/code/samples/redbook/

I think I understand it. jj2007, did you just turn up the brightness on the screen?

jj2007

I threw it into my trusty old PaintShop 4.1, used a Gamma correction of 1.6 and increased brightness a little bit :tongue:

Mikl__

Especially for jj2007. Second try. Let's find differences from the first version program Feedback is needed to make programs better

jj2007

That looks perfect, my friend :thumbsup:

Mikl__

Ciao, jj2007!
Ho fatto del mio meglio. . .

Mikl__

#157
Rotating model of "the 3-rd planet from the Sun".
Interaction:
  • pressing "D/d" for day texture
  • pressing "N/n" for night texture
There are asm\exe\raw-files and cursor in the attachment --> 77.zip (1994 Kb)

Mikl__

#158
The Rotating Donut in syrup
A prototype is "OpenGL torus in Assembly" by Sergey Chaban. There are asm\exe-files and cursor in the attachment.

Mikl__

#159
NeHe's tutorial 15 : Texture mapping outline fonts
There are asm\bmp\exe-files and cursor in the attachment.

avcaballero

You're a tireless programmer, Mikl  :thumbsup:

Mikl__

#161
¡Hola Alfonso!
Mis vacaciones se terminaron en la universidad, las conferencias para los estudiantes están comenzando y no tendré tiempo para OpenGL

HSE

Hi Mikl__!

After a while finally I can build something (first example, don't expect a lot  :biggrin:).

No AVX here, then movq don't work.
Some modifications are needed in opengl.inc:movf8 macro x,y
      ifndef movf8store
        .data
           movf8store qword 0
        .code
      endif
      db 48h,0B8h
      dq y
      mov movf8store, rax
      movsd x, movf8store
      ;%movq &x,rax
endm

movf8r macro x,y  ; this replace movq xmm, reg
      ifndef movf8store
        .data
           movf8store qword 0
        .code
      endif
      mov movf8store, y
      movsd x, movf8store
endm


Regards, HSE.
Equations in Assembly: SmplMath