Author Topic: SWGPTG - 02 - Drawing Basic Shapes  (Read 17333 times)

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #45 on: December 04, 2019, 02:52:57 AM »
My version of polar rose is in my site, with source code
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #46 on: December 04, 2019, 08:06:20 AM »
Bouncing ball with gravity
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #47 on: December 05, 2019, 08:12:29 AM »
Updated the fifth chapter with the bouncing ball demo and the relationship between Pythagoras' theorem and circumferences
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1766
  • <AMD>< 7-32>
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #48 on: December 06, 2019, 01:32:43 AM »
Very nice  :thumbsup:

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #49 on: December 09, 2019, 05:01:12 AM »
This chapter translated to English and some new code.
The logic of the error is hidden among the most unexpected lines of the program

daydreamer

  • Member
  • *****
  • Posts: 1757
  • building nextdoor
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #50 on: December 10, 2019, 01:44:46 AM »
This chapter translated to English and some new code.
maybe better to reorder math from simpler pythagoras and circlemaking sine and cosine to be before the more advanced rotation formula which is based on the previous its made from same radius on both the old angle and the new angle
good work with making that chapter :thumbsup:
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #51 on: December 10, 2019, 07:58:08 AM »
Better show first Pythagoras than complex numbers and rotation? Maybe. Thank you anyway  :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #52 on: December 15, 2019, 08:47:02 PM »
I have started the chapter of graphics demos, here is a "raining drops" demo. Note that the window is a 512x512 size that will facilitate me the calculation of random points through xorshifts functions. The use of the standard c rand function is heavy and would lead to a greater increase in CPU usage. In this case it is inappreciable. It may take me a little longer to start with this chapter because I would like to leave the asm versions of the previous ones.

Chapter 6 started here, only in Spanish for the moment
http://abreojosensamblador.epizy.com/?Tarea=5&SubTarea=6
« Last Edit: December 16, 2019, 05:16:38 AM by caballero »
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1766
  • <AMD>< 7-32>
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #53 on: December 16, 2019, 07:32:09 AM »
 :thumbsup:

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #54 on: December 18, 2019, 06:31:20 AM »
This time a flag demo to show how useful may be the sine/cosine function. There's an interesting tricky here: though there are 360 degrees we can reduce them to 255 and play with binary functions (and) instead of divisions (module). This is a quite simple example too and is quite easy to design your own flag too.
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #55 on: December 29, 2019, 04:21:51 AM »
Blobs Demo, 32 and 64 bits
The logic of the error is hidden among the most unexpected lines of the program

Iznogoode

  • Guest
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #56 on: December 29, 2019, 05:43:39 AM »
Thank you caballero for these fascinating works.  I'm reading your first posts and some chapters of Charles Petzold's book (Programming Windows - fith edition) are very useful for understanding any aspects of your work.  Thank you very much !

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #57 on: December 29, 2019, 05:59:44 AM »
Thank you to you. That is a really good book  :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1643
  • Matrix - Noah
    • abre ojos ensamblador
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #58 on: December 29, 2019, 10:38:23 PM »
Blur effect is quite important because is used in many graphic demos. This sample is a bit more elaborated, uses blurring that gives a 3d sensation, observe the rhodonea path, and we are here I have added a text scrolling with pixel clipping and a tune in the background. Everything in 108kb uncompressed that could be 17kb compressed.
The logic of the error is hidden among the most unexpected lines of the program

daydreamer

  • Member
  • *****
  • Posts: 1757
  • building nextdoor
Re: SWGPTG - 02 - Drawing Basic Shapes
« Reply #59 on: December 31, 2019, 04:57:13 AM »
nice work Carlos :thumbsup:

how is your take on make simplest tunnel and more advanced?


« Last Edit: December 31, 2019, 06:02:15 AM by daydreamer »
SIMD fan and macro fan
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."