Author Topic: Ghost polygons caused by a model being smoothed!  (Read 2647 times)

0 Members and 1 Guest are viewing this topic.

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Ghost polygons caused by a model being smoothed!
Kazan tells me the PCS2 mantis has basically retired - but he's willing to set anyone currently supporting it as developers and an admin -> http://ferrium.org/mantis/view.php?id=94

After hours of crazy debugging I've finally found the cause of some massive collision errors I've been having lately. When it came down to it, if I set a model as faceted then it would collide correctly, but if it was set as smoothed then it would not. Here's a test pack which includes a smoothed and faceted DAE, then everything you'd need to see it in-game. (Simply load the mission and fly around inside the cylinders trying to run into the walls. The smoothed one has holes everywhere while the faceted one is rock solid)

http://www.mediafire.com/?7x2wt8j9jjacpps

This is a bit of a block to 2 models, one of which is rather...major! :(
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 z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Ghost polygons caused by a model being smoothed!
1. The thing is non-manifold
2. Uhhh... when I imported it to .Max, I did not see any smoothing groups at all, but it appeared smooth on the veiwer  :confused:


Which program are you using and how are you applying smoothing?



Edit:

Um... Are you sure you exported it as an OpenCOLLADA .DAE? I tried importing it into Max as an OpenCOLLADA and got weird smoothing errors, but when I imported it as an AutoDesk .DAE it showed up just fine.
« Last Edit: February 17, 2011, 09:48:07 pm by z64555 »
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Re: Ghost polygons caused by a model being smoothed!
Neatly done open-manifold should not be a problem. Both are non-manifold but only the smoothed one has collision problems. To check though I made a smoothed closed-manifold version (attached) and tested that. Same issue.

I'm using blender and it's export script for DAE- and it does smoothgroups at the most base level - by splitting the 'smooth groups' off into separate groups of polygons. (It's actually more powerful than defining smoothgroups but must be applied before exporting which often gets forgotten!).

The issue here is either going to be: how this kind of DAE stores smoothed data as opposed to faceted data, and/or how PCS2 interprets that. I can't find any pattern to what specific smoothed geometry generates the error. :(

[attachment deleted by ninja]
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 z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Ghost polygons caused by a model being smoothed!
There is... just, something seriously messed up with your exports...

I managed to fix the smoothing it by converting it to an editable patch and then back to a mesh, and then re-applying auto-smooth to all of the faces.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Ghost polygons caused by a model being smoothed!
That seems to happen to a lot of models (especially older ones) when imported from .dae in max.  Smoothing and even UVs look bad until you convert from poly to mesh and sometimes back in max.  Heck I've had a few that were even fixed by doing a multires with no changes and collapsing.  No idea why it happens but I have not seen it on any newer models. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Ghost polygons caused by a model being smoothed!
I've been making the assumption that, if I can't import the .DAE into Max correctly, then importing the same .DAE into the POFCS2 will result in the collision errors that VA is experiencing...
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: Ghost polygons caused by a model being smoothed!
Try a new build.

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Re: Ghost polygons caused by a model being smoothed!
Duuude! :O

Spicious strikes again! Bugs beware! :D

Yeah that solved the issue perfectly - what did you change?
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 Spicious

  • Master Chief John-158
  • 210
Re: Ghost polygons caused by a model being smoothed!
Calculate polygon normals from the perpendicular of two sides instead of averaging vertex normals.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: Ghost polygons caused by a model being smoothed!
Could this issue be related to missing polies in resmoothed Steve-O's fighters?

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: Ghost polygons caused by a model being smoothed!
I doubt it. I think that was pretty much a BSP generation issue.