Newbie need help
-
- DCEmu Newbie
- Posts: 1
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed May 04, 2022 9:43 pm
- Has thanked: 0
- Been thanked: 0
Newbie need help
Hi, Does anyone here have a simple tutorial that shows Hello World in the center of the screen with X,Y coordinates? I did a bit of research and couldn't find the information I wanted. Thanks!
Last edited by danielkreger on Tue Oct 18, 2022 4:27 am, edited 1 time in total.
- ThePerfectK
- Insane DCEmu
- Posts: 147
- Joined: Thu Apr 27, 2006 10:15 am
- Has thanked: 27 times
- Been thanked: 35 times
Re: Newbie need help
There are multiple ways to accomplish what you are describing, and how you accomplish them will radically change the behavior and what is being demonstrated.
If all you want is some text on your screen, the easiest way to do this is to use the bios font. The example for this is is under kos/examples/dreamcast/video/bfont/
However, the bios font is basically useless for any real-time application and relies on pixel plotting directly onto the vram framebuffer for the dreamcast. Literally all it will do is force some pixels onto the memory representation of the screen in the shape of text glyphs, but not demonstrate anything really useful about Dreamcast programming. If you want to put some text on the screen in a more correct way, you'll need to use a texture for a font and manipulate the uv coordinates as you render some square polygons to represent the text.
There are a couple of tutorials that show how to do this, the first is 2nd mix, which shows quite a bit more stuff than just font rendering, it's in: /kos/examples/dreamcast/2ndmix/
A better example would be the pvr demo, which renders some text scrolling across the screen with a background image. It's at kos/examples/dreamcast/png/
If all you want is some text on your screen, the easiest way to do this is to use the bios font. The example for this is is under kos/examples/dreamcast/video/bfont/
However, the bios font is basically useless for any real-time application and relies on pixel plotting directly onto the vram framebuffer for the dreamcast. Literally all it will do is force some pixels onto the memory representation of the screen in the shape of text glyphs, but not demonstrate anything really useful about Dreamcast programming. If you want to put some text on the screen in a more correct way, you'll need to use a texture for a font and manipulate the uv coordinates as you render some square polygons to represent the text.
There are a couple of tutorials that show how to do this, the first is 2nd mix, which shows quite a bit more stuff than just font rendering, it's in: /kos/examples/dreamcast/2ndmix/
A better example would be the pvr demo, which renders some text scrolling across the screen with a background image. It's at kos/examples/dreamcast/png/
Still Thinking!~~