Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,078 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PROC_LATE funktioniert nicht! #176659
01/05/08 22:55
01/05/08 22:55
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
proc_mode = PROC_LATE; funktioniert nicht. proc_mode = PROC_EARLY; funktioniert aber ohne Probleme.

Für mein Shadow Mapping platziere ich ein View immer an die Position von camera. Wenn ich die funktion für das Shadow Mapping nach der für die Kamera aufrufe ist die Position immer richtig, wenn ich PROC_EARLY setze, so wie es sein soll nicht mehr. Wenn ich allerdings die reihenfolge ändere, hängt die Position des Views auch wenn PROC_LATE gesetzt ist einen Frame hinterher.

Re: PROC_LATE funktioniert nicht! [Re: Slin] #176660
01/05/08 22:59
01/05/08 22:59
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
I've had problems with proc_late as well. Though I was unaware of it until now, I was already wondering why I needed both proc_late and proc_early to see results.


Click and join the 3dgs irc community!
Room: #3dgs
Re: PROC_LATE funktioniert nicht! [Re: Joozey] #176661
01/07/08 10:11
01/07/08 10:11
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I can not confirm a problem with PROC_LATE.

Try the following: use a global variable and assign it different values in early, normal, and late functions. Then display the variable in a panel. It should always display the value assigned in the late function.

Otherwise please send me the project and I'll look into it.

Re: PROC_LATE funktioniert nicht! [Re: jcl] #176662
01/07/08 13:53
01/07/08 13:53
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Diese paar Zeilen geben bei mir 2 aus (es sollte 3 sein, wenn PROC_LATE funktioniert)!

Code:

var test_var;

PANEL* test_pan =
{
red = 0;
green = 0;
blue = 0;
digits(0,0,1.0,"Arial#500",1,test_var);

flags = VISIBLE,LIGHT;
}

void test_late()
{
proc_mode = PROC_LATE;
wait(1);
test_var = 3;
}

void test_early()
{
proc_mode = PROC_EARLY;
wait(1);
test_var = 1;
}

void test_normal()
{
wait(1);
test_var = 2;
}

void main()
{
test_late();
test_normal();
test_early();

vec_set(screen_color,vector(0,0,255));
}



Re: PROC_LATE funktioniert nicht! [Re: Slin] #176663
01/08/08 15:06
01/08/08 15:06
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Your test_normal function is missing

proc_mode = 0;

when you want to run it in the normal cycle.

Variables don't reset themselves, although this could be desired here. I'll probably implement autoresetting for proc_mode to prevent that other people make the same mistake.

Re: PROC_LATE funktioniert nicht! [Re: jcl] #176664
01/08/08 15:13
01/08/08 15:13
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Okay dann funktioniert alles richtig, das sollte aber unbedingt im manual erwähnt werden.

Danke

Re: PROC_LATE funktioniert nicht! [Re: Slin] #176665
01/08/08 16:33
01/08/08 16:33
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
An Autoresettings for proc_mode would be very very good. If not implemented EVERY function would need to have an proc_mode = 0; at the start to guarantee that proc_mode is working..

No nice style

Re: PROC_LATE funktioniert nicht! [Re: TripleX] #176666
01/11/08 18:05
01/11/08 18:05
Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
C
Christian__A Offline
User
Christian__A  Offline
User
C

Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
Wie wäre es, anstelle von proc_mode die wait-Funktion zu erweitern: z.B.
wait(1,PROC_LATE) ?


MfG, Christian__A. Visit my Site: www.chris-a.de



Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1