Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, TipmyPip, RealSerious3D), 892 guests, and 4 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
3rd person crosshair #283345
08/07/09 10:07
08/07/09 10:07
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Sorry, me again:
3rd person crosshair -> has any one done it?

What I mean is: the camera sits behind the player somewhere, and a little above. if you shoot, the mouse cannot give a unique 3d position, instead it gives you an infinite line of points that the player could shoot at.

If a target is selected then it's no problem: the distance between camera and the targeted enemy is the depth of the vec_for_screen function. But what if no enemy is targeted?

c_trace won't do, as I'm talking about a space shooter. there'll be nothing that can be hit, in most directions. And since the weapons are not all instant-hit-weapons, the player needs to aim somewhere infront of the moving enemy ship, not directly at the ship, in order to hit him.

Any suggestions?


~"I never let school interfere with my education"~
-Mark Twain
Re: 3rd person crosshair [Re: Germanunkol] #283660
08/09/09 07:10
08/09/09 07:10
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline
Member
The_Clyde  Offline
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Try a three-dimensional crosshair. Use a sort of translucent wireframe box (not actually wireframe, but use narrow boxes to form the edges) to make a sort of futuristic space crosshair.

I've used a 3rd person crosshair before, though not in a space shooter. I made a helicopter game once that had two views onscreen. One was a view behind the helicopter, and took up most of the screen. In the corner a smaller window had the view from right next to the helicopter's gatling gun. I used c_trace to determine the distance ahead of the gun and used vec_to_screen to place the crosshair over the object.

Re: 3rd person crosshair [Re: The_Clyde] #284041
08/11/09 12:03
08/11/09 12:03
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
try a double crosshair - it works to a point. 1 at x distance, and a second at x*2 distance. Or add a line through the crosshair, at least twice the size of the crosshair, that goes along the path of firing. This way the player gets more of an idea of the path than having to project the line themselves in their head.

Don
have a great day

Re: 3rd person crosshair [Re: Gumby22don] #284047
08/11/09 12:47
08/11/09 12:47
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
both ideas are great. thank you!


~"I never let school interfere with my education"~
-Mark Twain

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