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

0 Members and 2 Guests are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
ok - the golgotha issue probably is just it taking ages - hopefully what i'm going to do next solves that

the crashing ones i need though
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline BlackDove

  • Star Killer
  • 211
  • Section 3 of the GTVI
    • http://www.shatteredstar.org
POF Constructor Suite 2.0 Loads its first model!
Ask the trio, maybe they give it to you. I don't really hold any authority with the stuff, until told otherwise.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
well replacing std::vector and std::string with my own replacements didn't really speed things up - but it does make debugging a lot easier :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 Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
it didn't speed things up, but it did reduce the memory usage significantly [it was using up 34megs the other day when a capship from wcs was loaded]
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!
i've located the bottleneck PMF::LoadFromPOF to be entirely the subobjects
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!
if I were you I'd make my own array class, though I beleive most of the slow down with std::vector is in debug mode and it goes away in release.
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!
yeah i wrote my own vector and string [the string actually inherits a kaz_vector as a parent class :P]

I've located the bottleneck to be the geometry translation and i have an idea in how to speed it up
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!
holy mother of optimizations :D

I made it load POFs [translating a POF to PMF] almost as fast as PCS 1.x can load a POF

i changed the manner in which it parses the BSP

play with the attached version :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 Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
POF Constructor Suite 2.0 Loads its first model!
That's odd. It seems to crash upon trying to load 90% of the [v] ships. It spits out the message 'You have selected a non-supported file format' and then crashes completely. Out of all the [v] ships, it only works on the medusa, ursa, osiris, nephilim, (cargos 01, 03, 04, 05, 06), shivan gas miner, anuket, alastor and the terran support ship(looks like its the FS1 version, not the hygeria).
Every other [v] ship crashes it, and i don't see a pattern. :\

It does however now load even HTL ships like the fenris almost instantaneously, so thats cool. :D

Quote
hehe - blender doesn't crash itself - it just crashes other applications because the truely nasty output is
Nasty output? It exports dxf - there isn't a lot that can go wrong there, unless the user creates dogey geometry (blender makes no attempt to fix it - it just assumes you know what you're doing). ;)
Oh yes, and it has it's own source code project, so chances are whatever it is that caused problems originally has been fixed by now. :)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
vasudan: the geometry blender outputs is nasty

"You have selected a non-support file format" only occurs if
strtr(filename, ".pmf") == NULL
strtr(filename, ".pof") == NULL
strtr(filename, ".cob") == NULL
strtr(filename, ".fof") == NULL

[checks are done in that order]

[edit] ok .. i can reproduce that bug.. OH i think i know what it is... grr

i'm using a case-sensative string check.. bleh mesa stupid
« Last Edit: August 23, 2005, 08:44:10 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 Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
POF Constructor Suite 2.0 Loads its first model!
lol, yep, there's the pattern. Good to know it wasn't serious. :)
One small request though, could you get the open file screen to default to .pof or even better, an 'all supported formats'? That'd be cool. :)

And what exactly is nasty about blenders dxf's? I really have never encountered a problem in 3-4 years of usage, and for the past year, these have include some extremely complex models. In fact, when a PCS conversion crash is caused by a geometry error, it's always a model that i attempted to make using only TS. ;)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
blender outputted nasty polydata - that was it's problem

if it could find a way to break the BSP constraints it would
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!
nevermind
« Last Edit: August 23, 2005, 09:49:59 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 Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
POF Constructor Suite 2.0 Loads its first model!
Hmm, after looking it up on the blender forums, it appears that in older versions, if boolean operations were used it could cause BSP problems in various games due to a 'cheesy original implementation'. It's been fixed in the more recent versions, but it's not really a problem in general anyway because you rarely if ever need to use bools.
However, i can see how it would be an easy thing to do if you were used to using bools in other modelers, and were using an old version. ;)

Either way, it works now, and so if you model stuff right, blender'll output it right. :)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
you should be using booleans to reduce polygons counts a lot
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
POF Constructor Suite 2.0 Loads its first model!
For the sorts of modeling i do and what blender is suited to, they'd have the exact opposite effect i'm afraid. :)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
POF Constructor Suite 2.0 Loads its first model!
i still don't trust blender farther than i can throw a car - it remains on my blacklist
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

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

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
POF Constructor Suite 2.0 Loads its first model!
Well, as long as you don't code anything in that would hunt down blender models and crash on them (how that would work i don't know, but meh :D ), i highly doubt you'll get any complaints that come because of blender. If you do tho, defer them to me, and i'll take a look into it. :)
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
POF Constructor Suite 2.0 Loads its first model!
just tested it out, it took me a while to find a model that would load, but when it did I must say, new renderer++. defenately a step in the right direction. though there seems to be a minor issure with lighting and scaleing.

are any of the editing capabilities ready? I selected edit on just about everything and nothing poped up, didn't know if they were ready or not yet. how are the edit windows going to be implemented? it seems to me like the best thing to do would be to have the lower portion of the screen become an edit pane. and what of drag and drop capabilities? can/will items of the same type be move/copied from one place to another (one missle point from one bank to another one vector from one section to another)? and what ever you do, don't forget to add a 'copy' comand to everything. as you are implementing stuff, you should put int new, delete copy. copy is ten times as useful as new.

once you get the basic editing capabilities done, might I sudgest you implement a ray picker, would make selecting and placeing of stuff much easier.
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 WMCoolmon

  • Purveyor of space crack
  • 213
POF Constructor Suite 2.0 Loads its first model!
Will there be a linux build soon? :D
-C