part 15926 (eye ball)


Re: part 15926 (eye ball)
#21
Philippe Hurbain Wrote:No taboo, but compatibility must be kept with existing parts and tools! And some new tools/viewers able to use these new possibilities must be available. If you have suggestions...

Yes i think it's not hard at all: you define a new comment extension, that define the (per vertex) normal of the following tri/quad:

0 NORMALS v1x v1y v1z v2x v2y v2z v3x v3y v3z [v4x v4y v4z]

It should always come right before each triangle or quad line.

That's it. Old tools will ignore it and keep calculating their normals, new tools can take advantage and avoid reimplementing complex and buggy smoothing algorithms for the thousandth time.

To sanitize the library i suggest the following:
- Take the best looking smoothing algorithm available today (LDView, i guess)
- extract and refactor the smoothing algorithm code to a tool that spit out normals
- feed the library to the tool to automatically add NORMALS to all tri and quad

Maybe it's a little more complex to take into account subparts etc, but it's still a very easy program.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
part 15926 (eye ball) - by Nicola - 2014-07-07, 20:44
Re: part 15926 (eye ball) - by Chris Dee - 2014-07-08, 5:16
Re: part 15926 (eye ball) - by Nicola - 2014-07-08, 7:26
Re: part 15926 (eye ball) - by Nicola - 2014-07-09, 7:24
Re: part 15926 (eye ball) - by Roland Melkert - 2014-07-09, 17:16
Re: part 15926 (eye ball) - by Travis Cobbs - 2014-07-10, 4:34
Re: part 15926 (eye ball) - by Nicola - 2014-07-14, 9:10
Re: part 15926 (eye ball) - by Tim Gould - 2014-07-20, 8:08
Re: part 15926 (eye ball) - by Roland Melkert - 2014-07-20, 16:03
Re: part 15926 (eye ball) - by Roland Melkert - 2014-07-20, 19:06
Re: part 15926 (eye ball) - by Tim Gould - 2014-07-20, 19:17
Re: part 15926 (eye ball) - by Nicola - 2014-07-21, 7:43
Re: part 15926 (eye ball) - by Travis Cobbs - 2014-07-22, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)