Search found 40 matches

by MrQuetch
February 23rd, 2020, 1:31 pm
Forum: Programming/CPU
Topic: RAND and SRAND?
Replies: 6
Views: 8292

Re: RAND and SRAND?

This is really late. But, I just recently found the 'GsGetVcount' function. That may be helpful in getting a completely random number - besides the other methods already mentioned here. The vertical retraces happen really fast, so it seems reasonable.
by MrQuetch
February 23rd, 2020, 1:21 pm
Forum: Programming/CPU
Topic: How do I get framerate/timing without LibGS?
Replies: 1
Views: 3507

Re: How do I get framerate/timing without LibGS?

I want to check how my code is performing on the real hardware, but I have no idea how to get the current framerate, or anything else that I could use to profile my code. LibGS had GsGetVcount() but I have no idea how to implement this by myself. I was wondering how one could get a 'time' from when...
by MrQuetch
February 21st, 2020, 9:49 am
Forum: Graphics/GPU
Topic: [Question] Screen scale?
Replies: 13
Views: 7402

Re: [Question] Screen scale?

LoadImage/StoreImage always retains and overwrites the STP bits of pixels being read or written. 16-bit TIMs have STP bits in all pixels while 8-bit and 4-bit TIMs have the STP bits in the CLUT pixels instead. True black (0, 0, 0) is normally treated as the transparent color when drawn using textur...
by MrQuetch
February 19th, 2020, 8:34 am
Forum: CD-ROM
Topic: Best practice - Putting data on a CD-ROM
Replies: 6
Views: 3287

Re: Best practice - Putting data on a CD-ROM

I'm enjoying this read - it's very educational. Since I'm learning how the CD works too, what would be the best function to at least put binary data onto the 'disc'?
by MrQuetch
February 19th, 2020, 8:28 am
Forum: Graphics/GPU
Topic: What format should I use for animated models?
Replies: 12
Views: 4016

Re: What format should I use for animated models?

I saw one of your videos earlier. I really love what you're doing with the PS1. I hope to get animated models at some point, too. This already gives a very firm foundation to getting animated models working.
by MrQuetch
February 18th, 2020, 6:43 am
Forum: Programming/CPU
Topic: Programming a Loading Screen? (Not a Background)
Replies: 8
Views: 2897

Re: Programming a Loading Screen? (Not a Background)

Shadow wrote:
February 18th, 2020, 1:15 am
LIBOVER47.PDF
Thank you for pointing this out. I have only been reading the LIBREF46.PDF file. Hopefully things start making more sense.
by MrQuetch
February 16th, 2020, 4:06 pm
Forum: Programming/CPU
Topic: Programming a Loading Screen? (Not a Background)
Replies: 8
Views: 2897

Re: Programming a Loading Screen? (Not a Background)

You got a lot of learning and looking at example codes ahead of you. Use the forums to search and find programs already written or look at the examples in the 'Homebrew' section on the website. Use a VSync callback to display what is being loaded or to show a loading bar. LibDS is quicker then LibC...
by MrQuetch
February 16th, 2020, 4:01 pm
Forum: Documentation
Topic: MIPS R3000 Instruction Set and Advanced Machine Documents
Replies: 8
Views: 22509

Re: MIPS R3000 Instruction Set and Advanced Machine Documents

Just run "ASMPSX.EXE" and it will list the switches. m+/- enable/disable macro instructions l<char> make <char> the local label character (not + or -) c-/+ case sensitivity Oh... I wasn't clear enough - I'm sorry. I meant other words like 'section', 'incbin', etc,. I just want to know what else I c...
by MrQuetch
February 16th, 2020, 12:12 pm
Forum: Psy-Q SDK
Topic: cc1psx Error on real Windows XP Hardware
Replies: 9
Views: 5385

Re: cc1psx Error on real Windows XP Hardware

I just recently had this happen... That's weird that a 'Temp' folder needs to exist in the C drive. Why is this?
by MrQuetch
February 16th, 2020, 11:52 am
Forum: Documentation
Topic: MIPS R3000 Instruction Set and Advanced Machine Documents
Replies: 8
Views: 22509

Re: MIPS R3000 Instruction Set and Advanced Machine Documents

A bit different, and a bit late to the topic... But, in one of Lameguy64's ASM examples, he writes this: opt m+,l.,c+ section data ; Store the array in the data section global tim_my_image ; Define label as global tim_my_image: incbin 'my_image.tim' ; Include file data (your TIM) Where may I find th...
by MrQuetch
February 16th, 2020, 6:53 am
Forum: Programming/CPU
Topic: Programming a Loading Screen? (Not a Background)
Replies: 8
Views: 2897

Programming a Loading Screen? (Not a Background)

