PDA

View Full Version : smooth and solid



kryton9
25-04-2007, 05:54
I was wondering how can I switch from smooth render to solid render with tbgl? I know in thinEdge you can do it and also with the thinViewer, but I don't know how to do it in tbgl. I also know you can set it when first loading a model, but I wanted to switch on the fly while viewing to see the difference. Thanks in advance.

In case you are wondering, I am taking a break on modeling for a day or 2 to get fresh eyes so I can see what looks good and doesn't with what I have been working on. So trying to refresh what I already forgot about programming in tbgl, which is a lot. Thank goodness there is help and the forums and your tutorials.

Petr Schreiber
25-04-2007, 13:00
Hi kryton,

just use this for smooth normals:


tbgl_m15RecalcNormals modelID, %TBGL_NORMAL_SMOOTH


... and this for exact normals:


tbgl_m15RecalcNormals modelID, %TBGL_NORMAL_PRECISE


You can also use optional third parameter ( string ) containing name of layer. In such a case only specified layer will be affected.


Hope this is what you need,
Petr

kryton9
25-04-2007, 20:40
That is it, thanks Petr!!