Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Lights and reflections?

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8512
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Lights and reflections?

Post by DaddyHoggy »

Ok having played with Doc's Oo-Hauler and added lights to it and altered the cockpit "glass" a bit two thoughts struck me:

1) The lights don't actually illuminate - they glow but a white panel next to a red light still looks white - there is no reflected light tones from the light source

2) Everybody's flying around in shiny metal ships with shiny cockpit windows but there are no reflections of one object in another

Now, I know from what little experience I've had with OpenGL (1.3 using GLUT many years ago) - OpenGL is quite capable of these things and many quite old games that use OpenGL manage it too (Unreal Tourney, Quake 3 - to name the two I own). So I'm presuming Giles didn't think this was needed - having just noticed myself, he was probably right - but now I have noticed it's kind of quirky!

What does everybody else think? Is it needed? Can it be implemented? Any clever programmers out there able to make the mods?
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2868
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

A "Headlight" as a buyable item?

Would be cool, but think needs a charge to the exe!
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

Giles and Ahruman had a few conversations in the theads about this that went over everyone else's heads.

I think the shader work was meant to do some of this stuff. But shaders can only be guaranteed on the Mac - for instance I have no hardware capable of running Giles shader code.

There might be other ways to do it, like define the materials for the models to use specular lighting or something, but my knowledge of graphics coding isn't up to that stuff. I just leave all the OpenGL code as-is.
Regards,
David Taylor.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Real reflection mapping is a big project. It requires rendering six views of the universe for each object that’s intended to be shiny.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

Hey, you are still here :) Good to hear from you again.
Regards,
David Taylor.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8512
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

@Ahruman - six renderings? Jeez - at that point a lot of people's hardware is going to fall over (possibly mine included - although I call play UnR T and Q3A so possibly not) - and a lot of coding too - how about real lighting then i.e. a game light casts light of the correct colour of objects within a certain range? Any easier?

BTW, you've made the Cap'n very happy - the boy's got Cabin Fever I'm sure of it!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Captain Hesperus
Grand High Clock-Tower Poobah
Grand High Clock-Tower Poobah
Posts: 2310
Joined: Tue Sep 19, 2006 1:10 pm
Location: Anywhere I can sell Trumbles.....

Post by Captain Hesperus »

DaddyHoggy wrote:
BTW, you've made the Cap'n very happy - the boy's got Cabin Fever I'm sure of it!
*ka-click* <opens x10 scope cover> :twisted:

Captain Hesperus
"Look out, he's got a broken milk carton!"
"Look out, he's got a broken candle!"
The Big Bus.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

DaddyHoggy wrote:
how about real lighting then i.e. a game light casts light of the correct colour of objects within a certain range? Any easier?
Probably, but I for one ain’t doing it any time soon.
Post Reply