Author Topic: POF Constructor Suite 2.0 Loads its first model!  (Read 45223 times)

0 Members and 2 Guests are viewing this topic.

Offline BlackDove

  • Star Killer
  • 211
  • Section 3 of the GTVI
    • http://www.shatteredstar.org
POF Constructor Suite 2.0 Loads its first model!
Quote
Originally posted by Kazan
since posting that build i fixed a crashing bug related to the POF file having zero PINF strings [load the Charon in 1.x and check if it has zero strings BlackDove, if that is it then right there is why it was crashing]
 


Charon won't load at all. But that's beside the point really. I maybe don't have the textures proper and the paths done as you said, considering I didn't understand what I'm supposed to do with em.
« Last Edit: August 27, 2005, 09:57:48 pm by 461 »

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
PCS 1.x won't load the charon? then how did you convert it :P
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
POF Constructor Suite 2.0 Loads its first model!
I've been testing out some TBP models with it.  The B5 model and Ja'Stat models cause it to CTD.  While *another* model causes a windows error and crash.  Same with Hyperion model.  The Midwinter model resulted in this error:

The instruction at "0x0d5f15e0" referenced memory at "0x00000004".  The memory could not be "read".

My second time trying the Midwinter resulted in a simple crash error.  Same for Omega, but the OmegaX openned fine.  The Shadow craft, the Shn'Tan, Zephyr, and the Th'Nor have no textures displayed at all.  The Vorchan merely lacks textures on the multi-part twin-barrel turrets, while the Avioki only has textures on its pylons and nowhere else.  Any jumpgate, whether it be EA or Narn, single arm or pre-configured, all cause a crash error.
« Last Edit: August 27, 2005, 10:15:25 pm by 1268 »
The Trivial Psychic Strikes Again!

 

Offline BlackDove

  • Star Killer
  • 211
  • Section 3 of the GTVI
    • http://www.shatteredstar.org
POF Constructor Suite 2.0 Loads its first model!
Don't ask me dude, I just try to open the thing and I tell you if it works  or doesn't :p

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
OK tp.. ill try and load b5 with her
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
POF Constructor Suite 2.0 Loads its first model!
TP: are the missing textures animated textures?


one crash source located on B5... she crashes after trying to render the first time.. trying to locate that crash now

two crash bugs fixed thanks to b5.. but she freaks the lighting system out :D

[edit again]
oh meng.. it's not flipping out the lighting system - DDS textures are generating an IL_INVALID_FILE_HEADER error..

[edit yet again]
yep... size2 != 32.. hrm.. /sigh.

DDS support = null then

nope... Paint Shop Pro 9 won't open those DDS files either... something  is wrong with them
« Last Edit: August 27, 2005, 10:54:03 pm by 30 »
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
POF Constructor Suite 2.0 Loads its first model!
man-oh-man bsp generation is shot... this is going to be a nightmare to debug.. an absolute nightmare.


i may just rewrite it from scratch possible if i can understand the data 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 Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
ok i don't have to make sense of prelist, postlie and online - they never put anything on them.. sweet :D

so it really is a binary tree

oh.. and kiss flatpolygons goodbye
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
POF Constructor Suite 2.0 Loads its first model!
pre list and post list I can understand, but they didn't use the on list!?! is that even posable?

oh and goodbie flat polies, you won't be missed.
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 Constructor Suite 2.0 Loads its first model!
explain prelist and post list - the only list being used by either V's generator or my origional one was the front list and back list

[edit]
get on ICQ! :D
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
POF Constructor Suite 2.0 Loads its first model!
I mean I can understand them not being used, isn't the on list needed the pollies that get intersected by the split plane.

I don't have IQC installed currently, and I'm planning on sleeping soon
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 Constructor Suite 2.0 Loads its first model!
ok.. i think i can handle this (only one poly should be in the "onlist" from what i have read and that is the poly you use to postion the list if you choose so - otherwise you should "cut" the polygon in two and place one half on each side)
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
"You got GMail Kazan!"


I sent ya like 5-6 .pofs that I made screensots of in game and that work just fine. Some were made with pcs1, I bet other were made with modelview or high poly pof2 cob (not sure cant rememebr but if you need more later I do have lots of pcs1 only models to send you).

I figure if you can see how other ones were converted maybe it will spark something.

