Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - WPShadow

#261
GLBasic - de / Begrenzung?
2006-Sep-26
Hi!

Das Problem habe ich bei der "Begrenzung" der Energieanzeige! Ich habe den Wert mit Absicht höher angesetzt, damit der "Energietimer" (im Programm im Eck unten Rechts in gelb) schneller hochlädt. Auf jeden Fall hält er bei 999 an (PRINT), obwohl sich der Balken weiter "auflädt". Muß ich da etwas verändern oder habe ich irgendwo einen Fehler eingebaut? =/

GLG

W.

Hier anbei der Code:

Code (glbasic) Select
// --------------------------------- //
// Project:
// Start: Tuesday, September 12, 2006
// IDE Version: 3.251

GLOBAL Space_Down
LOADFONT "font1.bmp", 1


Lebensenergie = 830
Schild = 250
Generator = 9729
Space_Down=FALSE

LIMITFPS -1      //Maximal
    Old_Timer=GETTIMERALL()
    Ship1_Speed_X = 100         // Schiffgeschwindigkeit1 = 100 Pixel PRO SEKUNDE
    Ship1_Color=RGB(255,0,0)    // Schiff1 = Rot
    Ship1_X=-30                 // StarPosition Schiff 1 genau am Rand
    Ship2_Speed_X = 100         // Schiffgeschwindigkeit2 = 100 Pixel PRO SEKUNDE
    Ship2_Color=RGB(0,0,255)    // Schiff2 = Blau
    Ship2_X=-30                 // StarPosition Schiff 2 ganau am Rand

    GETSCREENSIZE Width,Height  // Bildschirmgröße abfragen

                 //Spielschleife
WHILE TRUE
                  //GAMETIMER
   //+++++++++++++++++++++++++++++++++++
    GT=(GETTIMERALL()-Old_Timer)/1000
    Old_Timer=GETTIMERALL()
   //+++++++++++++++++++++++++++++++++++
            //Raumschiff  bewegen
    Ship1_X = Ship1_X + Ship1_Speed_X * GT
  //Nach der Bildschirmhälfte plötzlich langsamer
    IF Ship1_X > Width/2 THEN Ship1_Speed_X = 250
    FILLRECT Ship1_X,100,Ship1_X+30,130,Ship1_Color

           //Raumschiff  bewegen
    Ship2_X = Ship2_X + Ship2_Speed_X * GT
    FILLRECT Ship2_X,200,Ship2_X+30,230,Ship2_Color


     //Hier ist noch ein Timer der die Frames und die Sekunde mißt
//****************************************************
     Frames=Frames+1
     IF TimeStart + 1000        FPS=Frames
       Frames=0
   //Solange Blaues Schiff nicht Rechts angekommen ist Zeit messen
      IF Ship2_X < Width
       Time=Time+1
      ENDIF






       TimeStart=GETTIMERALL()
    ENDIF



Energietimer()

Menue_anzeige()

Menue_steuerung()

//****************************************************









//****************************************************


    PRINT "FPS " + FPS,20,20
    PRINT "Time " + Time,20,50

//****************************************************


  SHOWSCREEN
WEND



FUNCTION Energietimer:

                        //New Timer
       IF NewTimer+10          Time2=Time2+0.01
          Energie = Energie + ((Time2/Time2) * 5.5)
          IF Energie > Generator THEN Energie = Generator
          NewTimer=GETTIMERALL()
      ENDIF

ENDFUNCTION


FUNCTION Menue_anzeige:

X_MAKE2D


//--
FILLRECT 823, 668, 1021, 766, RGB(255, 255, 255)
FILLRECT 824, 669, 1020, 765, RGB(  0,   0, 255)
FILLRECT 825, 670, 1019, 764, RGB(128, 128, 255)

//--
FILLRECT 835, 670 + 10, 835 + 174, 670 + 20, RGB(128,   0,   0)
FILLRECT 835, 670 + 43, 835 + 174, 670 + 53,  RGB(  0,   0, 128)
FILLRECT 835, 766 - 10, 835 + 174, 766 - 20,  RGB(128, 128,   0)

