Author Topic: fighter beams  (Read 35327 times)

0 Members and 1 Guest are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
ba-da bump this thread because it has the GLOW specs - time to go BUG HUNT in POF CS
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
remember I added a type specifier along with the other things in the light groupe structure
sorry my keybord is sticky today
« Last Edit: October 30, 2002, 10:49:02 am by 57 »
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
this has two pofs with the correct glow format

glow groupes have
on time
off time
displacement time
LOD
submodel parent
and now type
these are all ints
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
to be specific, the chunk when veiwed raw (like with a hex editor) is now
(4 bytes) ID //the chunk name, GLOW
(4 bytes) int /size //the size of the rest of the chunk
(4 bytes) int /number of light groupes //how many light groupes are in this model
[for each light groupe]
(4 bytes) int /displacement time //amount of time that this groupe will be displaced from 0
(4 bytes) int /on time //how long this groupe will be on
(4 bytes) int /off time //how long this groupe will be off
(4 bytes) int /object parent //the subobject number that will be asosiated with this groupe, used for linking to destroyable subobject and rotating submodel-not implemented
(4 bytes) int /LOD //how far away will this glow be visable
(4 bytes) int /type //what rendering type, so I can make normal glows and ones that render like a beam<-something I rescently added and isn't in the format listed in this topic
(4 bytes) int /number of points //number of points int this groupe
(4 bytes) int /str length //number of charicters in the preperty string
(str length bytes)  char /properties// the properties string, ie "$glow_texture=$thrusterglow01"
[for each point]
{vector} /pos //the position of the glow point
(4 bytes) float /x
(4 bytes) float /y
(4 bytes) float /z
{vector} /normal //the direction the glow point is pointing
(4 bytes) float /x
(4 bytes) float /y
(4 bytes) float /z

(4 bytes) float /radius/ the radius of the glow point
]next point[
]next groupe[

so the structure is (chunk header (ID and size)  +) 1 int + (the groupe structure wich is 7 ints, 1 string (an int and as many chars as that int says), + (the points structure wich is 2 vectors (3 floats each) and a float) * number of points in the groupe)* number of groupes

Code: [Select]

struct HullLightPoint
{
vector point;
vector norm;
float radius;
};

struct HullLights  
{
int disp_time;
int on_time;
int off_time;
int obj_parent;  
int LOD;
int type;
int num_Lights;
string properties;
HullLightPoint* lights;
HullLights() : disp_time(0), on_time(0), off_time(0), obj_parent(0), LOD(0), num_Lights(0), lights(0), type(0) {}
};

struct GLOW
{
int num_glows_arrays;
HullLights *lights;
};
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
doh.. figured out the crashing - PCS code for it works correctly now - couple general bugs, the crashing was because i was forgetting to add 4 bytes to the chunk size for the num_glow_arrays - i've merged your "int type" into the structure in PCS and im going to add it to the GUI after I get back from Geology...
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
oh... i commited the working GLOW code to CVS last night.
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
much more stable than the last build, but it still has the bug that I had in my "fix", to see what I mean open up the fighter01.pof in that zip I posted, then open up any other pof, it'll crash, or at least it did for me, it's good enough for now though
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
what bug are you talking about.. i couldn't make sense of your babling
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
after opening a model with glow points (more so with more of them) upon opening another file, or saveing more than once, it crashes,

to see what I mean open one of the two pofs in this zip and then open the other
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF CS has _ALWAYS_ crashed when trying to unload/load a new POF.. the POF::Reset() function apparently isn't unloading the data cleanly enough
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
it has!?! :wtf:
*loads up v0.98*
*loads a model*
*loads another*
*notes PCS does not crash*
no it hasn't
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
ok.. w/e i'll hgave to try and find what is crashing
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir