Product Chat / Ammo counter on weapon model?

Author
Message
tommy8
GameGuru TGC Backer
16
Years of Service
User Offline
Joined: 24th Dec 2007
Location: Northern Ireland
Posted: 26th Mar 2014 22:16
Does anyone have any idea how you would go about this? Like the counter on the side of the pulse rifle in Aliens or in the the sight of master chief's assault rifle.
PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 27th Mar 2014 19:50
You would need a new LUA script command which could modify the UV coordinates of a mesh inside a weapon model, and also a command to read in the current amount of ammo from the current clip system. Both relatively straight forward but squarely in the camp of non-performance related work. Once the core stuff is dealt with, I would be happy to add these scripting commands

PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920, NVIDIA Geforce 9600 GT GPU, 6GB RAM

J0linar
GameGuru TGC Backer
14
Years of Service
User Offline
Joined: 3rd Feb 2010
Location: Vienna, AT
Posted: 27th Mar 2014 19:55
Or render to texture, especially since this is the way it should be done.



You have a gui element and you are drawing that gui onto a texture by using render to texture.



@Lee and this is actually the part where you come in, we need a way to use

render to texture. Afterwards this could be used for security cameras, dynamic weapon scopes and much more.

http://j0linar.blogspot.co.at/



PC SPECS: Windows 8 Pro 64-bit, Intel I7-3630QM 4.8GHz CPU, Nvidia GTX 675M - 2048MB GPU, 16GB DDR3 RAM
PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 27th Mar 2014 20:00
Or something render target flavored, sure Not sure if it's faster writing to a vertex buffer or rendering to a surface these days, but either would produce the intended effect!

PC SPECS: Windows 7 Ultimate 64-bit, Intel Core i7 920, NVIDIA Geforce 9600 GT GPU, 6GB RAM

J0linar
GameGuru TGC Backer
14
Years of Service
User Offline
Joined: 3rd Feb 2010
Location: Vienna, AT
Posted: 27th Mar 2014 20:06
Am glad that you are getting it,

users that want such effects should realize that something like this would double the impact on fps.



However such thing should be in a modern engine.

Anyways looking forward to what you come up with when it comes to render to texture.

http://j0linar.blogspot.co.at/



PC SPECS: Windows 8 Pro 64-bit, Intel I7-3630QM 4.8GHz CPU, Nvidia GTX 675M - 2048MB GPU, 16GB DDR3 RAM
PM
KeithC
Senior Moderator
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location: 1x1x1 Cube
Posted: 27th Mar 2014 21:56 Edited at: 27th Mar 2014 21:56
You mean like this?



PM
almightyhood
11
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 30th Mar 2014 16:58
yes that looks awesome keithc, would be great to get into reloaded

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM

Login to post a reply

Server time is: 2024-11-24 02:48:15
Your offset time is: 2024-11-24 02:48:15