// Lebensenergie
FILLRECT 835, 670 + 10, 835 + 150, 670 + 20, RGB(255,   0,   0)

// Schilde
FILLRECT 835, 670 + 43, 835 + 87, 670 + 53,  RGB(  0,   0, 255)

// Balkenberechnung
Energiestand = (Energie * 174) / Generator

// Energie - Anzeige
FILLRECT 835, 766 - 10, 835 + Energiestand, 766 - 20,  RGB(255, 255,   0)





PRINT Lebensenergie, 840, 680

PRINT Schild, 840, 713

IF Energie < 10   THEN Energie_X = MID$(Energie, 0, 1)
IF Energie < 100  THEN Energie_X = MID$(Energie, 0, 2)
IF Energie < 1000 THEN Energie_X = MID$(Energie, 0, 3)

PRINT Energie_X + "/" + Generator, 840, 746


//Angriffsmenü

FILLRECT 1, 668, 200, 766, RGB(255, 255, 255)
FILLRECT 2, 669, 199, 765, RGB(  0,   0, 255)
FILLRECT 3, 670, 198, 764, RGB(128, 128, 255)

PRINT "Angriff", 20, 680
PRINT "Angriff", 20, 700
PRINT "Angriff", 20, 720



ENDFUNCTION


FUNCTION Menue_steuerung:


IF KEY(28) THEN END
//--


   IF KEY(208)=TRUE AND Space_Down_208=FALSE
x = x + 10
     Space_Down_208=TRUE
   ENDIF

   IF KEY(208)=FALSE THEN Space_Down_208=FALSE

   IF KEY(200)=TRUE AND Space_Down_200=FALSE
x = x - 10
     Space_Down_200=TRUE
   ENDIF

   IF KEY(200)=FALSE THEN Space_Down_200=FALSE

PRINT x, 100, 100


FILLRECT 100 + x, 100, 200 + x, 200, RGB (255, 255, 255)




ENDFUNCTION
#262
Hi!

Äh, Gernot? Könntest du mir vielleicht einen Gefallen tun?

Wie ging nochmal das Beispiel, das du mir einmal gezeigt hast, in dem sich ein "X" mit gleicher Geschwindigkeit trotz verschiedener FPS bewegt?

Könntest du mir vielleicht sagen, wo das schnell war?

Danke...

W.
#263
Ich bitte dringend um Verbesserungsvorschläge:


Code (glbasic) Select
GLOBAL Kraft, Beschleunigung, Masse, Gravitation, Reibung


Gravitation = 9.81
Reibung = 7
Beschleunigung = 0
Masse = 70

put = 0

Seitengeschw = 50

Zeitschritt = 0.1

WHILE TRUE

X_MAKE2D

Kraft = Masse * Gravitation - Reibung * (Geschwindigkeit * Geschwindigkeit)

a = Kraft / Masse

deltaV = a * Zeitschritt

Geschwindigkeit = Geschwindigkeit + deltaV

S = S + Geschwindigkeit * Zeitschritt



Seitengeschw = (Seitengeschw + Seitengeschwold) * Zeitschritt

Seitengeschwold = Seitengeschw


//Viereck zeigen

FILLRECT 310 + Seitengeschw, 0 + S, 330 + Seitengeschw, 20 + S, RGB(0xff, 0xff, 0xff)


PRINT "Hoehe: ", 0, 0
PRINT 480 - S, 50, 0
PRINT Seitengeschw, 0, 10

hoch = 480 - S

IF put > 23 THEN GOTO a1

PUTFILE "high.txt", 0 + put * 3, "-------Loop-------- " + put
PUTFILE "high.txt", 1 + put * 3, "Kraft " + Kraft
PUTFILE "high.txt", 2 + put * 3, "Höhe " + hoch

a1:

put = put + 1

SHOWSCREEN

//MOUSEWAIT


WEND
#264
Hi!

Ich habe mir eine andere Lösung überlegt!

