Search found 34 matches

by newart
Tue May 16, 2006 2:58 am
Forum: Coding Questions
Topic: #PB_Sprite_AlphaBlending and TIFF
Replies: 3
Views: 1335

#PB_Sprite_AlphaBlending goes together with #PB_Sprite_Texture at the time of creation for a 2D sprite which will in turn be used to create a 3D sprite, which will then show alpha transparency correctly. No transparent SpriteColor is needed. You must use a 3D sprite to get the correct alpha ...
by newart
Tue May 16, 2006 1:21 am
Forum: Coding Questions
Topic: #PB_Sprite_AlphaBlending and TIFF
Replies: 3
Views: 1335

#PB_Sprite_AlphaBlending and TIFF

UsePNGImageDecoder()
;UseTIFFImageDecoder()

#frate = 100
#scrw = 800
#scrh = 600
#scrd = 32


If InitSprite() = 0 Or InitSprite3D() = 0 Or InitKeyboard() = 0 Or InitMouse()=0:MessageRequester("Error", "Can't open DirectX 7 Or later", 0):End:EndIf


If OpenScreen(#scrw, #scrh, #scrd, "Test ...
by newart
Sat Apr 01, 2006 12:58 am
Forum: Game Programming
Topic: Saucer - PB4 Game test
Replies: 38
Views: 14995

20 fps

Athlon 1.4/Riva TNT2 32mb/Win XP
by newart
Mon Feb 20, 2006 12:36 am
Forum: Coding Questions
Topic: 3D Sprite render with USEBUFFER()
Replies: 7
Views: 1915

Fred wrote:What you try to achieve is not supported for now. You can still use the main buffer and GrabSprite(), it should be fast.
Thanks!
But I hope in PB 4. X in due course it will be realized.
by newart
Sun Feb 19, 2006 11:17 pm
Forum: Coding Questions
Topic: 3D Sprite render with USEBUFFER()
Replies: 7
Views: 1915

Comtois wrote:I was sure you will say that :)

So, i dont know if it's possible with Sprite3D().
Fred clear please a situation. :o
by newart
Sun Feb 19, 2006 10:46 pm
Forum: Coding Questions
Topic: 3D Sprite render with USEBUFFER()
Replies: 7
Views: 1915

Comtois wrote:

Code: Select all

UseBuffer(1)
DisplaySprite(0,0,0)
; Start3D()
; DisplaySprite3D(0,0,0,255)
; Stop3D()
UseBuffer(-1)
DisplaySprite(1,0,0)
I need only 3D sprite with Rotate, Zoom, ETC.
by newart
Sun Feb 19, 2006 10:21 pm
Forum: Coding Questions
Topic: 3D Sprite render with USEBUFFER()
Replies: 7
Views: 1915

3D Sprite render with USEBUFFER()

This no work. (black screen)
Why? :oops:


UsePNGImageDecoder()

#frate = 60
#scrw = 256
#scrh = 256
#scrd = 32

InitSprite()
InitKeyboard()
InitSprite3D()

If OpenWindow(0,0,0,#scrw,#scrh,#PB_Window_ScreenCentered|#PB_Window_SystemMenu , "") = 0: End: EndIf
If OpenWindowedScreen(WindowID(),0,0 ...
by newart
Sat Feb 18, 2006 9:51 pm
Forum: Announcement
Topic: Happy Birthday Gift!!
Replies: 6
Views: 2371

Really nobody knows in what the reason (window lost focus)?
:cry:
by newart
Thu Feb 16, 2006 12:17 pm
Forum: Announcement
Topic: Happy Birthday Gift!!
Replies: 6
Views: 2371

Comtois wrote:for the cursor dont use ExamineMouse()
if you need mouse
Big thanks!! :lol:

But the window on former loses focus. :cry:
by newart
Wed Feb 15, 2006 11:06 am
Forum: Announcement
Topic: Happy Birthday Gift!!
Replies: 6
Views: 2371

Somebody knows why after start Gift the window becomes not active and the cursor disappears?
It can be avoided?
Here a source code:


If OpenWindow(0,0,0,#scrw,#scrh,#PB_Window_ScreenCentered, title$) = 0
MessageBox_ (0,"Could not open Window", title$, #MB_ICONINFORMATION|#MB_OK): End
EndIf

If ...
by newart
Mon Feb 13, 2006 4:17 pm
Forum: Announcement
Topic: Happy Birthday Gift!!
Replies: 6
Views: 2371

Happy Birthday Gift!!

I make gift for Happy Birthday of my girlfriend - Alexandra aka VitaminC =)

http://www.n-discovery.spb.ru/pc/vitagift_eng.rar (750kb)

Others my gift & intro on purebasic: http://www.n-discovery.spb.ru/pc.php

http://www.n-discovery.spb.ru/pc/vitagift1.jpg

http://www.n-discovery.spb.ru/pc ...
by newart
Sun Feb 05, 2006 2:52 am
Forum: Announcement
Topic: PureBasic Winter Contest 2005/2006
Replies: 31
Views: 15201

Re: PureBasic Winter Contest 2005/2006

freedimension wrote:
The PureBasic-Contest committee is proud to present you the
first jointly hosted contest of three major PureBasic forums,
i.e. the international PureBasic-Forum, the german PureBoard
and the PureLounge.
And how much is not present GAMES competition?
I would make game.
by newart
Sun Jan 29, 2006 3:51 pm
Forum: General Discussion
Topic: TransparentSpriteColor problem in Sprite3D on Riva TNT2
Replies: 19
Views: 4302

Another common issue is that of compression. If you are making transparent sprites, you can not use jpegs. Only bmps have the needed quality for transparency to work correctly. Here is an example that shows the problem The example file that comes with purebasic, which I have already checked for ...
by newart
Sun Jan 29, 2006 12:28 am
Forum: General Discussion
Topic: TransparentSpriteColor problem in Sprite3D on Riva TNT2
Replies: 19
Views: 4302

PS I cleaned the garbage from around the edges of Fred's geebee2.bmp and so the resulting geebee3.bmp doesn't have the pink border. Little side note: when making images for display with transparency, antialias is not your friend.
I know all this. :wink:
Therefore very much I wait PureBasic 4 with ...
by newart
Sun Jan 29, 2006 12:19 am
Forum: General Discussion
Topic: TransparentSpriteColor problem in Sprite3D on Riva TNT2
Replies: 19
Views: 4302

So has got used to use pink (*FF00FF) color key, that has not guessed to check up Black. :oops:
With Black all work with in 16 and 32 bit mode. :D
But there is one more bug. :?
Original sprite has the size 16x16.
And at resize 32x32, it is drawn on a miscellaneous in 16bit and 32bit mode.
16bit ...