Smoothing folds

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Smoothing folds // Archive: Tech Forum

1  |  

Post by weaveribm // Jul 4, 2008, 3:10pm

weaveribm
Total Posts: 592
Is there a way to smooth these very sparkley facets for a piece of cloth (using ClothMotion) please?

I'm sure that faces like this can be much smoother and more clothlike in TS but I'm not sure what I'm looking for. The cloth here is a simple plane object quad-divided with no thickness. I've tried FSAA and unsuccessfully nurbs. If I keep quad-dividing (the logical progression to get rounder folds) ClothMotion doesn't like it. I think it might be some very basic rendering-thing I'm missing sorry :)

Freshly re-installed 7.5

Peter

http://i117.photobucket.com/albums/o63/Mington/clothfacets.jpg

Post by transient // Jul 4, 2008, 4:17pm

transient
Total Posts: 977
pic
Planes are double sided by default. This was causing me grief in Dribble, maybe clothmotion isn't liking it either?

Post by nowherebrain // Jul 4, 2008, 4:49pm

nowherebrain
Total Posts: 1062
pic
One big debate with cloth is the tesselation/divisions to use, the best and possible only completely planar poly is a triangle. Tringles don't smooth/subdivide well. Unfortunately I have no clear advice on this issue, if you know where you want the folds, then you kow where to divide your mesh...otherways tinker away.....I guess.
BTW: Transient has a good point. just check "single sided" when creating plaes in tS.

Post by Jack Edwards // Jul 4, 2008, 5:12pm

Jack Edwards
Total Posts: 4062
pic
This is an issue with normals. Did you set the material to smooth?

If it is, then it could be that the normals are not being recalculated based on the changed positions. So you need to resmooth after each frame.

Post by kena // Jul 4, 2008, 7:40pm

kena
Total Posts: 2321
pic
the way I fixed that with my tablecloths way back when was to turn the polygons from squares to triangles:


13088

Post by weaveribm // Jul 7, 2008, 1:34am

weaveribm
Total Posts: 592
Thanks all, triangles will do- Jack can I ask you for more on these please?

Did you set the material to smooth?

How do I set the material to smooth, that sounds good it's default I think

If it is, then it could be that the normals are not being recalculated based on the changed positions. So you need to resmooth after each frame.

Sorry Jack- I know about normals but I don't know how to re-smooth after each frame can you tell me how to do that please?

Peter

Post by TomG // Jul 7, 2008, 2:55am

TomG
Total Posts: 3397
For normals, in Model side (if this is clothmotion then I guess that is where yo uare working) you would change the settings in the shader, for Autofacet. This should allow smoothing to work, you may need to repaint the object after clothmotion is applied to ensure the material is smoothing across all the faces.


You could try using Smooth instead of Auto Facet, try adjusting the Auto Facet angle, or try painting with Faceted just to get a clearer picture of what is going on during testing.


Let us know how it works out!


Tom

Post by weaveribm // Jul 7, 2008, 11:50am

weaveribm
Total Posts: 592
Model side yes Tom, Autofacet that sounds very interesting- I'll let you know how it goes thanks very much for your help all!

I have had smooth TS cloth in another life, it'll be the new Vista x64 install settling in. Fairly amazed that ClothMotion even works :)

Hmm looking closer the cloth is smooth in parts out of the spotlight: beam top right to bottom left.

<starts looking up 'Angle of Incidence'> :)

Peter

Post by Jack Edwards // Jul 7, 2008, 11:53am

Jack Edwards
Total Posts: 4062
pic
As Tom said it's the facet/autofacet/smooth setting on your material.

Unfortunately since cloth motion is a plugin and TS probably isn't updating the normals after the geometry change, you probably have to manually re-smooth the normals (using the material editor) before each frame is rendered out... :(

Post by TomG // Jul 7, 2008, 12:33pm

TomG
Total Posts: 3397
Spotlight leads to another idea, is it using mapped or ray shadows? Mapped can sometimes have odd interactions with a surface. Just a thought, may have no bearing on it.


Thanks!

Tom

Post by Burnart // Jul 7, 2008, 12:35pm

Burnart
Total Posts: 839
pic
Definitely make sure the material setting is smoothed I've also used subdiv prior to rendering and its worked fine.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn