News:

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

Main Menu

SWGPTG - 02 - Drawing Basic Shapes

Started by avcaballero, May 15, 2018, 10:21:14 PM

Previous topic - Next topic

avcaballero

Hello, I have just uploaded my fifth chapter about basic maths for 2d graphics. It is a work in progress that I have just started. The last point is for moving a point between 2 points in the screen in a straight way. If anyone want to try it before I upload more stuff in this chapter is welcome to do it. For the moment only in Spanish and only for TinyC. Regards.

HSE

Hola Caballero!

Me parece que no está muy claro que son los números complejos. A lo mejor ayudaría una nota que diga para que nos va a servir conocer los números complejos.

Aparentemente todavía no se puede descargar ningún código TinyC.

:thumbsup:
Equations in Assembly: SmplMath

avcaballero

Bueno, gajes del directo :biggrin:, ya se pueden descargar. He explicado someramente lo que son los números complejos, en principio no quiero profundizar más para no liar al que lo lea, básicamente el cuerpo de los números complejos se corresponde con el plano real. Los vamos a usar para rotar un número, cuyo ejemplo está en el punto 5.1.3. como he indicado ahí, concretamente la circunferencia de la izquierda. :thumbsup:

HSE

Faltaría un cast:
Code (Espiral01c.c) Select
  108: pMainDIB[i] = (int) miPaleta[m];


Ya voy a entender lo de la paleta  :biggrin:
Equations in Assembly: SmplMath

avcaballero

 :thumbsup:No tiene mucho misterio, pero es una herramienta muy potente para la programación de gráficos.

avcaballero

Hello, a simple stright line path example. Don't know if anyone want to try it

Biterider

Hi
Works fine on W10-64 Home  :thumbsup:

Biterider

daydreamer

Quote from: caballero on November 25, 2019, 05:58:23 AM
Hello, I have just uploaded my fifth chapter about basic maths for 2d graphics. It is a work in progress that I have just started. The last point is for moving a point between 2 points in the screen in a straight way. If anyone want to try it before I upload more stuff in this chapter is welcome to do it. For the moment only in Spanish and only for TinyC. Regards.
I really like your spirals,I tested move path between 2 points program and it works

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

avcaballero


avcaballero

I have updated the fifth chapter including two path examples: circular and splines. Attached here one for the last one: 5 random generating points calculated each time the program starts.

daydreamer

Quote from: caballero on December 01, 2019, 10:19:40 PM
I have updated the fifth chapter including two path examples: circular and splines. Attached here one for the last one: 5 random generating points calculated each time the program starts.
works fine,also nice polar rose
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

avcaballero


Siekmanski

They work fine, as all your demos do on my Win 8.1 64 bit PC.  :thumbsup:
Creative coders use backward thinking techniques as a strategy.

avcaballero

Talking about paths, here a nice program that I found some time ago here that I have translated to tiny c, the original in freebasic flickers a bit.

daydreamer

Quote from: caballero on December 03, 2019, 09:38:28 AM
Talking about paths, here a nice program that I found some time ago here that I have translated to tiny c, the original in freebasic flickers a bit.
It works
I want your version of polar rose with source please
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding