Author Topic: First person view  (Read 12106 times)

Offline SenaC

  • Squaddie
  • *
  • Posts: 5
    • View Profile
First person view
« on: April 04, 2014, 08:44:31 pm »
I was playing now that I finally got it to work. (Woo!) And noticed that First person screenshot: F10.

First person? In /my/ X-com? So with my curiosity curiousitied I went in to battle and took a shot from the skyranger. Interesting. Obviously very basic, but very interesting.

So my question is this, since I didn't see it answered elsewhere: Is this planned to be expanded upon? I can visualize actual X-com-like textures on this, with possibly very basic use of the in-game sprites ala Doom 1. Seems like LPers could get mileage out of that. And the idea of being able to watch after action from a unit's eyes makes me all tingly. Not that something of that degree is likely to happen, although if you saved /gameplay data,/ and just played back the moves and actions each turn... You could just ask it to save before you started, and hypothetically you /could/ watch from any unit. Unless I have a gross misunderstanding of how the renderer works in this case.

But of course if this is just a debug or a tech thing to look at, that's cool too.

(The image is kinda lousy, but I don't have the time to /really/ spend on making it pretty and accurate.)

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: First person view
« Reply #1 on: April 04, 2014, 10:27:29 pm »
It's mostly a debug thing for finding collision bugs. The 3D world you see are the collision boxes the Battlescape internally uses, mapped out to a first-person view. They're not really accurate enough for a full 3D rendition, plus we don't use 3D rendering, though you can find some experiments with it here: https://daikybe.blogspot.be/2010/09/2d-3d-x-comufo25d.html

Offline SenaC

  • Squaddie
  • *
  • Posts: 5
    • View Profile
Re: First person view
« Reply #2 on: April 05, 2014, 02:15:14 am »
Fair EnoughTM

Now I know, in any case. It's still an interesting glance from a game designer's perspective.

Offline alienfood

  • Captain
  • ***
  • Posts: 79
  • It's people!
    • View Profile
Re: First person view
« Reply #3 on: April 05, 2014, 03:13:40 pm »
Thanks for the link. I had missed that. There is some great work going on in this community.

Offline Qpoter

  • Colonel
  • ****
  • Posts: 114
    • View Profile
Re: First person view
« Reply #4 on: April 27, 2014, 08:23:48 pm »
Wow, this is some really cool stuff... I suppose a 3D OpenXcom is not such a pipe dream after all.

Offline luke83

  • Commander
  • *****
  • Posts: 1558
    • View Profile
    • openxcommods
Re: First person view
« Reply #5 on: May 02, 2014, 12:46:13 pm »
I would love to see a 3D Pixeled world.... Maybe oneday.

Offline Angelus_EV

  • Colonel
  • ****
  • Posts: 181
  • Trust no one
    • View Profile
Re: First person view
« Reply #6 on: May 02, 2014, 05:34:43 pm »
please if you do the 3d mod or experiment or whatever do it as a separate exe file, please stay close to the original.

Offline Tarvis

  • Colonel
  • ****
  • Posts: 111
    • View Profile
Re: First person view
« Reply #7 on: May 02, 2014, 06:30:41 pm »
I really don't think a transition for 3D would be that bad for X-Com. Every tile sprite could just get its own model. The only problem is it might be hardware-intensive to render hundreds and hundreds of models at once.

Otherwise though, I think just having models that stick to X-Com's fairly simplistic object shapes and textures should look fine. For example, the textures for the soldier models could be based off of their inventory paperdoll.

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: First person view
« Reply #8 on: May 02, 2014, 06:48:42 pm »
Personally, the only reason I'd like a first-person "shot" is to get a preview before shooting, in order to see how the target is covered, and my risks of friendly fire. For this, even a raycaster system with billboard sprites would be enough.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11454
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: First person view
« Reply #9 on: May 03, 2014, 12:20:43 am »
Personally, the only reason I'd like a first-person "shot" is to get a preview before shooting, in order to see how the target is covered, and my risks of friendly fire. For this, even a raycaster system with billboard sprites would be enough.

Perhaps a mesh-like display, with black background and green "wires"? :)

Offline sidav

  • Sergeant
  • **
  • Posts: 19
    • View Profile
Re: First person view
« Reply #10 on: November 17, 2015, 10:13:52 am »
Where I can find that rendering in the code? It looks quite interesting!

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: First person view
« Reply #11 on: November 17, 2015, 05:26:44 pm »
BattlescapeState::saveVoxelView()

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: First person view
« Reply #12 on: November 17, 2015, 06:59:02 pm »
I really don't think a transition for 3D would be that bad for X-Com. Every tile sprite could just get its own model. The only problem is it might be hardware-intensive to render hundreds and hundreds of models at once.

...And finding enough slave-workers to make the 3d meshes and textures for all that :) I wouldn't mind a real-time rendition like Daiky did, to make realistic lighting, for example, but... I prefer nice pixel over ugly 3d any day of the week. I still cringe remembering that XCom clone done on Quake 2 engine... Plus moving to 3d would increase workload needed to add any item/unit into the game by a factor of 10.

Offline Vakrug

  • Colonel
  • ****
  • Posts: 272
    • View Profile
Re: First person view
« Reply #13 on: July 02, 2023, 04:41:53 pm »
First Person View is definitely an awesome feature, but with one notable drawback. There is a quite few clicks to be done in order to actually see the resulting .png file. Even when it is a good time to check line of fire, often I am too lazy to press F10, navigate to save folder and open the .png file. But I recently found a solution that I want to share with others!

With IrfanView Graphic Viewer (https://www.irfanview.net/) it is possible to set your hotfolder to your save folder (Options -> Hotfolder (watch folder) ) and press start. After that each time a new picture is generated in this folder will be immediately seen in IrfanView. No additional clicks required.

Offline Stoddard

  • Colonel
  • ****
  • Posts: 485
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: First person view
« Reply #14 on: July 02, 2023, 09:37:36 pm »
It can be made to show the view in-game, so none of this dance with external image viewers. It isn't even hard to.

Question is - who is bored enough to code this?