3DS Loader does not smooth mesh normals?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: 3DS Loader does not smooth mesh normals?

Post by robmar »

Its not a disk sopace issue, its a run-time issues, and that will make it all load slower, first the software will have to decompress it, then load it!
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: 3DS Loader does not smooth mesh normals?

Post by hendu »

Do try the other binary formats, as mentioned. Your list wasn't complete, ms3d, x, etc can be loaded too.
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: 3DS Loader does not smooth mesh normals?

Post by robmar »

Okay, will work my way through them!! :)
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: 3DS Loader does not smooth mesh normals?

Post by robmar »

Was wondering if anyone got smoothing working with 3ds?
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: 3DS Loader does not smooth mesh normals?

Post by Mel »

Irrlicht should create a mesh which welded the vertices shared through the smoothing groups, and recalculated the normals accordingly. That information isn't stored per vertex, but per face, so it is not that easy.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: 3DS Loader does not smooth mesh normals?

Post by robmar »

Have only gone thro the obj loader so far, but the 3ds loader must use a similar process no?

Not sure if I have this correct: each vertex has a normal, but when rendering pixels, we need normal to smoothly change between the vertices in the correct direction.

So recalculating the normal... now does that help smoothing, doesn´t it need the shader to modify the normal between vertices?
Post Reply