Was haltet ihr davon, wenn wir uns alle bei Skype anmelden und eine "Gruppenkonferenz" veranstalten.

Zum ersten ist das eine ziemlich sichere Geschichte und außerdem kann ja einer alle m?glichen Leute einladen und alle können sich untereinander ausreden, wer den "Chat" eröffnet.

Gute Idee? Schlechte Idee?

GLG

W.
#265
Hi!

Wie verwende ich eigentlich eine 360° Textur?

Ich meine damit, daß ich eine Textur habe, die ich sozusagen kugelförmig außen um meine 3D - Landschaft lege und je nachdem, wohin ich mich drehe, sehe ich genau den von der Kamera eingefaßten Teil der Textur...

GLG

W.
#266
GLBasic - de / Mausrad
2006-Jul-20
Hi!

Bekomme es irgendwie nicht hin, daß das Mausrad auch nur eine Reaktion erzeugt! Wie bzw. was mache ich da am Besten???

GLG

W.
#267
GLBasic - de / Ode
2006-Jul-04
Hi!

Hier ist der Code:

Code (glbasic) Select
INLINE

#include

ENDINLINE


SHOWSCREEN

KEYWAIT
Und das war die Antwort von GLBasic:

Code (glbasic) Select
_______________________________________
*** Configuration: WIN32 ***
precompiling...

GPC - GLBasic Precompiler V.2006.137 - 3D, NET
compiling...
ode2.gbas (196 B )
Wordcount:2 commands

compiling:
C:\Programme\GLBasic\Compiler\platform\gpc_temp0.cpp:12:28: ode\collision.h: No such file or directory

