Page 1 of 1

Questions about 1st person

Posted: Fri May 15, 2009 9:56 pm
by destos
ok so i was wondering if you could

1. have a unit locked in first person view

2. edit first person view so you can add certain effects (i basicly wanna make it so that it truely seems like your looking through a visor {in metroid prime if you go by a waterfall your visor fogs up on the sides and you can see water droplets upon it}

Re: questions about 1st person

Posted: Fri May 15, 2009 10:04 pm
by AQT
1. I pretty sure there is a lua comand for it.

2. You will needs to make a custom HUD.

Re: questions about 1st person

Posted: Sat May 16, 2009 9:14 am
by destos
ty AQT

does any1 know the lua code?

Re: questions about 1st person

Posted: Sat May 16, 2009 10:00 am
by bobfinkl
It's done via odf, just look at a vehicles odf which forces 3rd person just change that to 1st person and add it to your units odf.

Re: questions about 1st person

Posted: Sat May 16, 2009 11:15 am
by lesovikk1
i dont know about the lua codes but i have a idea for the visor....the republic commado view? can you use it from the game?

Re: questions about 1st person

Posted: Sat May 16, 2009 12:00 pm
by Fiodis
You will need to make a custom HUD, as mentioned above, but I'm not sure you can do ambient effects such as water droplets fall upon it.

Re: questions about 1st person

Posted: Sat May 16, 2009 3:07 pm
by yukisuna
1: type in ForceMode = 2
2: dont know. will try it myself :)

Re: questions about 1st person

Posted: Sat May 16, 2009 3:10 pm
by RogueKnight
yukisuna wrote:1: type in ForceMode = 2
2: dont know. will try it myself :)
um... as far as I know, there is no ForceMode=2, you can only put 0 and 1.

Re: questions about 1st person

Posted: Sat May 16, 2009 7:39 pm
by Frisbeetarian
For two, you are talking about a dynamically changing HUD with relation to surroundings (objects, regions, etc.). While I've never played around with it myself to much detail, I think Rep will confirm that it's more or less impossible.

Re: questions about 1st person

Posted: Sat May 16, 2009 11:53 pm
by destos
i didnt want it to change, i just wanted to add the foggy look to the siding (any1 with glasses and comes indoors after shoveling the driveway from lots of snow can understand what i mean =P) i didnt want a cycling hud even though it would be awesome =P

Re: questions about 1st person

Posted: Sun May 17, 2009 12:36 am
by RogueKnight
destos wrote:i didnt want it to change, i just wanted to add the foggy look to the siding (any1 with glasses and comes indoors after shoveling the driveway from lots of snow can understand what i mean =P) i didnt want a cycling hud even though it would be awesome =P
I hate that, mine fog up really bad, and are transition lenses on top of that, so its really hard to see. I see what you mean now, I think, where you just have a non-animated HUD with fog around the outer brim of the screen, I even though about doing something like this once for a RC mod, which i still might do if i ever get around to it.....

Re: Questions about 1st person

Posted: Sun May 17, 2009 11:33 am
by bobfinkl
Im 50% sure you can get that effect through a custom HUD but since I have little to no experience with the HUD I wouldn't know.

Re: Questions about 1st person

Posted: Mon May 18, 2009 12:38 am
by VF501
Messing with the HUD changes it for all units, HUDs are not unit specific.

To make a Unit specific view you need to make a new first person mesh with the Helmet elements placed right and weighted to a static un-animated bone, and with arms rigged/weighted to a skeleton that is setup exact to the stock one used in the games animations. The draw back is the game HUD is overlayed on top of it and if you add health and other indicators to your custom 1st view they wont work, they'll just be static and blink and scroll if you set them to.

Ambient (decal) effects (dirt, water, fog, blood/fluids, and cracks) are not possible in SWBF as far as I know, they might be in the code somewhere but all evidence in the HUD says no. The HUD is comprised of several meshes each calling on different textures. There is no singular mesh (plane) to apply decals to for those kind of effects.