Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Setting only a part of the screen to be zoomed in #295991
10/28/09 23:02
10/28/09 23:02
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
I'm creating a scope, and I want only the center of the screen to have zoom, instead of the entire screen. Is there a way to do this? Also, can I blur the areas of the screen outside the zoomed area?


I'm pretty awesome
Re: Setting only a part of the screen to be zoomed in [Re: darksmaster923] #295998
10/29/09 01:11
10/29/09 01:11
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
yes with a shader, or used a foggy alpha image, and create another VIEW in the centre of the screen

Re: Setting only a part of the screen to be zoomed in [Re: MrGuest] #295999
10/29/09 01:32
10/29/09 01:32
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
honestly, do you NEED that much, even AAA games only use a bitmap for their scopes, sure you wanna spend ages coding that effect, maybe do something else more important to your game and come back to that later?

Re: Setting only a part of the screen to be zoomed in [Re: darkinferno] #296002
10/29/09 02:36
10/29/09 02:36
Joined: Jan 2007
Posts: 25
California, USA
D
darksmaster923 Offline OP
Newbie
darksmaster923  Offline OP
Newbie
D

Joined: Jan 2007
Posts: 25
California, USA
I don't really like using a new view, just cause its in a box, but its probably the only way.

Originally Posted By: darkinferno
honestly, do you NEED that much, even AAA games only use a bitmap for their scopes, sure you wanna spend ages coding that effect, maybe do something else more important to your game and come back to that later?

I strive toward realism.


I'm pretty awesome
Re: Setting only a part of the screen to be zoomed in [Re: darksmaster923] #296162
10/30/09 00:37
10/30/09 00:37
Joined: Oct 2002
Posts: 2,256
Oz
L
Locoweed Offline
Expert
Locoweed  Offline
Expert
L

Joined: Oct 2002
Posts: 2,256
Oz
Originally Posted By: darksmaster923
I don't really like using a new view, just cause its in a box, but its probably the only way.

Originally Posted By: darkinferno
honestly, do you NEED that much, even AAA games only use a bitmap for their scopes, sure you wanna spend ages coding that effect, maybe do something else more important to your game and come back to that later?

I strive toward realism.


Actually, there is a method to make a view not a box, it involves creating a entity the shape you want and placing it directly in front of the camera, creating a different view and then using bmap_for_entity() on the model you placed in front of camera.

I don't really have time to try to explain it all, but I will link some old C-Script code I wrote that does just this.

The main things to look at in this code is the circleview.mdl, action CircleView, and the view viewMap.

Also find the line:
viewMap.bmap = bmap_for_entity(pCircleEnt,0);
That is the main line that is putting the view onto the circular model's skin.

Even though when you look at the GTA circle minimap and it might not look like a view it really is, it's just the characters being placed in a view below the actual map as arrow sprites over a sprite with picture of level the same size as the level. Basically it is a view looking down at a picture of level under the level.

Anyhow, sorry this code is in C-Script and I don't have time to change it it to Lite-C, but if you want to try to figure it out, here is link to source example:

http://www.ecgames.com/video/LocoMapGTA.rar

It's like 50 times more complicated code than you need, but if you look at the main points I mentioned above I think you should be able to figure it out.

Hope it helps,
Loco


Professional A8.30
Spoils of War - East Coast Games

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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