zane
Posts a bit
His dudeness
Posts: 141
|
Post by zane on May 28, 2004 4:01:34 GMT -5
How do i make it so that cretian parts of a sprite are transparent? I tryed useing the sprsetsolid command but it did'nt work.
also, why dose it keep saying theres been an exception when I try to load large textures (like a game logo for example)?
|
|
|
Post by Tom Mulgrew on May 28, 2004 20:17:12 GMT -5
Hi there,
I'm concerned about exceptions when loading images. I've been trying to get that area all sorted out. Every time I think I have it fixed, something seems to break again..
Can you give me some details about this? Like how big the file is, what format is it (jpg, bmp, ...?) what the error message says. If I can reproduce the problem, then I should be able to fix it.
As for partially transparent sprites, you need to start with partially transparent images. Generally this means using an image editor that understands transparency, and deleting out the bits you want to be transparent. You also have to save the image in a format that supports transparency. bmp and jpg/jpeg do not. tga and png do. I recommend png (because Basic4GL has some problems loading tga files properly).
The AsteroidDemo2.gb program uses sprites with transparency.
Hope this helps, -Tom
|
|
zane
Posts a bit
His dudeness
Posts: 141
|
Post by zane on May 29, 2004 8:30:07 GMT -5
thanks ;D
the image im trying to load in is a bitmap, and it only seems to cause an exception if to image is large (150x300 in this case). it gives to following error message: "an exception occured"
|
|
zane
Posts a bit
His dudeness
Posts: 141
|
Post by zane on May 30, 2004 5:29:40 GMT -5
hmmm, strange i decided to put the program on my pc instead of my laptop, and it runs perfectly, no bugs at all (at least so far). im not even getting that annoying pointer error that keeps coming up. mabey its because my pc runs win me instead of win xp
|
|
|
Post by StevenE on May 30, 2004 8:17:01 GMT -5
I had the same problem on WinXP Home, but not on WinXP Pro. It is the drivers for the video card. I went out to the manf. web site and located a new set of drivers for my XP Home PC and installed them and the exceptions went away.
However, I do have to run all of the XP Pro B4GL programs in windowed mode as going fullscreen really screws up the display. This has to do with buffering images directly on video hardware as I have had other programs do the same thing.
|
|
zane
Posts a bit
His dudeness
Posts: 141
|
Post by zane on May 31, 2004 8:19:58 GMT -5
urgh - its started screwing up even more on my pc than my laptop now. i think im going to come back to it when theres a new version out (i like this language)
|
|
|
Post by Supermonkey on May 31, 2004 14:28:23 GMT -5
I have winME and XP and BASIC4GL runs sweet on both PC's, I haven't tried it on my laptop though. What graphics card you got?
|
|
zane
Posts a bit
His dudeness
Posts: 141
|
Post by zane on Jun 1, 2004 6:51:07 GMT -5
on my pc its somthing called a 3d phantom (thats what it said on the box). dunno about the laptop, as i got it from collage.
|
|