linking:
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1e): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x67): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb6): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xdc): undefined reference to `__GLBASIC__::k'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xf5): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x114): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x132): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x16b): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b7): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1f0): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x241): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x27d): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x2d0): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x310): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x366): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x38c): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x3b0): more undefined references to `__GLBASIC__::feind' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x424): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x44a): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x46e): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x47b): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x488): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x495): more undefined references to `__GLBASIC__::shots' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x862): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x86e): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8a3): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x8d9): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x90b): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x91a): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x92c): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x96f): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x986): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x9b0): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x9d7): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x9f6): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa1c): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa47): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa54): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa61): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa6e): more undefined references to `__GLBASIC__::feind' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0xa99): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xaa9): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb04): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb3d): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xb85): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xbcc): undefined reference to `__GLBASIC__::lv1_sk1'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xbf7): undefined reference to `__GLBASIC__::lv1_sk2'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc12): undefined reference to `__GLBASIC__::s'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc26): undefined reference to `__GLBASIC__::s'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc37): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xc79): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xcb0): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xcef): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd0c): undefined reference to `__GLBASIC__::s'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd1a): undefined reference to `__GLBASIC__::s'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd31): undefined reference to `__GLBASIC__::lv1_sk2'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd37): undefined reference to `__GLBASIC__::lv1_sk2'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd4c): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd52): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd63): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xd7e): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xdbf): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xdd6): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xe00): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xe27): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xe46): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xe6c): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xe97): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xea4): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xeb1): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xebe): more undefined references to `__GLBASIC__::feind' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0xee9): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xef5): undefined reference to `__GLBASIC__::l'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xf16): undefined reference to `__GLBASIC__::lv1_sk3'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xf73): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xfac): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0xff4): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x102e): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x106d): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x10a4): more undefined references to `__GLBASIC__::feind' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x11e4): undefined reference to `__GLBASIC__::lv1_sk3'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x11ea): undefined reference to `__GLBASIC__::lv1_sk3'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1202): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1241): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1278): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x12bc): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x12dc): undefined reference to `__GLBASIC__::feind'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x131b): more undefined references to `__GLBASIC__::feind' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1488): undefined reference to `__GLBASIC__::lv1_sk1'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x148e): undefined reference to `__GLBASIC__::lv1_sk1'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x14aa): undefined reference to `__GLBASIC__::GT'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x14b0): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x14c6): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x14d1): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15c1): undefined reference to `__GLBASIC__::Hintergrund'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15ce): undefined reference to `__GLBASIC__::Hintergrund'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x15e7): undefined reference to `__GLBASIC__::Hintergrund'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1600): undefined reference to `__GLBASIC__::Hintergrund'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1619): undefined reference to `__GLBASIC__::Hintergrund'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1791): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x179e): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17a4): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17aa): undefined reference to `__GLBASIC__::GT'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17b0): undefined reference to `__GLBASIC__::y'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17ca): undefined reference to `__GLBASIC__::y'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17d7): undefined reference to `__GLBASIC__::y'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17dd): undefined reference to `__GLBASIC__::y'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17f1): undefined reference to `__GLBASIC__::b'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x17f7): undefined reference to `__GLBASIC__::b'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1815): undefined reference to `__GLBASIC__::a'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1827): undefined reference to `__GLBASIC__::b'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1839): undefined reference to `__GLBASIC__::y'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x184b): undefined reference to `__GLBASIC__::a'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x185d): undefined reference to `__GLBASIC__::a'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1875): undefined reference to `__GLBASIC__::a'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x187e): undefined reference to `__GLBASIC__::b'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1890): undefined reference to `__GLBASIC__::b'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x189d): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x18d7): undefined reference to `__GLBASIC__::GT'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x18dd): undefined reference to `__GLBASIC__::scht'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x18ee): undefined reference to `__GLBASIC__::scht'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1906): undefined reference to `__GLBASIC__::scht'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1948): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1954): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1983): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x198f): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1995): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x19aa): more undefined references to `__GLBASIC__::posx' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x19f9): undefined reference to `__GLBASIC__::GT'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x19ff): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a08): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a13): undefined reference to `__GLBASIC__::lvl'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1a69): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1aa7): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b00): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b54): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1b7e): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1bad): more undefined references to `__GLBASIC__::shots' follow
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ef9): undefined reference to `__GLBASIC__::posx'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1f00): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1f5b): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1f95): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1fdd): undefined reference to `__GLBASIC__::shots'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ff5): undefined reference to `__GLBASIC__::scht'
gpc_temp0.o:gpc_temp0.cpp:(.text+0x1ffb): undefined reference to `__GLBASIC__::scht'
*** FATAL ERROR - Bitte die Compiler-Ausgabe ins Forum kopieren
_______________________________________
*** Fertig ***
Zeit: 1.5 sek
Erstellen: 0 erfolgreich, 1 fehlgeschlagen
Ich verstehe nicht ganz was das soll! Die ganzen Sachen stammen eigentlich von LOST REVENANT MINI aber das hatte ich weder geladen, noch sonst irgendwas gemacht. Was genau habe ich da falsch gemacht?

Anbei weiß ich nicht genau, wie ich ODE einbinden soll. Deshalb frage ich lieber, bevor ich den Rechner zum abschmieren bringe!!!

GLG

W.
#268
GLBasic - de / Physik
2006-Jul-04
Hi!

Ich weiß, daß dieses Thema wirklich lang und breit diskutiert wurde bzw. wird und wahrscheinlich noch lange werden wird, aber ich habe etwas gefunden, das interessant sein könnte.

http://www.chip.de/news/c1_news_20422188.html?tid1=9237&tid2=0

In dem Bericht geht es darum, daß Microsoft in der nächsten Generation von Direct X (10 nur für Vista) noch Mitarbeiter sucht, um ein eigenständiges Physik Team zu bilden, die eben diese Befehle in das System integrieren.

Deshalb habe ich mich gefragt, ob das nicht etwas wäre, das man vielleicht auch in GLBasic mit übernehmen bzw. von Direct X übernehmen könnte und ob es Sinn macht.

Und ich wollte auf der anderen Seite noch fragen, inwieweit es möglich ist DirectX in GLBasic einzubinden und fragen, ob es überhaupt notwendig ist!

GLG

W.
#269
GLBasic - de / Böser Timer
2006-Jul-01
Hi!

Am Anfang stand der Titelbildschirm:

Vorerst einfach nur
Code (glbasic) Select
LOADSPRITE "titel.bmp", 0

SPRITE 0, 0, 0


SHOWSCREEN

KEYWAIT
Danach kam das 1. Level:

Code (glbasic) Select
WHILE TRUE



y = y + 10
IF y > 255 THEN y = 0
// Hintergrund
FOR b = -1 TO 2
FOR a = 0 TO 2
SPRITE 0, 0 + (a * 256), y + (b * 256)
NEXT
NEXT

SPRITE 1, posx, 400

// Schusstimer

scht = scht + GT



IF KEY(57) = 1 AND scht > (0.25 / 1)
Shoot(posx, 400)

scht = 0
ENDIF



IF KEY(203) = 1 THEN posx = posx - 5
IF KEY(205) = 1 THEN posx = posx + 5

IF posx <= 0 THEN posx = 0
IF posx >= 600 THEN posx = 600



    //GAME_TIMER
    //GT=(GETTIMERALL()-Old_Timer)/1000  //Durch Tausend für die Sekunden
    //Old_Timer=GETTIMERALL()

GT = GETTIMER() / 1000

level()






MoveShots()

treffer()

showShots()


SHOWSCREEN

WEND
Problem ist noch immer, daß ich den Timer nicht so hinbekomme, daß er mir so läuft, daß er mir mit dem Leveltimer bei 0 beginnt, wenn er das Level aufruft. Ich bekomme es einfach nicht hin!!!

Bitte Hilfe!

GLG

W.
#270
Hi!

Ich bin nur mal neugierig:

Wie funktioniert eigentlich ein Pixel - Shader bzw. ein Vertex - Shader?

Man liest viel darüber, aber so wirklich bin ich mir nicht sicher...

GLG

W.

PS.: Was haltet ihr davon, wenn wir uns einmal die Woche zusammen setzen und über unsere Projekte diskutieren? Irgendwann in der Woche oder am Wochenende im Chat???
#271
GLBasic - de / Aussetzer
2006-Jun-29
Hi!

Mein Kopf ist im Augenblick nicht dort, wo er sein sollte.

Nehmen wir an mein Raumschiff ist auf der Position posx, 400 und ich möchte einen Schuss abgeben, der sich mit der fixen Richtung posx, 400 - y bewegt...

Wie übergebe ich am Besten an den Schuss, ohne daß er mir immer wieder posx mit übergibt???

War ein langer Tag und ich bin einfach nur mehr verzweifelt...

GLG

W.
#272
GLBasic - de / Updaten
2006-Jun-28
Hi!

Ich kann seit ca. 2 Tagen nicht updaten. Ist das normal?

Wenn ich auf Internet Update klicke, bekomme ich nur die Meldung:

Kann nicht ins Internet verbinden. [Ja] [Nein]

Das war's.

Was soll ich tun?

GLG

W.
#273
GLBasic - de / Dark Basic
2006-Jun-28
Hi!

Habe mir gerade die Trail - Version von Dark Basic angesehen. Von der haben ja schon soooo viele Leute geschwärmt.

Also ich finde es ehrlich gesagt total unübersichtlich. Der Code erinnert stellenweise an eine Mischung aus C und Pascal, wobei aber keine Abstufungen oder Heraushebungen gemacht werden, farblich ist kein Unterschied da...

Ich bin ehrlich enttäuscht und froh, daß ich mich für GLBasic entschieden habe! Das Ding ist stellenweise erschreckend...

GLG

W.
#274
Hi!

Eine Frage: Wie kann man ein metallisches Glitzern bzw. einen Metallischen schein erzeugen? Wenn ich das 3D Modell bereits fertig und es mit der Textur überzogen habe, wäre eine Lichtreflektion genial, aber ich habe keine Ahnung wo ich beginnen soll.

Geht das so in Richtung Bumpmapping? Zumindest so ähnlich???

GLG

W.
#275
Weiß wer, wie das Anti - Aliasing Verfahren funktioniert???

Bin nur neugierig, weil ich mich nicht so gut auskenne...

GLG

W.
#276
GLBasic - de / Inline
2006-Jun-12
Hi!

Habe mich gerade (leider noch immer mit dem Laptop meiner Freundin) auf der ATI Seite schlau gemacht. Da gibt es etwas sehr spannendes:

http://www.ati.com/developer/indexsc.html

Ist es möglich diese Codes zu nutzen??? Es scheinen zwar auf gewisse Graphikkartentypen begrenzte Codes zu sein, aber es klingt interessant.

GLG

W.
#277
GLBasic - de / anonym surfen
2006-May-26
Hi!

Blöde Frage, aber ich suche die längste Zeit einen Weg anonym im Netz zu surfen, aber ich finde keinen.

Weiß vielleicht wer, wie ein proxy server funktioniert??? Ich kenne mich da nämlich gar nicht aus...

GLG

W.
#278
Hi!

Ab heute habe ich Internet, aber seit Dienstag ist mein Mainboard hinüber. IRONIE??? :-/

Da in Österreich nun mal die Preise höllisch sind, wollte ich euch fragen, ob ihr vielleicht wissen könntet, wie und wo man sich im Internet billig folgende Komponenten bestellen könnte:

AMD X2 Prozessor (zwischen 3,8 / 4,2 / 4,4 Ghz)
Ein dazu passendes Mainboard (bevorzugt MSI oder ASUS)
ATI X 1900 XT

Vielleicht habt ihr ja einen Tip...

GLG

W.
#279
GLBasic - de / Bug?
2006-May-03
Hi!

Um den Anfang zu machen, ich habe noch die Version 3.082 (glaube ich) auf meinem Rechner installiert!

Mir sind folgende Dinge aufgefallen:

1. DIM funktioniert nicht so ganz. Wenn ich versuche ein kurzes Programm zu schreiben...

Code (glbasic) Select
DIM hui[50]

FOR a = 1 to 50

hui[a] = RND (100) + 1

NEXT

PRINT hui[23]

SHOWSCREEN

MOUSEWAIT
...bleibt das Ausgabefenster nicht aufrecht. Auch nicht im Vollbildmodus. Er startet und beendet gleich darauf wieder. Das ist sehr blöd, da ich nämlich mit DIM meine Sterne anpassen und die Anzahl dadurch variabel halten möchte.

2. X_SPRITE funktioniert nicht so richtig. Oder ich bekomme da etwas nicht hin. Auf jeden Fall habe ich ein kleines Bild (ca. 150 x 100 Pixel, *.bmp, 24 bit) gemalt und mit RGB (255, 128, 0) umrandet und habe es dann mit LOADSPRITE zugewiesen. Als ich es ausgeben wollte, war es "verkehrt". Ich weiß nicht wie der Ausdruck dafür heißt, aber jeder Farbwert wurde in sein Gegenteil gekehrt. Es sah aus wie ein Negativ. Beim 2. Versuch mit einem anderen Bild selber Größe wurde schließlich gar nichts mehr angezeigt...

(3.) Ist eher ein kleines Problemchen, das aber nicht wirklich von Belang ist. Wenn man X_LINE und/oder X_DOT vor dem Licht setzt, werde die Farben normal angezeigt, aber danach bleiben sie einfach nur grau. Ist das normal???

Hoffe ich habe nicht zu viel Arbeit gemacht...

GLG

W.

PS.: Bald habe ich meinen Internetzugang zuhause, dann kann ich endlich ein paar super Ergebnisse vorweisen!!!
#280
Hi!

Also der Betreff sagt schon ziemlich viel aus...

Mir geht es um folgendes:

Ich möchte z.B. einen Laserstrahl (dargestellt durch X_LINE) von A nach B schießen, dann möchte ich die Ränder (einen Bereich von ca. 10 - 20 Pixel) verzerren.

So in etwa, als ob man durch eine Verzerrerlinse oder ein Prisma guckt. Alles was dahinter liegt sollte mitverzerrt werden.

Was gibt es denn da für Wege bzw. was kann und/oder könnte ich da machen???

GLG

W.