Search found 43 matches

by dcTom
Sat Jun 03, 2023 7:02 pm
Forum: Programming Discussion
Topic: question about the spritesheet demo code
Replies: 3
Views: 305

question about the spritesheet demo code

Code: Select all

/* Load spritesheets */
	memset(&stage1_actors_sheet, 0, sizeof(stage1_actors_sheet));
	memset(&ui_sheet,            0, sizeof(stage1_actors_sheet));
why does the second memset funktion uses as third argument sizeof(stage1_actors_sheet)
and not sizeof(ui_sheet) ?
by dcTom
Wed Oct 26, 2022 6:38 am
Forum: Programming Discussion
Topic: compiling without changing main.c
Replies: 2
Views: 234

compiling without changing main.c

if the main.c is not changed but the file controller.c has some changing, the makefile is doing nothing,
i always have to change the main.c and save it.
is there a way that the makefile is compiling everything again, although nothing has been changed at main.c?
by dcTom
Mon Oct 24, 2022 12:41 pm
Forum: Programming Discussion
Topic: Introducing mkdcdisc - an easy way to make .cdi images
Replies: 6
Views: 963

Re: Introducing mkdcdisc - an easy way to make .cdi images

fixed

forgot to set the environ.sh
by dcTom
Thu Oct 13, 2022 3:44 pm
Forum: Programming Discussion
Topic: Introducing mkdcdisc - an easy way to make .cdi images
Replies: 6
Views: 963

Re: Introducing mkdcdisc - an easy way to make .cdi images

do i understand it correct that it generates an CDI file from an .elf file?
by dcTom
Mon Jun 06, 2022 11:08 am
Forum: Programming Discussion
Topic: PVR Spritesheets Turorial
Replies: 6
Views: 881

Re: PVR Spritesheets Turorial

i was trying to use sound (Wav + OGG) files inside the spritesheet tutorial, but got an runtime error sndoggvorbis: couldn't open source file the file is inside the romdisk folder and i think perhaps this is the problem. because i think the romdisk.img is not created from the romdisk folder the sour...
by dcTom
Mon May 30, 2022 12:53 pm
Forum: Programming Discussion
Topic: PVR Spritesheets Turorial
Replies: 6
Views: 881

Re: PVR Spritesheets Turorial

the stuff is running now in dma, polygon and sprite mode.

i found out that the performance depends on the size of the objects and not the amount of objects
by dcTom
Sat May 14, 2022 12:20 pm
Forum: Programming Discussion
Topic: PVR Spritesheets Turorial
Replies: 6
Views: 881

Re: PVR Spritesheets Turorial

are the sh4 math calls somthin different than the math library from #include<math.h> i saw that there is also a #include <dc/fmath_base.h> in the coments of the Spritsheet code is written for large batch of sprites its better to use the SH4's "store queues" insted of pvr_prim. is ther any ...
by dcTom
Wed May 11, 2022 3:38 pm
Forum: Programming Discussion
Topic: PVR Spritesheets Turorial
Replies: 6
Views: 881

Re: PVR Spritesheets Turorial

thanks for the help. i was looking for somthing like glrotate() and was hoping that there is somthing simular. rotating is now working fine, i made the sin and cos calculation not for x0,x1,y0 and y1 insted i made it for all 4 vertexpoints of the poligon. is there a possibility to rotate or scale th...
by dcTom
Wed May 04, 2022 3:28 am
Forum: Programming Discussion
Topic: PVR Spritesheets Turorial
Replies: 6
Views: 881

PVR Spritesheets Turorial

First of all thanx for this great turorial, it works fine. on Debian 11 qt5-default doesnt exist any more, i dont know i there is any better solution, but to fix it i did the following steps 1. sudo apt-get install equivs 2. cat <<EOF > qt5-default-control Package: qt5-default Source: qtbase-opensou...
by dcTom
Wed May 04, 2022 2:18 am
Forum: Programming Discussion
Topic: KOS installation fails
Replies: 6
Views: 522

Re: KOS installation fails

thanx,

Problem is solved, 32-Bit binary version of DC-Tool was the problem, with the 64-Bit Version it works fine
by dcTom
Sun May 01, 2022 2:42 pm
Forum: Programming Discussion
Topic: KOS installation fails
Replies: 6
Views: 522

