Search found 26 matches

by starax
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! :D
by starax
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 ...
by starax
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 ...
by starax
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(). :oops: Plot is fine with the latest version.

Problem solved :)
by starax
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 ...
by starax
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 ...
by starax
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 ...
by starax
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 ...
by starax
Mon Mar 02, 2009 10:13 pm
Forum: Coding Questions
Topic: [PB 4.30 Ogre] Simple Text Output needed..
Replies: 19
Views: 4650

I've also tried getting some text onto a full 3D screen using various methods listed in this thread and I've not had any luck.

and the link to the Gadget3D example in the docs is broken.
by starax
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

DarkDragon wrote:You can do that already through the material scripts of ogre.
Ya know, I was kinda hoping somebody would say that. Thanks! :)

Now I gotta go figure out how to do it.
by starax
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

Tranquil wrote:Sorry, cant get your point. Can you explain a bit?
Yeah sorry, I was a little vague. :)
by starax
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?
by starax
Mon Jun 09, 2008 8:18 pm
Forum: Coding Questions
Topic: ResizeImage() and #PB_Image_Smooth
Replies: 7
Views: 1444

Okay, well with you guys being so sure that it worked I finally carried out some *proper* tests and it does indeed appear to be "working".

I think the problem was that I was expecting a little more smoothing than it was giving. So it was easy to overlook the effect with the type of images I was ...
by starax
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!