Anyway how about a remember size window feature so I dont have to resize teh window each time I opena model while the program is running? Also teh NEW button doesn;t erase teh current loaded one. Will you add a support for glow maps so you can see what teh final model will look like in game? L8tr!
"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
i'm doing calculus at 3am - somebody shoot me :D
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
POF Constructor Suite 2.0 Loads its first model!
*StratComm pulls out rifle*

Glad I'm not the only one up late :p

BTW, you should look in the Ferrium internal when you get a chance.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
once i get done with the calculus of this method of BSP splitting and make it work it should be more difficult to send her into infinite recursion - because then it will take literally two copys of the same polygon to set her off
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
POF Constructor Suite 2.0 Loads its first model!
It needs geomodding!!! :p
-C

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
rotfl

cutting a polygon with a plane is bad 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 Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
hey bob.. check my code

Requires: polygon to actually be bisected by plane
Expects: polygons to be a triangulated mesh


Code: [Select]

void SplitPolygon(kaz_vector &polygons, int polynum, vector3d plane_point, vector3d plane_normal)
{
kaz_vector splitpolys(2); // 0 = front vert, 1 = back vert
kez_vector pairs;
kaz_vector points;
pairs.resize(polygons[polynum].verts.size() * 2);
pcs_vertex temp;
int i, j = 0;;
float uvdelta;

        // using a pairs list cuts down on having a special-case
for (i = 0; i < polygons[polynum].verts.size() * 2; i += 2)
{
pairs[i] = j % polygons[polynum].verts.size();
pairs[i+1] = j+1 % polygons[polynum].verts.size();
j++;
}

// compile the new list of points
for (i = 0; i < pairs.size(); i += 2)
{

if (DistanceToPlane(polygons[polynum].verts[pairs[i]].point, plane_point, plane_normal) == 0.0
|| DistanceToPlane(polygons[polynum].verts[pairs[i+1]].point, plane_point, plane_normal) == 0.0 )
// one of these points lays on the plane... add them both without modification
{

AddIfNotInList(points, polygons[polynum].verts[pairs[i]]);
AddIfNotInList(points, polygons[polynum].verts[pairs[i+1]]);
}
else // neither of them was not on the plane.. are they on the same side?
{

if (InFrontofPlane(polygons[polynum].verts[pairs[i]].point, plane_point, plane_normal) ==
InFrontofPlane(polygons[polynum].verts[pairs[i+1]].point, plane_point, plane_normal))
// both on same side - add them
{
AddIfNotInList(points, polygons[polynum].verts[pairs[i]].point);
AddIfNotInList(points, polygons[polynum].verts[pairs[i+1]].point);
}
else
// different sides - cut and add
{
uvdelta = FindIntersection(temp.point, polygons[polynum].verts[pairs[i]].point,
polygons[polynum].verts[pairs[i+1]].point, plane_point, plane_normal);
temp.norm = polygons[polynum].norm;
temp.u = uvdelta * (polygons[polynum].verts[pairs[i]].u - polygons[polynum].verts[pairs[i-1]].u);
temp.v = uvdelta * (polygons[polynum].verts[pairs[i]].v - polygons[polynum].verts[pairs[i-1]].v);

AddIfNotInList(points, polygons[polynum].verts[pairs[i]]);
AddIfNotInList(points, temp);
AddIfNotInList(points, polygons[polynum].verts[pairs[i+1]]);
}
}
}


// split the polygons with the list we have

int in = 0;
for (i = 0; i < points.size(); i++)
{
if (DistanceToPlane(points[i].point, plane_point, plane_normal))
// there WILL be two points in the list this is true for
{
AddIfNotInList(splitpolys[0].verts, points[i]);
AddIfNotInList(splitpolys[1].verts, points[i]);

if (in == 0)
in = 1;
else
in = 0;
}
else
{
AddIfNotInList(splitpolys[in].verts, points[i]);
}
}

// triangle our new polylist
TriangulateMesh(splitpolys);

// replace our current poly with polygon zero - add the others
polygons[polynum] = splitpolys[0];
in = polygons.size();
polygons.resize(in+splitpolys.size()-1);
for (i = 1; i < splitpolys.size(); i++)
{
polygons[in+i] = splitpolys[i];
}
}
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
POF Constructor Suite 2.0 Loads its first model!
Jumps in front of the field of fire "NOooooooooo!" (Vader Voice)

He's not DONE yet, plus he has to finish Ferrium next!!! (Gose for the Force choke and then rememebrs he is NOT a Sith Lord)...

"Hmmm.... Here's my hand, now CHOKE YOURSELF private!" :D
"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)