Search found 20 matches

by KoalaDB
Wed Aug 08, 2007 6:14 pm
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

Ghoti wrote:yes i know (ashamed)
but thank you also for sticking to the thread and helping me!! I really am glad that this strange bug is over :)))

thanks again
Yes .. not so strange after Tyranid's explanations :)

++
by KoalaDB
Wed Aug 08, 2007 6:00 pm
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

Ghoti wrote:one of my classes opened a file but did not close it. Now it is closed and it does not crash anymore !!! :D

... The next time when it is asked to check ... please check :p
by KoalaDB
Tue Aug 07, 2007 11:24 pm
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

Ghoti wrote:that also does not work :(

I will check the paths and stuff again :s

Yes check check check ... i don't see any other solution ... :(
by KoalaDB
Tue Aug 07, 2007 8:51 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

ok ! great ! :)

Thanks for your patience and explanations :)

i can't wait for your releases ! ;) soon ? :)
by KoalaDB
Tue Aug 07, 2007 8:45 pm
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

instead of :

Code: Select all

FILE *f; 
try

Code: Select all

auto FILE *f;

declare your FILE ressource like this everywhere :)
by KoalaDB
Tue Aug 07, 2007 8:12 pm
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

the only way of keep THIS file opened is to forget to close it ... is this file is opened before in your code ?

The psp doesn't open files itself "for fun" :Ptry maybe to recreate your race file .... copy/paste his content to a new file.
by KoalaDB
Tue Aug 07, 2007 6:05 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

charnold wrote:I havn't used external tools for this (I'm generating the lightmaps in my prog.). Don't some editors have integrated lightmap creation?
ho ok ... i thought that the "LMP" file was generated by a third party software :)

You have a good link for a lightmap calculation tutorial ? :)
by KoalaDB
Tue Aug 07, 2007 9:48 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

does the same with a file at the root of the MS ? ...

seems very very strange ... hard reset your psp :D
by KoalaDB
Tue Aug 07, 2007 8:04 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

very strange ... can you get the strlen of sBuffer and be sure that there is no '\n' or something else ? maybe there is a blank space before or after you "real" sBuffer ... the fopen method seems to be called perfectly ... so if you're sure that the file is at the correct place and sBuffer...
by KoalaDB
Tue Aug 07, 2007 7:49 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

try to break your code into small parts and checks each part l.. part by part.. displaying some variable status etc... ... and put some pspdebugprintf to display the debug on the PSP and for reading files ... sscanf(ReadBuffer,"y=%d",&y); should be better (for example)....
by KoalaDB
Tue Aug 07, 2007 7:34 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

Why do you add "2" on the readbuffer ? ...

Code: Select all

sscanf((ReadBuffer+2),"%d",&x ); 

Your code looks strange for me :P
by KoalaDB
Tue Aug 07, 2007 7:18 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

hummm can we have an example of your race file ?...

it seems that your format version take 7 lines !!??!! (fgets stops when a '\n' is found)

... why don't you do a

while(fgets(....))
{
//parsing with sscanf ...
...
}

?
by KoalaDB
Tue Aug 07, 2007 6:37 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

have you tried to remove the blank space in the race name .... (and change it everywhere according to it) ?
...
by KoalaDB
Tue Aug 07, 2007 6:15 am
Forum: PSP Development
Topic: fopen problem (works in psplink)
Replies: 33
Views: 7912

Without psplink .. you're putting your file where is the eboot ?

maybe a silly question .. but psplink read from your computer directory ... and the standalone EBOOT from your MS ... :) (if you work with a relative path)
by KoalaDB
Tue Aug 07, 2007 5:34 am
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

you can render lightmaps like this: 1. pass (normal texture) with sceGuDepthFunc(GU_GEQUAL); sceGuDepthMask(GU_FALSE); sceGuDisable(GU_BLEND); 2. pass (same poly, lightmap texture) sceGuDepthFunc(GU_EQUAL); // only pixels with same depth pass the test sceGuDepthMask(GU_TRUE); // no depth buffer wri...
by KoalaDB
Tue Aug 07, 2007 1:15 am
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

yes i will post a screenshot as soon as i get back to home :)

thanks !
by KoalaDB
Mon Aug 06, 2007 11:41 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

the palette/texture format shouldn't have any influence on the depth. but the topology and position of your mesh does. btw. some games use just per-vertex colors instead of lightmaps, sometimes that's sufficient and you can render it in one pass. Humm what do you mean by "topology" ? i'm ...
by KoalaDB
Mon Aug 06, 2007 11:11 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

ufoz wrote:use sceGuDepthOffset to get rid of z-fighting maybe?
It may be a solution ... (thanks for all these hints ! :)

:)
by KoalaDB
Mon Aug 06, 2007 10:47 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

rapso wrote:you need to use exactly the same positions and topology in both passes to get it working. otherwise there will be allways z-fighting.
same geometry positions ? and same palette/texture format ? and it must work ?

ok i will try that :)

thanks :)
by KoalaDB
Mon Aug 06, 2007 8:46 pm
Forum: PSP Development
Topic: PSPGU Lightmapping ?
Replies: 21
Views: 6891

PSPGU Lightmapping ?

Hello ! :) It seems that that the only way to manage lightmaps is to use multiple passes. So .. when i render (for example) a wall with the wall texture and the second time with the lightmap texture (+alpha blending) ... everything is blinking (i think coplanar triangles make the GPU to be confused ...