Author
Message
imothep85
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Belgium
Posted: 16th Jun 2017 14:22 Edited at: 16th Jun 2017 14:46
Hi in my game "test" i would like to make the fps view be, inside a helmet.
i know we can simulate that by changing the 2D HUD, but i would like to add my 3D helmet where the view camera is.
i did this in the past in 2D but i would like to add my 3d helmet inside gg where the player cam is, also the 3d Mode lcan be influenced by the game level lights, it makes the helmet view ore realistic than just a 2d flat picture of an helmet

https://s3.postimg.org/tyt9v5uqp/HUD_HELMET_RESULT07.jpg
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 16th Jun 2017 15:32
Why not? Disable collision and set the entity on the playerhead(I dont know the exact point where it is)
SetPosition(e,g_PlayerPosX,g_PlayerPosY+PlayerHeadHeight,g_PlayerPosZ)
That should do the trick. And then you must rotate your helmet. I wrote two script functions to carry a crate long ago maybe it is usefull:


Of course you must adapt it to your needs.

The best option for this would a 2d hud+PostProcessing Shader. But I think we dont have PostProcessing shader yet.
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download
PM
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 16th Jun 2017 16:51
could you attach a 3d model to the hud like the weapons,just a idea.

Dave
Windows 10 Pro
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 16th Jun 2017 17:28
The jetpack uses the ishudlayer = jetpack9 statement in the FPE file to do this.
It is located in the entitybank/collectables folder.

In the gamecore folder are the other files needed to make these work in the hudlayers folder.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Blacknyt46
8
Years of Service
User Offline
Joined: 29th Feb 2016
Location:
Posted: 17th Jun 2017 14:46
I to would like to know how a 3d helmet view is possible? I could then make my ships hud 3d. I been messing around with the fpe ishudlayer. I couldn't figure it out at all. It's to confusing! Can somebody please help figure this one out? Thanks
Jim C
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 17th Jun 2017 15:20
When I looked at this ages ago I found the update of the helmet too jerky, so opted for an image instead. I'm not sure if it's as bad now, but if that slight judder is there it ruins the effect entirely. I would imagine it is, as you can see it with third person characters fairly easily. Run forward with the camera positioned so you can see from the side and you will notice the player is jerking forward rather than moving smoothly. It looks okay from behind but from the side the motion looks choppy. So imagine that with something really close to the camera and you will have an idea how it will look

It may just be the third person that has the judder now though so it may look okay in first person mode. I just know from experience that it's difficult to get really smooth movement of objects tied to the player position. GG is better than it was though, so it may well work a lot better now.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 17th Jun 2017 15:25
It would be cool if you could get it to work,you could pick up a helmet like you pick up a weapon.Before you leave a space station for instance .

Dave
Windows 10 Pro
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM

Login to post a reply

Server time is: 2024-11-22 03:17:52
Your offset time is: 2024-11-22 03:17:52