Modding, Mission Design, and Coding > FS2 Open Tools

Ghost polygons caused by a model being smoothed!

(1/3) > >>

Vasudan Admiral:
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! :(

z64555:
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.

Vasudan Admiral:
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]

z64555:
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.

FUBAR-BDHR:
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. 

Navigation

[0] Message Index

[#] Next page

Go to full version