Author Topic: Deferred Lighting Open Beta 6 (17/11/12)  (Read 44846 times)

0 Members and 1 Guest are viewing this topic.

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Deferred Lighting Open Beta 3 (25/07/12)
I guess I was a bit unclear. What I called the "centerpoint" would be more accurately described as the pivot point, which is a property that can be set and manipulated in a modelling program.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Deferred Lighting Open Beta 3 (25/07/12)
My mistake. I had automatically mistranslated with "bounding box centerpoint".
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Nighteyes

  • 211
Re: Deferred Lighting Open Beta 3 (25/07/12)
won't it be easier to simply edit invisible glow points? one for position and starting radius, and the second for projection direction and end radius... its better to leave these things for PCS2 IMO

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Deferred Lighting Open Beta 3 (25/07/12)
Won't give you shapes different from truncated cones. And E's option would be just as easy as setting up modeled thrusters, from what I understood. Even easier since the mesh doesn't have to be UV'd.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Crybertrance

  • 29
  • Conventional warheads only, no funny business
Re: Deferred Lighting Open Beta 3 (25/07/12)
Umm, okay, think I found an artifact.

I cant get a clear shot but if you zoom in, you can see a pixellated white light when the Cruiser is shot by lasers. Its quite noticeable in-game.

e: using HD 5770 (ATi)

e2: using the beta3

[attachment deleted by a ninja]
<21:08:30>   Hartzaden fires a slammer at Cybertrance
<21:09:13>   Crybertrance pops flares, but wonders how Hartzaden acquired aspect lock on a stealth fighter... :\
<21:11:58>   *** The_E joined #bp [email protected]
21:11:58   +++ ChanServ has given op to The_E
<21:12:58>   Hartzaden continues to paint crybertrance and feeding the info to a wing of gunships
<21:14:07>   Crybertrance sends emergency "IM GETING MY ASS KICKED HERE!!!!eleventy NEED HELPZZZZ" to 3rd fleet command
<21:14:50>   Hartzaden jamms the transmission.
<21:14:51>   The_E explodes the sun

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Deferred Lighting Open Beta 3 (25/07/12)
i dont see it.

Also on the topic of meshes. You WILL only be able to define cone lights mesh defined light ranges will not be possible.
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Deferred Lighting Open Beta 3 (25/07/12)
Right. Then something along the lines of Nighteyes's idea might be more convenient.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Deferred Lighting Open Beta 3 (25/07/12)
This is probably more visible:

[attachment deleted by a ninja]
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Deferred Lighting Open Beta 3 (25/07/12)
WHAAAAAAT THEEEEEE FUUUUUUUUUUUUUUUUUUUUUUUUUUCK
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Deferred Lighting Open Beta 3 (25/07/12)
heres the thing. the glow point chunk stored in the model allows you to set the following:

displacement time (float)
on time (float)
off time (float)
parent subobject (int?)
lod (int?)
type (int)
properties (n-length string)

and an n-element array (for each point) of
 position (vector)
 normal (vector)
 radius (float)

now the type field was originally used to define 0=points, 1=beams. this being an int value can have many other values. i was kind of disapointed that other glowpoint styles had not been defined. what you can do is maybe 2 = point light emission source, 3 = conic emission, or 4 = light shaft. im assuming this is an 8-bit int, but if its a 16 bit int you might allocate the msb to emission type, and use the lsb for glow-point type meaning any glowpoint could have any emission type. the structure would be essentially the same. if the value of 0 is no light emission, then it would be reverse compatible with older models. the only data the system really lacks is a place to put a color value. you can stick that in properties.

another (less hackish) idea is you set up a table for glowpoints, which defines bitmap used, how bitmaps are rendered, what kind of light emission is used, what color is the emission, other effects like flickering or color ramping effects, etc. everything but where it is, where it points, and how big it is (which is defined by the glow point chunk). you can then reference a glowpoint table entry with the type field (though it may be more intuitive to add a tag to the properties string to specify an entry by name instead). the default table would only specify the first to entries taken up by type 0 and 1. if you override these with a new table you could enable light emissions from existing glowpoint types without model tweaks! and if thats not enough you can always define new glowpoint types in the table.

actually now that i think of it the latter paragraph sounds like the better idea, its less hackish and lets us use the feature immediately with a small table and without major model surgery. i would also open this up to scripting so that script defined lighting effects could be done.
« Last Edit: July 26, 2012, 04:21:03 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Deferred Lighting Open Beta 3 (25/07/12)
The table thing was my first idea when i was implementing it too but then i found out its not possible to uniquely identify glowpoint banks other than by the order they are in the model. I mean if we say
$Model: blabal.pof
$BankNum: 1
Properties....
$BankNum: 2
...
etc we could do it but same problem with the direction of the spotlights. i mean if you guys would be alright with defining it as a vector in model space i can do that. it just feels kinda of user or modeler unfriendly. Best thing of course would be an upgrade to pcs2 where you can actually do spotlights in the thing and do all the direction angle and radius stuff in pcs2 with a rendered wireframe cone so you can see the thing and everything. I dont know how possible that would be tho.

