Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 18 16:51
    Build #3432 passed
  • May 18 16:51
    Build #3432 passed
  • May 17 09:53
    Build #3430 passed
  • May 17 09:53
    Build #3430 passed
  • May 13 18:07
    Build #3429 passed
  • May 13 18:07
    Build #3429 passed
  • May 13 16:37
    Build #3428 passed
  • May 13 16:37
    Build #3428 passed
  • May 13 14:45
    Build #3427 passed
  • May 13 14:45
    Build #3427 passed
  • May 13 11:11
    Build #3423 passed
  • May 13 11:11
    Build #3423 passed
  • May 13 10:14
    Build #3422 passed
  • May 13 10:14
    Build #3422 passed
  • May 12 15:34
    Build #3418 passed
  • May 12 15:34
    Build #3418 passed
  • May 12 15:13
    Build #3417 passed
  • May 12 15:13
    Build #3417 passed
  • May 12 13:22
    Build #3416 passed
  • May 12 13:22
    Build #3416 passed
Ardhenis Muhammad Aflah
@sayaPintar
you can add a new item resource
Ardhenis Muhammad Aflah
@sayaPintar
sorry if you don't mind, can i add my os in cosmos wiki list?
Deniz-seckin55
@Deniz-seckin55
Hey can someone send me a simple gui class?
I forgot its name.
Quajak
@quajak

sorry if you don't mind, can i add my os in cosmos wiki list?

Sure, feel free to also add a show and tell post to discussions.

YoshiFan100
@YoshiFan100
Hey, newbie here, I've written multiple small oses using cmd line functionalities similar to linux. But I wanted to up a notch by using GUI elements. I tried out a mouse, and it was slow, and as expected when I tried to draw a taskbar you could see it flicker. The approach I'm using is draw, clear, draw in each run function, is this not good? Should I try something else?
Deniz-seckin55
@Deniz-seckin55
How can I make an image variable? Image img = new Image() doesn't work.
Deniz-seckin55
@Deniz-seckin55
or how can I convert a file to Cosmos OS Image?
Deniz-seckin55
@Deniz-seckin55
Anyone?
napalmtorch
@napalmtorch
@YoshiFan100 To create a GUI you will need to figure out which graphics driver you want to use. If you go with VGA, you will be stable and work on real hardware, but limited to 320x200. If you choose VMWare, you will have much faster and higher resolution graphics, but much less stable and doesn't work on real hardware. Once you've picked which device you want to use, You can look at mine or @nifanfa github for a good VMWareSVGA driver or VGA driver. To prevent the flickering, you will need to implement a double buffer which mine and nifanfas driver has built in, but if you want to do it yourself its not very difficult. Basically create an array/memory block of pixels, and draw that entire array to the screen at once instead of directly drawing to the screen
https://github.com/napalmtorch/Napalm_OS - Is an example of an OS using VGA driver
https://github.com/napalmtorch/PurpleMoonOS_Old - Is an example of an OS using the VMWare SVGA driver
Hopefully that helps
wakko
@octaviousrex

How can I make an image variable? Image img = new Image() doesn't work.

what error did you get

Quajak
@quajak

How can I make an image variable? Image img = new Image() doesn't work.

Currently only Bitmaps are supported see https://cosmosos.github.io/api/Cosmos.System.Graphics.Bitmap.html

RecursiveDescent
@RecursiveDescent
Will cosmos ever support paging?
YoshiFan100
@YoshiFan100
@napalmtorch That helps, I thought you didn't need a graphics driver, you could just use the cosmos one. I'll look into this driver stuff
Quajak
@quajak
@YoshiFan100 the cosmos built in drivers have improved in the devkit and should be almost as good
YoshiFan100
@YoshiFan100
I'll give both a spin and see if it works.
Ardhenis Muhammad Aflah
@sayaPintar
@Deniz-seckin55 you can a convert to bitmap array before in Image, this work for me.
napalmtorch
@napalmtorch
@YoshiFan100 You don't technically need an external graphics driver, but if you use the ones built-in you will need to create a back buffer yourself
I would recommend against using Canvas though as it as slow as hell xD
Ardhenis Muhammad Aflah
@sayaPintar
hi!, i need trouble to display a bmp file with VMWareSVGA by @nifanfa but if i want do display a image its make blank screen, btw i following the code and still use Setvram
if i changed vMwareSVGAII.DoubleBuffer_SetVRAM(); with draw image still blank too
Prisision
@Prisision
Is There A Way To draw Bitmaps with Cosmos Canvas???
nifanfa
@nifanfa
DrawImage
bitmap b = new bitmap(@"0:\yourbitmap.bmp"); but first,register your file system and. add your bitmap
nifanfa
@nifanfa
QQ截图20210411133713.png
QQ截图20210411133254.png
Converting Windows Fonts To Cosmos
BlitzWolfMatthew
@BlitzWolfMatthew
Nice, make comic sans, I'm curious :)
nifanfa
@nifanfa
QQ截图20210411152016.png
nifanfa
@nifanfa

os.png

will your system will crash for no reason? just like mine #1659

if this is problem solved i think we can develop further
napalmtorch
@napalmtorch
@nifanfa My OS is stable but that is because I'm using VGA and not SVGA, me and @KM198912 are actively trying to debug the SVGA driver and improve it but for now VGA is the best option
Ardhenis Muhammad Aflah
@sayaPintar
@nifanfa nice!!
anerruption
@anerruption:beerfactory.org
[m]
hey
i found a missing plug for Colorful.Console
Quajak
@quajak
whats missing?
Quajak
@quajak
Has anyone used CPU.GetMemoryMap()? If yes, were the results correct?
anerruption
@anerruption:beerfactory.org
[m]
a function called GetStdHandle()
um no i haven't used it yet
Quajak
@quajak
Are you using the devkit?
wakko
@octaviousrex
I regret to inform you all that my OS (Gizmo OS) will not support the Vulkan Graphics API yet. No high performance gaming for users of my OS (AKA me!)
BlitzWolfMatthew
@BlitzWolfMatthew
@octaviousrex wait what, are actually willing to implement Vulkan into cosmos?
wakko
@octaviousrex

@octaviousrex wait what, are actually willing to implement Vulkan into cosmos?

not really (that'd be sick tho)

napalmtorch
@napalmtorch
cosmos_mem.png
@quajak I was playing with it today, this is what I came up with. Wrote this to help @KM198912
Ignore that ROM, RAM, and STK at the top, that is for my Interpreter/VM