I've tried looking for other threads about this topic on this website. Perhaps I've been looking in the wrong places... If I have been, please let me know. Anyways, I've been reading the LIBREF46.PDF file lately. I've noticed there are functions for initializing different libraries, and I'm not exac...
by MrQuetch
February 16th, 2020, 6:33 am
Forum: Programming/CPU
Topic: Lameguy's PlayStation Programming Tutorial Series
Replies: 2
Views: 3389

Re: Lameguy's PlayStation Programming Tutorial Series

These tutorials are great. I especially love the third one on covering textures and asm files. I didn't know just how efficient it was until now to include binary files as externals instead of headers - compilation is much faster; even with Psy-Q. I'm ready for the other tutorials when the time allo...
by MrQuetch
February 14th, 2020, 11:03 am
Forum: Programming/CPU
Topic: Can't Read SN.INI or PSYQ.INI Files?
Replies: 5
Views: 2203

Re: Can't Read SN.INI or PSYQ.INI Files?

Shadow wrote:
February 12th, 2020, 5:16 pm
Pretty sure that CCPSX looks for
  • PATH
  • PSX_PATH
  • LIBRARY_PATH
  • C_PLUS_INCLUDE_PATH
  • C_INCLUDE_PATH
  • PSYQ_PATH
Yup... Those were the environment variables that I needed to set. Thanks.
by MrQuetch
February 11th, 2020, 4:38 pm
Forum: Programming/CPU
Topic: Can't Read SN.INI or PSYQ.INI Files?
Replies: 5
Views: 2203

Re: Can't Read SN.INI or PSYQ.INI Files?

CCPSX will look for them in the path directories specified. Usually they should point to C:\PSYQ\BIN where those two files would be located. Thank you, Shadow. You wouldn't happen to know where I can find the paths specified by the CCPSX program so I can change them - would you? Also, have you trie...
by MrQuetch
February 11th, 2020, 9:18 am
Forum: Examples (Psy-Q)
Topic: Psy-Q TIM EXAMPLE
Replies: 14
Views: 18603

Re: Psy-Q TIM EXAMPLE

Not sure what you mean by 'TIM editor'. If you want to create TIM's in PS1 RAM dynamically, you can, the 16bit format was the easiest for me anyway :roll: I was thinking I could just have an array of colors in my project, and somehow tell a textured primitive to take that data and use it. Is this p...
by MrQuetch
February 11th, 2020, 9:09 am
Forum: Programming/CPU
Topic: Can't Read SN.INI or PSYQ.INI Files?
Replies: 5
Views: 2203

Can't Read SN.INI or PSYQ.INI Files?

I'm setting up my development environment on another computer, hence this post. I've been working on this problem for several hours and still cannot find the the solution for it. For those curious, I am using Windows XP in a VM. I'm aware this problem has already been posted before - but the post I ...
by MrQuetch
October 5th, 2019, 3:25 pm
Forum: Examples (Psy-Q)
Topic: Basic Memory Card Example
Replies: 3
Views: 5633

Re: Basic Memory Card Example

Sorry for the old bump (AFAIK there's no rule against it). In case anyone needs a psymake-compatible "makefile.mak", here's what worked for me: # ----------------------------------------- # PlayStation 1 Psy-Q Makefile # ----------------------------------------- all: del memcard.exe del memcard.cpe...
by MrQuetch
December 20th, 2018, 4:51 pm
Forum: Examples (Psy-Q)
Topic: Psy-Q TIM EXAMPLE
Replies: 14
Views: 18603

Re: Psy-Q TIM EXAMPLE

Forgive me if this question is absurd... I'm sure I've asked this somewhere before... But, it's been awhile... Is it possible to manually manipulate the pixels in those texture sheets? I'm not referring to the actual texture sheets themselves, but rather the program that edits them. Is there another...
by MrQuetch
September 30th, 2018, 2:41 pm
Forum: Graphics/GPU
Topic: Custom Image/Texture Format?
Replies: 1
Views: 3021

Custom Image/Texture Format?

Hello, everyone. Forgive me if this has already been asked and/or answered before, but is it possible to create an image/texture in the form of an array? In other words, is it possible to set the colors of pixels directly to the texture sheet in just plain C code? To be honest, I would much rather p...
by MrQuetch
May 1st, 2018, 10:24 am
Forum: Programming/CPU
Topic: "LookAt" Function?
Replies: 2
Views: 3493

Re: "LookAt" Function?

I have this lookat routine which may do just the trick: void crossProduct(SVECTOR *v0, SVECTOR *v1, VECTOR *out) { out->vx = ((v0->vy*v1->vz)-(v0->vz*v1->vy))>>12; out->vy = ((v0->vz*v1->vx)-(v0->vx*v1->vz))>>12; out->vz = ((v0->vx*v1->vy)-(v0->vy*v1->vx))>>12; } void LookAt(VECTOR *eye, VECTOR *at...