The MASM Forum
Projects => Game Development => Topic started by: HSE 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 (http://masm32.com/board/index.php?topic=3075.msg31917#msg31917), but you can see that it's not perfect.
Regards. HSE
Later: without debugging system, and without leaks.
-
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
-
Thanks Biterider!
DC is alway open here :biggrin:
There is some problems, but it's just a test.
-
It runs and shows a stargate, but cpu usage is 100% for the core of the process, and it's unresponsive :sad:
-
Hi JJ!
87 kb file?
-
89088 bytes
-
Some functions like lens, circle and ring posted here , in ObjAsm subforum (http://masm32.com/board/index.php?topic=8232.new#new)
-
Hi all!
Modifying some functions, a circle progress bar following Fearless control (http://masm32.com/board/index.php?topic=3059.0) 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 (http://masm32.com/board/index.php?topic=8228.msg90463#msg90463))
-
Hi Hector
Looks very professional :thumbsup:
I noticed that the copyright string in the application properties is not resolved (%BUILD_YEAR).
Biterider
-
That's nice :thumbsup:
-
Thanks, is in progress :thumbsup:
-
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
-
Hi HSE
SG2 works fine here. The application properties are OK now :thumbsup:
Biterider
-
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:
-
works fine here
this works better
Thanks for test demo app :thumbsup:
-
Works fine now, although cpu usage is still somewhat high: 7%, which means 28% of one core :thumbsup:
-
Hi JJ!
Still don't work so well like Fearless control but is improving every time :biggrin:
The idea it's not optimization, but removing duplicates is going to make drawing faster.
Thanks.
-
Hi JJ!
Still don't work so well like Fearless control but is improving every time :biggrin:
The idea it's not optimization, but removing duplicates is going to make drawing faster.
Thanks.
but cpu based drawing,isnt that normally gets high cpu usage?
also isnt the next step to evolve it to a rotating stargate,like in SG-1 tvshow?
-
also isnt the next step to evolve it to a rotating stargate,like in SG-1 tvshow?
That was an idea, but don't look nice if control is small.
Beside, if the gate open, we don't know what is on the other side! :biggrin: :biggrin: :biggrin:
-
Aren't you curious what's behind the other side? :biggrin:
-
also isnt the next step to evolve it to a rotating stargate,like in SG-1 tvshow?
That was an idea, but don't look nice if control is small.
Beside, if the gate open, we don't know what is on the other side! :biggrin: :biggrin: :biggrin:
only have got start of that web version,goto random .html page
-
Aren't you curious what's behind the other side? :biggrin:
here is one of my interpretation of Worlds
Haven
name files L+number ,you can have random generator so you load random .jpg and fade in or your choice of fx or compress jpg more to smaller file size,also possible export meshes
-
No code in that archive, Daydreamer, just a jpg :sad:
-
No concentration for something better! :biggrin:
Chevrons still need antialiased borders.
-
:thumbsup:
-
No concentration for something better! :biggrin:
Chevrons still need antialiased borders.
nice :thumbsup:,but isnt that easily solved with antialias code
-
nice :thumbsup:,but isnt that easily solved with antialias code
Yesterday I found an algorithm, but it's coded in very very C++ :biggrin:
-
Thanks for sharing, this is a very useful information. Can you share the code to us so we can also use the new progress control.
-
Can you share the code to us so we can also use the new progress control.
Still in development. :thumbsup:
It's a little slow. In real applications I'm using Fearless' Circlebar Control (http://masm32.com/board/index.php?topic=3059.0)