Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 16 21:04
    napalmtorch commented #1695
  • Apr 16 20:32
    MishaTY commented #1723
  • Apr 16 19:49
    elkaamee326 commented #1723
  • Apr 16 19:14
    quajak closed #1723
  • Apr 16 19:14
    quajak commented #1723
  • Apr 16 19:12
    MishaTY commented #1723
  • Apr 16 18:50
    Vardan2009 opened #1723
  • Apr 16 14:14
    carcarjg commented #528
  • Apr 16 13:49
    alessiobb1 opened #1722
  • Apr 16 13:42
    alessiobb1 commented #528
  • Apr 15 13:02
    KM198912 unlabeled #1716
  • Apr 15 06:34
    Build #3273 passed
  • Apr 15 06:34
    Build #3273 passed
  • Apr 15 06:18
    valentinbreiz synchronize #1652
  • Apr 15 06:18

    valentinbreiz on rtl8168

    Update VMWareSVGAII.cs Fix SVG… Update VMWareSVGAII.cs MAke Se… Update VMWareSVGAII.cs and 11 more (compare)

  • Apr 15 03:35
    elkaamee326 commented #1494
  • Apr 14 20:37
    Build #3272 passed
  • Apr 14 20:37
    Build #3272 passed
  • Apr 14 20:22

    quajak on master

    Improved message clarity Merge branch 'master' into quaj… Merge pull request #1719 from C… (compare)

  • Apr 14 20:22
    quajak closed #1719
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
Quajak
@quajak
@napalmtorch Cool. Thank you! So it seems like its working as expeccted
Oliver Zhang
@Zhang-Dev-byte
Does Cosmos support multitasking, and if so, how do I use it?
Quajak
@quajak
currently not, but there is an open pr to add it
nifanfa
@nifanfa
i don't think cosmos needs multitasking