EDIT: also how would individual glowpoints(lights) be handled it adds another level of non identifyability (without going to the index number again) to this problem
« Last Edit: July 26, 2012, 08:37:59 pm by Valathil »
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Deferred Lighting Open Beta 3 (25/07/12)
i was thinking more of doing that in reverse. glowpoints remain the same, the contents of the table is more for lighting presets. sort of like

$glowpoint preset: Shivan Glowy thing
 +bitmap: some.bmp
 +type: point ;spot ;shaft ;etc
 +light color: 255 0 0
 ...

this would be a global table and goes somewhere relevant. probibly not in the ships table because you could use them for weapons and other models as well. then in your glowpoint properties you have:

$use preset:  Shivan Glowey Thing

where the position, size, direction come from the glowpoint in the array. the actual indices are hidden from the user. and you dont have to deal with a bunch of vectors in the table either (autogen ftw), just what the lighting effect looks like. if you need to use more than one preset then you need to create a glowpoint banks for each one of those. if you have a bunch of identical glowpoints, you can just throw em all into one bank. as for object space vectors, modders have to deal with them on a regular basis anyway, so i really dont mind that.

« Last Edit: July 26, 2012, 09:26:00 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline mjn.mixael

  • Cutscene Master
  • 212
  • Chopped liver
    • Steam
    • Twitter
Re: Deferred Lighting Open Beta 3 (25/07/12)
Hmm, I like this idea. Less resaving POFs every time you want to tweak a glowpoint light.
Cutscene Upgrade Project - Mainhall Remakes - Between the Ashes
Youtube Channel - P3D Model Box
Between the Ashes is looking for committed testers, PM me for details.
Freespace Upgrade Project See what's happening.

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Deferred Lighting Open Beta 3 (25/07/12)
Hmm that sounds good yeah. So make a glowpoint.tbl and throw all the stuff in there. Sounds resonably simple. I'll try to whip up something in a few days i'm currently working on shadows again cause ATI is really starting to piss me off with the artifacts cause I CANT ****ING DEBUG IT ON MY OWN cause I don't have an ATI card and im not in the right sleep cycle to work together with Swifty or The_E.
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Deferred Lighting Open Beta 3 (25/07/12)
So basically, if I understand correctly, we would not put stuff in the glowpoint properties anymore, but we would change the Type field to point to an index in a table that has all the required info ?
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Kolgena

  • 211
Re: Deferred Lighting Open Beta 3 (25/07/12)
Just curious: how big are the differences between how ATi and nVidia handle opengl? It seems that half the great stuff you put out can't be run properly by ATI hardware.

 

Offline Valathil

  • ...And I would have had a custom title if it wasn't for you meddling kids!
  • 29
  • Custom Title? Wizards need no Custom Title!
Re: Deferred Lighting Open Beta 3 (25/07/12)
I don't know exactly what is the problem with ATI. EITHER they take the OpenGL spec TO THE LETTER and NVIDIA is more lax and do some extra error prevention stuff and i do some things wrong OR they are the lax ones and cause errors by that. Also in part is because i dont develop on ATI hardware, maybe if it was the other way round ATI would be fine and i get tons of problems on NVIDIA hardware who knows.


This is for The_E: http://www.mediafire.com/?sub1zf0wjo98i8o he knows what to do.
┏┓╋┏┓╋╋╋╋╋╋╋╋╋┏┓
┃┃╋┃┃╋╋╋╋╋╋╋╋╋┃┃
┃┃┏┫┃┏┳━━┓┏━━┓┃┗━┳━━┳━━┳━━┓
┃┃┣┫┗┛┫┃━┫┃┏┓┃┃┏┓┃┏┓┃━━┫━━┫
┃┗┫┃┏┓┫┃━┫┃┏┓┃┃┗┛┃┗┛┣━━┣━━┃
┗━┻┻┛┗┻━━┛┗┛┗┛┗━━┻━━┻━━┻━━┛

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Deferred Lighting Open Beta 3 (25/07/12)
I've done a short test and it looks amazing. Any plans to extend the effect to ship (and maybe even missile) thrusters?

 

Offline Kobrar44

  • On Suspended Sentence
  • 29
  • Let me tilerape it for you!
    • Steam
Re: Deferred Lighting Open Beta 3 (25/07/12)
Features will be added once whole thing works correctly.
Oh guys, use that [ url ][ img ][ /img ][ /url ] :/

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Deferred Lighting Open Beta 3 (25/07/12)
For ship thrusters, nothing prevents you tu put an invisible glowpoint there.

...which means you've got to link it to the engine submodel so it doesn't keep emitting after the ship is disabled. If the ship actually has submodels for its engines. Yeah.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie