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

Messages - planetm

#46
Sorry, it was my own stupid mistake. I'd set the background image using loadbmp, but then drawn the mask sprite over the mask image so the magenta I saw was my drawn magenta area showing through the transparent sprite areas.

What I could have used would be a command to reset the backbuffer (like cls but still displaying the loadbmp image) without having to showscreen, does such a command exist?

Thanks for you help already, sorry to have wasted your time!
#47
I'm actually using a sprite the size of the screen to mask everything except the specific areas of an image below it that I want to show. Imagine a fullscreen "hidden" image where the mouse controls a spotlight illuminating only a small part of the image, the rest remaining black.

I set the whole backbuffer to black, then draw in (255,0,128) the area I want to be transparent (depending on the mouse position). Finally I use grabsprite to make a sprite the size of the screen.

For the actual display I then draw the "hidden" image to the backbuffer, draw my new sprite over the top of it and hopefully the area I drew in (255,0,128) should show through.

I repeat this process over and over again to change the part of the "hidden" image which shows through my mask sprite depending on the mouse position. I hope that makes sense.

All that actually happens is that I end up with a magenta blob following the mouse around, no transparency.
#48
In my current project I'm grabbing a sprite from the backbuffer. Some of the image I have drawn to the backbuffer is RGB(255,0,128) which I assume should be transparent once I grabsprite. However, when I later draw the sprite to the screen it appears with the magenta (255,0,128) areas visible and not transparent.

I'm using a laptop with the desktop set to 32bit colour depth and i'm running the glbasic program full screen. Does transprency work with 'grabsprite' sprites? If so, what might I be doing wrong?

Thanks...
#49
Thanks for your replies, and thanks too for the reg code - no more demo mode for me :)

Sorry to keep adding to the thread, but I have come across another issue, although it's not actually your fault as such I thought i'd mention it. In some other threads you mention running the IDE on linux via wine. I have tried this, but compilation fails with the following output:

Code (glbasic) Select
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.2007.050 - 2D, NET
Wordcount:119 commands

compiling:
g++.exe: installation problem, cannot exec `cc1plus': No such file or directory

linking:
g++.exe: gpc_tempg.o: No such file or directory
g++.exe: gpc_temp0.o: No such file or directory
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Time: 0.8 sec
Build: 0 succeeded
*** 1 FAILED ***
Obviously you don't have to make an IDE which runs in wine - this is desirable, but not essential. If you could solve this it'd save me booting up the vmware virtual win2k machine each time I want to use glbasic though :)

Thanks again.... I'm looking forward to really getting my teeth into this in the next few weeks.
#50
Can you also check for another bug: I opened a sample in the IDE earlier to check how something was done, with my own project still open. The sample opened and my own project vanished, losing all changes since my last save. Didn't they open in tabs before?
#51
I probably should be more clear - I am compiling on the win2k platform, but running the linux executable from the linux console (this is obvious, but unclear in my first post)
#52
I'm using the most recent update of GLBasic, but still just the demo. I'm running the IDE on win2k via VMware, on my Suse linux 10.2 system. When I complile a program for linux, then run it from the command line , I briefly see a window appear, then disappear and the console just states 'Segmentation fault'. This occurs with helloworld and arkanoid. OpenGL and SDL are both installed.

Any ideas?
#53
Announcements / GP2X
2007-Feb-07
Quote from: GernotFrischO_O? Try something more sophisticated:
Code (glbasic) Select
WHILE TRUE
 FILLRECT 0,0,160,160,RGB(255,0,0)
 PRINT "Help Me", 100, 100
 SHOWSCREEN
WEND
Press Vol- AND Vol+ for "Escape". So, so strange. It wokred here...
See the file: GLBasic/Compiler/platform/GP2X/Lib/libGLBasicGP2X.a and tell me the "last change" date, please.
I've now had this working. I've noticed a different bug to Neurox though: I can't seem to exit the application. The blue bar slowly decreases, but pressing vol- and vol+ just freezes it and does not exit to menu. I've tried a few other things (I lost the while/wend loop and tried a keywait at the end instead) but I still cannot exit the application. Maybe i'm just making a stupid mistake though :)
#54
Announcements / GP2X
2007-Feb-07
Quote from: GernotFrischFIXED!! It was a Demo-Version problem. Thx for your help.
Excellent. Is this fix an internet update or a full version download? Off to work now, but I look forward to trying it out later :)
#55
Announcements / GP2X
2007-Feb-05
Quote from: Neurox
Quote from: GernotFrisch
Code (glbasic) Select
WHILE TRUE
 FILLRECT 0,0,160,160,RGB(255,0,0)
 PRINT "Help Me", 100, 100
 SHOWSCREEN
WEND
Press Vol- AND Vol+ for "Escape". So, so strange.
I'v tried to run but still shows black screen on GP2X!
I've pressed the "Vol- AND Vol+" but nothing :-(

Quote from: GernotFrischSee the file: GLBasic/Compiler/platform/GP2X/Lib/libGLBasicGP2X.a and tell me the "last change" date, please.
libGLBasicGP2X.a - 04/02/2007 23:32

Neurox
I have also tried this now, with identical results to Neurox. The Wumbo demo works fine however.