Re: KOS installation fails

even with the full path, still file or directory not found andy@debian:~$ /opt/toolchains/dc/stgframework/dc-tool bash: /opt/toolchains/dc/stgframework/dc-tool: Datei oder Verzeichnis nicht gefunden but dc-tool is in this folder (see attached pic) PS: Someone told my the problem could be that my deb...
by dcTom
Sat Apr 30, 2022 9:01 pm
Forum: Programming Discussion
Topic: KOS installation fails
Replies: 6
Views: 522

Re: KOS installation fails

the system is telling me that im using the bash grep "andy" / etc / passwd andy:x:1000:1000:andy,,,: / home / andy: / bin / bash i tried it with bash download.sh and it works, but now i have an other problem the dc-tool doesnt work any more ./dc-tool -x game.elf -t 192.168.0.4 bash: ./dc-t...
by dcTom
Thu Apr 28, 2022 4:05 pm
Forum: Programming Discussion
Topic: KOS installation fails
Replies: 6
Views: 522

KOS installation fails

Hi i was trying to install a fresh Kos on a debian system it doesnt matter if i do it with the script or manually it always break up at the same position $ cd /opt/toolchains/dc/kos/utils/dc-chain $ sh download.sh $ sh unpack.sh after sh download.sh i get this error massage download.sh: 4: source: n...
by dcTom
Mon Apr 25, 2022 9:25 am
Forum: Programming Discussion
Topic: glortho problems
Replies: 1
Views: 362

glortho problems

Hello, i had this Problem already a view years ago, but coult not fix it until now.. when im using glortho, the depth check doesnt work. glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, 640, 0, 480, -10, 10); glMatrixMode(GL_MODELVIEW); glEnable(GL_DEPTH_TEST); glDepthFunk(GL_LESS); glLoadI...
by dcTom
Thu May 04, 2017 7:49 pm
Forum: Programming Discussion
Topic: Depth Test is not Working
Replies: 20
Views: 2254

Re: Depth Test is not Working

just a update, its 99,9 a bug of my code, on the pc its working, for the dc i organized the code new. i dont know exactly what the problem was, but looks like the pc was little bit more tolerant with the bug. also one of my kos systems dont work 100% so i have to reinstall it. but on my Laptop with ...
by dcTom
Mon May 01, 2017 10:15 am
Forum: Programming Discussion
Topic: openGL alpha problem
Replies: 7
Views: 1353

Re: openGL alpha problem

so i checked the code just to make sure we talk about the same thing the background ist this "blue" grid. and there is a pink "head" object and there is a courser (glass with no alpha) that i can move with the D-Pad int ret = png_to_gl_texture(&t, "/rd/face_2.png");...
by dcTom
Sun Apr 30, 2017 11:42 am
Forum: Programming Discussion
Topic: openGL alpha problem
Replies: 7
Views: 1353

Re: openGL alpha problem

100 % sure the gfx files are ok? especially the one with the alpha. if you want you can sent me the 2 files an i test them with my engine. also if you want you can sent me the complete code in a zip file and i can make some test. for the first view the code looks ok. but im not so good in theoretic ...
by dcTom
Sat Apr 29, 2017 5:02 pm
Forum: Programming Discussion
Topic: Depth Test is not Working
Replies: 20
Views: 2254

Re: Depth Test is not Working

so i was a view days off, i couldnt replicate the the problems with the fresh install, so i hope that just the night was too long. but i have still the problem that the depth test is not working if i use gl ortho I'm also using lGl lately. would be nice if you also can make the test with gl_ortho to...
by dcTom
Sat Apr 22, 2017 10:12 pm
Forum: Programming Discussion
Topic: Depth Test is not Working
Replies: 20
Views: 2254

Re: Depth Test is not Working

so now its getting strange, i was going on with some testing i have on my laptop a fresh setup of kos i made the test with the nehe06 demo the depth test is working i changed to ortho //gluPerspective(45.0f, 640.0f / 480.0f, 0.1f, 100.0f); glOrtho(-5,5,-5,5,10,-10); depth test is working i add glDis...
by dcTom
Sat Apr 22, 2017 8:50 am
Forum: Programming Discussion
Topic: Depth Test is not Working
Replies: 20
Views: 2254

Re: Depth Test is not Working

any hint in what file or folder i find this header?