Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 767 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Duplicating a Bitmap? #78842
06/21/06 15:07
06/21/06 15:07
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA


Is there a way to duplicate-and-scale a bitmap quickly (i.e., once every frame)? Per Grimber's suggestion here, I'd like to try layering two views, but I'd like to avoid having to render the entire thing twice.

Thanks.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Duplicating a Bitmap? [Re: Ichiro] #78843
06/21/06 17:25
06/21/06 17:25
Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
Bird Offline
Senior Developer
Bird  Offline
Senior Developer

Joined: Mar 2004
Posts: 1,201
Switzerland, Baselland
isn't render_to_texture onto a view entity possible?

btw, Ichiro: your games rock!

Last edited by Bird; 06/21/06 17:26.

- A6pro 6.40.5
Re: Duplicating a Bitmap? [Re: Bird] #78844
06/21/06 18:30
06/21/06 18:30
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
isn't render_to_texture onto a view entity possible?

That may be what I'm doing already with view.bmap (though to be honest, I'm just learning about all this now). What I'd ultimately like to do is:

1. Render the view to a 1024x768 bitmap.
2. Copy that view to a 256x192 bitmap (rather than re-rendering the whole thing).
3. Overlay #2 on #1 (e.g., bitmap #2 is displayed with 50% alpha, stretched to 1024x768).
4. Possibly use additive blending when overlaying (perhaps using the SDK?) to get a poor man's bloom effect.

btw, Ichiro: your games rock!

Thank you! That's nice of you to say. :)


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Duplicating a Bitmap? [Re: Bird] #78845
06/21/06 18:38
06/21/06 18:38
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
Im not sure a bmap_for_screen or a file_for_screen would be faster then a second rendered view

another possible idea is use a flat mesh ( size of your screen set it up to face the view rather like a panel) then bmap_for_screen bmap_for_entity it then try deforming the mesh the mesh for distortion

but any of these methods would be a hit on framerate

only other option i can think of is a shader that would somehow pull pull/smear pixels based on a vector distance and direction ( closer to center less distance pulled/smeared) from the center of the screen. would need one of them shader gurus to see if thats possible.

Re: Duplicating a Bitmap? [Re: Grimber] #78846
07/09/06 19:52
07/09/06 19:52
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
The way I understand bmap_for_screen requires a full frame to be saved (wait(1); hehehe) and then you haven't processed it yet, only saved it, so using that method would have quite an impact no matter what ...

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1