
Search found 26 matches
- Tue Jul 13, 2010 5:51 pm
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
Hey Thorium, thanks for the super clear example! 

- Tue Jul 13, 2010 1:11 pm
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
I think there's a relationship problem with Plot() and Point() when used with sprites. It becomes more apparent when dealing with large sprites.
The code below will crash.
InitSprite()
OpenWindow(0,0,0,640,480,"void",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0 ...
The code below will crash.
InitSprite()
OpenWindow(0,0,0,640,480,"void",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0 ...
- Tue Jul 13, 2010 12:30 pm
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
What the hell ...
The reason Plot() is so slow is actually the use of Point() :!:
Without this command Plot() is faster than Box():
I'm confused ... :?
Yeah strange... Point() must not like sprites. It seems fine with images. Plot(x,y,Point(x,y)) is faster than Box(x,y,1,1,Point(x,y)) when ...
The reason Plot() is so slow is actually the use of Point() :!:
Without this command Plot() is faster than Box():
I'm confused ... :?
Yeah strange... Point() must not like sprites. It seems fine with images. Plot(x,y,Point(x,y)) is faster than Box(x,y,1,1,Point(x,y)) when ...
- Tue Jul 13, 2010 8:43 am
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
Update:
I've realized I was using an older version of Purebasic when I first tried Plot().
Plot is fine with the latest version.
Problem solved
I've realized I was using an older version of Purebasic when I first tried Plot().

Problem solved

- Tue Jul 13, 2010 8:09 am
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
Please note than since 4.40, Plot() isn't that slow anymore, so it could worth a try.
It's still very slow and rather useless. Use Box() instead (can be used outside "drawing area" as well).
[/code]
Seems drawing to a window produces unpredictable timing results. Try drawing to an image.
When ...
It's still very slow and rather useless. Use Box() instead (can be used outside "drawing area" as well).
[/code]
Seems drawing to a window produces unpredictable timing results. Try drawing to an image.
When ...
- Tue Jul 13, 2010 7:47 am
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
Please note than since 4.40, Plot() isn't that slow anymore, so it could worth a try.
I actually did it with Plot() before asking on the forum, the process was too slow. Plot would be okay if I was working with small images, but I'm dealing with images as large as 4096*4096.
I never really ...
I actually did it with Plot() before asking on the forum, the process was too slow. Plot would be okay if I was working with small images, but I'm dealing with images as large as 4096*4096.
I never really ...
- Mon Jul 12, 2010 6:53 pm
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Re: Imagery to Alpha
DrawingMode(#PB_2DDrawing_AlphaChannel)
DrawImage(ImageID(I), 0, 0)
I had already tried this approach but it seems that only the alpha channel from the source image is copied to the alpha channel of the destination image. So in my situation the alpha channel in the source images doesn't ...
DrawImage(ImageID(I), 0, 0)
I had already tried this approach but it seems that only the alpha channel from the source image is copied to the alpha channel of the destination image. So in my situation the alpha channel in the source images doesn't ...
- Mon Jul 12, 2010 6:13 pm
- Forum: Coding Questions
- Topic: Imagery to Alpha
- Replies: 16
- Views: 2286
Imagery to Alpha
Hi folks,
I see that it's possible to draw shapes to an alpha channel, but is it possible to draw images to an alpha channel?
Basically I need to be able to transfer either the red,green or blue channel of an image to the the alpha channel of another image.
Or to be even more clear - I'm looking ...
I see that it's possible to draw shapes to an alpha channel, but is it possible to draw images to an alpha channel?
Basically I need to be able to transfer either the red,green or blue channel of an image to the the alpha channel of another image.
Or to be even more clear - I'm looking ...
- Mon Mar 02, 2009 10:13 pm
- Forum: Coding Questions
- Topic: [PB 4.30 Ogre] Simple Text Output needed..
- Replies: 19
- Views: 4650
- Mon Mar 02, 2009 4:29 pm
- Forum: Feature Requests and Wishlists
- Topic: Can we have some of that fancy normal mapping?
- Replies: 4
- Views: 1848
- Mon Mar 02, 2009 4:27 pm
- Forum: Feature Requests and Wishlists
- Topic: Can we have some of that fancy normal mapping?
- Replies: 4
- Views: 1848
- Mon Mar 02, 2009 3:31 pm
- Forum: Feature Requests and Wishlists
- Topic: Can we have some of that fancy normal mapping?
- Replies: 4
- Views: 1848
- Mon Mar 02, 2009 3:28 pm
- Forum: Coding Questions
- Topic: The Shadows, the Terrain and the Water
- Replies: 0
- Views: 666
The Shadows, the Terrain and the Water
Do additive shadows work in a scene that contains both terrain and water?. I've tried it and I can't seem to get those shadows working.
Where are the vampires gonna sleep?
Where are the vampires gonna sleep?
- Mon Jun 09, 2008 8:18 pm
- Forum: Coding Questions
- Topic: ResizeImage() and #PB_Image_Smooth
- Replies: 7
- Views: 1444
- Mon Jun 09, 2008 6:58 pm
- Forum: Coding Questions
- Topic: ResizeImage() and #PB_Image_Smooth
- Replies: 7
- Views: 1444
ResizeImage() and #PB_Image_Smooth
Hi Folks!,
Does anybody know of a workaround for ResizeImage() not smoothing the images as advertized.
I tried with and without the PB_Image_Smooth parameter and still no smoothing. Just raw, raw and raw.
Any suggestions would be greatly appreciated!
Thanks!
oh! and btw - I'm a Windows XP user!
Does anybody know of a workaround for ResizeImage() not smoothing the images as advertized.
I tried with and without the PB_Image_Smooth parameter and still no smoothing. Just raw, raw and raw.
Any suggestions would be greatly appreciated!
Thanks!
oh! and btw - I'm a Windows XP user!