IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> Editor Resource: Red Dot Sight
D@V£
post May 28 2009, 16:16
Post #1


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



So, yeah. Red Dot sights.

Anyone who's seen one of these in real life will know they aren't just red dots painted on a piece of glass, the way they're simulated in ArmA.

So, after a few drinks, a watch of 28 days later and a few other pieces of non-apparent inspiration, I came up with this idea:


So I built this from one of the M4s in the model pack:


And after a bit of tweaking to get it working right, here it is ingame:

When outside optics mode, the dot itself is conceal behind the bubble, making it invisible to the player.


The dot appears when the player zooms in. While it's actually about half a meter across in size, it appears to be projected on the screen.


Like a proper red dot sight, it moves across the screen depending on the angle at which you're looking at it from.

It's only on the gunner view LOD, so it won't be rendered on other units with these weapons (meaning a complexly shaped bubble and sight won't slow down machines as only one will ever be rendered) and as the gunner view LOD is rendered above every other object in game, the dot will always show up, even if it's physically inside other objects or the ground)

Rapidshare link to addon, binarized and source: Link
It'll only work ten times, so if you can't host it could you wait until someone who can uploads it elsewhere? Thanks smile.gif


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
STALKERGB
post May 28 2009, 16:36
Post #2


Member
***

Group: Members
Posts: 57
Joined: 29-October 07
From: Oxford
Member No.: 1,571



nice, thats really good work you have done there! 28 days later was the clear inspiration lol! I take it the only way to get all red dot sights (on all the weapons that have them) doing this is to change the model for each one. Or do you have a better way of doing it?
 
Quote Post
D@V£
post May 28 2009, 16:57
Post #3


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



Yeah. It'd mean changing all the weapon models. Even if I could get it as an attachment to existing weapons with Red Dot sights, it'd need for the existing dot in the sight to be removed.

I'll see if I can make a replacement pack when I've got some more free time (there's only a handful of weapons with Red Dots for Vanilla ArmA, so it probably won't take too long), but for now it's more being released for people who want to incorporate the effect into their own weapon packs.


EDIT: Should probably be a bit more specific as to why the reticle isn't seen outside the sight itself. The "bubble" is textured with a near invisible texture (alpha of 0.01, for some reason completely transparent textures don't work) that is ordered beneath the reticle, and has a hole where it bisects with the sight. When the player looks through the bubble, anything on the gunner view LOD ordered above the reticle is not rendered, as the engine believes that it's covered. It's essentially the same hack use to have simulated animations of pistols in OFP.

This post has been edited by D@V£: May 28 2009, 18:30


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
JdB
post May 28 2009, 19:08
Post #4


Hipster addonmaker
*******

Group: Former .info Serviceman
Posts: 2,090
Joined: 1-November 06
From: Kingdom of the Netherlands
Member No.: 10



QUOTE(D@V£ @ May 28 2009, 17:57) *
(alpha of 0.01, for some reason completely transparent textures don't work)


As I (tried to) told you on MSN, it's a problem (bug?) with the alpha transparency. Yeah, that's what I was using so many words for to explain ohnoo.gif


--------------------
Creator of dodgy ArmA:CWA addons.

 
Quote Post
D@V£
post May 28 2009, 23:58
Post #5


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



QUOTE(I44_John @ May 28 2009, 19:08) *
As I (tried to) told you on MSN, it's a problem (bug?) with the alpha transparency. Yeah, that's what I was using so many words for to explain ohnoo.gif


I got it to work by using "#(argb,8,8,3)color(0,0,0,0.01,ca)". It's pretty much impossible to see (as you can tell by the picture).

I wouldn't imagine it's a bug, as this is an extremely hacky way of getting it to work. (things that are completely transparent should obviously always be see through! tongue.gif )


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 25th April 2024 - 18:23