Welcome to Dream.In.Code
Getting Help is Easy!

Join 98,767 Programmers for FREE!. Ask your question and get quick answers from Dream.In.Code experts. There are 1,044 online right now! We're the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert

Register to Make This Box Go Away!


Calculate Smoothing Groups Algorithm

 
Reply to this topicStart new topic

Calculate Smoothing Groups Algorithm

gooky
post 30 Apr, 2008 - 03:17 PM
Post #1


New D.I.C Head

*
Joined: 30 Apr, 2008
Posts: 1

Hi there

I want to convert an obj file into an ase file without using 3dsmax. The obj file only contains vertices and triangulated faces. The ase file should contain vertices, faces AND smoothing groups. The smoothing groups should be applied in the same manner as 3dsmax when using the auto smooth function on an object with treshold = 30 degrees.

At first I thought it was straight forward. I
1) load the obj file
2) calculates normalized normals on all faces.
3) if two faces share normals that has an angle below 30 degress, they go into the same smoothing group, else seperate ones.
4) save ase file

After doing this, I found out that I get a lot of smoothing groups (more than the 32 available). Furthermore some edges are still smoothed even though the faces on both sides of the edge are contained in different smoothing groups (e.g. smoothing group 2 and 3). That makes me wonder if I have understood the smoothing group term correctly?

What would be the correct way to calculate the smoothing groups similar to the ones calculated in 3dsmax?

Thanks a lot in advance.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 7/20/08 03:36PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month
-->