Author Topic: StarGate project  (Read 2669 times)

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
StarGate project
« on: December 16, 2019, 07:46:43 AM »
Hi all!

The idea was to develop a new progress control, but don't look very well in small scale.

In the way, I added some routines to ObjAsm's Pixelmap like FloodFill, lens, flare, and circles with smooth edge. Still I have to clean the code, wich still is 32 bits but inside the framework for dual bitness.

I draw only the superior chevron, the others are rotations and copy of that chevron. I'm using qWord's routine, but you can see that it's not perfect.

Regards. HSE

Later: without debugging system, and without leaks.
« Last Edit: December 16, 2019, 10:15:16 AM by HSE »

Biterider

  • Member
  • ****
  • Posts: 546
  • ObjAsm Developer
    • ObjAsm
Re: StarGate project
« Reply #1 on: December 16, 2019, 09:10:01 AM »
Hi HSE
It runs perfectly here.   :thumbsup:
It seems to be the debug version, since it launches the DC.
I think a way to get a better result is to draw the rotated chevrons with a higher resolution on an auxiliary pixelmap and then draw them on the target at a sub-pixel level.

Biterider
« Last Edit: July 11, 2020, 03:45:03 PM by Biterider »

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #2 on: December 16, 2019, 09:19:24 AM »
Thanks Biterider!

DC is alway open here  :biggrin:

There is some problems, but it's just a test.

jj2007

  • Member
  • *****
  • Posts: 10674
  • Assembler is fun ;-)
    • MasmBasic
Re: StarGate project
« Reply #3 on: December 16, 2019, 09:41:43 AM »
It runs and shows a stargate, but cpu usage is 100% for the core of the process, and it's unresponsive :sad:

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #4 on: December 16, 2019, 09:44:59 AM »
Hi JJ!

87 kb file?


jj2007

  • Member
  • *****
  • Posts: 10674
  • Assembler is fun ;-)
    • MasmBasic
Re: StarGate project
« Reply #5 on: December 16, 2019, 11:31:37 AM »
89088 bytes

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #6 on: December 18, 2019, 06:01:07 AM »
Some functions like lens, circle and ring posted here , in ObjAsm subforum

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #7 on: December 29, 2019, 09:04:37 AM »
Hi all!

Modifying some functions, a circle progress bar following Fearless control can be made.

This is maked setting pixels in a bitmap, not Gdi+ at all.

There is a color gradient drawing the arc (a little elemental)

Regards. HSE

(new improved binary in later post)
« Last Edit: December 31, 2019, 02:13:44 AM by HSE »

Biterider

  • Member
  • ****
  • Posts: 546
  • ObjAsm Developer
    • ObjAsm
Re: StarGate project
« Reply #8 on: December 29, 2019, 08:57:57 PM »
Hi Hector
Looks very professional  :thumbsup:
I noticed that the copyright string in the application properties is not resolved (%BUILD_YEAR).

Biterider

caballero

  • Member
  • *****
  • Posts: 1496
  • Matrix - Noah
    • abre ojos ensamblador
Re: StarGate project
« Reply #9 on: December 29, 2019, 10:34:37 PM »
That's nice  :thumbsup:
The logic of the error is hidden among the most unexpected lines of the program

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #10 on: December 30, 2019, 03:15:14 AM »
Thanks, is in progress  :thumbsup:

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #11 on: December 31, 2019, 02:11:08 AM »
An update of binary with improved resizing to ellipse, and smooth arc extremes.

Just to explain a little: I'm trying not to use GDI+ because Wine I have don't support GDI+. If your Win program is "GDI+ free" have a good chance to run correctly in other OS.

Regards. HSE
« Last Edit: December 31, 2019, 03:20:10 AM by HSE »

Biterider

  • Member
  • ****
  • Posts: 546
  • ObjAsm Developer
    • ObjAsm
Re: StarGate project
« Reply #12 on: December 31, 2019, 03:42:15 AM »
Hi HSE
SG2 works fine here. The application properties are OK now  :thumbsup:
Biterider

daydreamer

  • Member
  • *****
  • Posts: 1391
  • building nextdoor
Re: StarGate project
« Reply #13 on: December 31, 2019, 04:46:37 AM »
An update of binary with improved resizing to ellipse, and smooth arc extremes.

Just to explain a little: I'm trying not to use GDI+ because Wine I have don't support GDI+. If your Win program is "GDI+ free" have a good chance to run correctly in other OS.
the previous version started all over with from 0% when maximizing,this works better with continue from previous percentage :thumbsup:


Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

HSE

  • Member
  • *****
  • Posts: 1410
  • <AMD>< 7-32>
Re: StarGate project
« Reply #14 on: December 31, 2019, 07:11:38 AM »