Author Topic: Depth of Field Revisited  (Read 13084 times)

0 Members and 1 Guest are viewing this topic.

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Uhh.... yeah.

Just was speaking to Kazan about this issue - he suggested that perhaps the problem is not that the perspective in-game is wrong, but that the ships really are smaller than reported. We all know that 20 TS units are translated into 1 FS unit during conversion of a model, so perhaps the ships in FS2 are actually 20 times smaller than they should be. :eek2:
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Carl

  • Render artist
  • 211
    • http://www.3dap.com/hlp/
well, in that case, do what i suggested earlier.
"Gunnery control, fry that ****er!" - nuclear1

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Ok, I think I figured out the problem, with Kazan's help.

I took my test scene, which had models accurate to the meter, and scaled them down 20x. Then I took a 45 degree (~43mm) camera, and walla - the Deimos and Fenris looked exactly the same as they do in-game - same perspective, same apparent size, everything. (I'll post a screenie in a few minutes.)

So basically, FS2 renders "meters" as 20 times smaller than they should be. While this does not affect ship interaction or anything, it does affect the simulated FOV/lens diameter.

So I scaled the test models back up 20 times, and  suddenly it was almost realistic. The problem was that the camera made things seem too close for the distance, like it was zoomed in. So I changed the camera to a 35mm (FOV 54), and finally, the 747 looked like I was standing there, in person, looking at it.

So now the question remains: is there any way in the code to deal with this 20x scaling issue? Because if we can do that all in the code, without having to reconvert any models, then that's 90% of the problem solved right there. The other 10% would be setting the default FS2 FOV to be 54 instead of 45.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Hmm...there should be a way to do it in the code...
It seems logical (just use every coordinate parameterx20)
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Odyssey

  • Stormrider
  • 28
[color=cc9900]Sandwich, I saw the difference, I was just trying to explain how in the real world what you had been showing was not physically possible, and that something had gone wrong somewhere.
But, anyway, now you've found the problem, it's a moot point eh?[/color]

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
So, out of curiosity, how can we fix the problem? Fix the 20x scaling Sandwich mentioned, or what?

I ask, because, well, I've just started replaying Tachyon: The Fringe again, now that I have a decent stick. They got the whole scale thing exactly right: flying along the surface of a giant station feels like you're  a very small person in a very large world. Interestingly, fighters that are far away are very small and very hard to hit. Shocking.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
YESSSS!!
See what people can accomplish when they put there minds to it!!
Hope it can be fixed.:)
We are not worthy :thepimp:
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline terren

  • 27
Any clue when we could expect this?  It would be nice to see the ships actual size :)

also that comparasin with the galaxy class starship, it realy makes me want to go against them.  Ulisses vs defint, that would be a fun battle.
Proud user of wings 3-D

                 
Mad? Oh yes quite mad.

 

Offline KARMA

  • Darth Hutt
  • 211
    • http://members.fortunecity.com/aranbanjo
Quote
Originally posted by Odyssey

[color=cc9900]Bummer, he's got further than me... Ah well, I'll stop then. Only half an hour lost ^_^ I really ought to check long threads more often, but it's so much nicer when cool stuff goes in individual threads.[/color]

don't give up odyssey:
I'm not 100% sure about how my model will work in game, due to the way I built it, so if it will have problems, there still will be yours.
Plus, this could be the chance to have 2 diffetent models for fenris and leviathan

 

Offline Flaser

  • 210
  • man/fish warsie
BTW some graphics guru/animeka could make a comparision chart showing an average human (180 cm) and some fighters next to each other.

That could come handy for designers whenever they want to scale things properly - not to mention if someone tried to do internal design for a ship.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
Well, that's nopt exactly it, but you can try that already:
http://www.merzo.net/index.html
Anyway, what I do is just build the ship around the cockpit, then it's no biggie to scale the ship according to a human.
SCREW CANON!

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Well...if eversthing else fails one can allways re-scale all the ships....
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Quote
Originally posted by Flaser
BTW some graphics guru/animeka could make a comparision chart showing an average human (180 cm) and some fighters next to each other.

That could come handy for designers whenever they want to scale things properly - not to mention if someone tried to do internal design for a ship.







Those decks are 2.5 meters high.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
:nervous:

Did we ever get further than this?
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
I guess not, since those pics are ollllllllld :p
SCREW CANON!

 

Offline Sticks

  • 29
If someone wants to run through the code and multiply by twenty EVERY time a distance or coordinate is used, be my guest. You should only have to change about 2000 or so lines, provided you can find them all.
"Napalm is good as a quickfire solution, literally..." -- cngn

"Shh... [Kazan's] schizophrenia allows him to multitask." -- Goober5000

Why am I still coding at 12:35am?

SCP: Templum sanctus ingeniosus

 

Offline Kamikaze

  • A Complacent Wind
  • 29
    • http://www.nodewar.com
I think that although implementing this now may be hellish and should be put aside, it should be put on the wishlist for Fe2.
Science alone of all the subjects contains within itself the lesson of the danger of belief in the infallibility of the greatest teachers in the preceding generation . . .Learn from science that you must doubt the experts. As a matter of fact, I can also define science another way: Science is the belief in the ignorance of experts. - Richard Feynman

 

Offline Flipside

  • əp!sd!l£
  • 212
I'd do it if I knew what I was looking for and how :D

 

Offline mnftg64

  • 27
how about those screenies of you seeming to stand at the 747 renders sandwhich? I would like to see how you figured out the problem.

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
It's simply a 28mm lens with the objects all scaled to the proper sizes.

The line of tanks goes back to directly under the 747.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill