Wow, works great herewmayer wrote:There is a trick to achieve a similar effect.Mean while... I do not know how rendering is done... is it possible to render the inner side of a face with different color and properties? Would it be smaller effort?
In the preferences under Display > 3d view you can enable a backlight and define a different color. If you now select your shape and change its Lighting property from "Two side" to "One side" the inner color changes. However, you still have the shading effect. If you again go to the preferences and switch off the backlight the inner becomes totally black.
Clipping Plane Always Shows Model as a Shell?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Clipping Plane Always Shows Model as a Shell?
- Attachments
-
- screen.jpg (219.39 KiB) Viewed 2520 times
Re: Clipping Plane Always Shows Model as a Shell?
Note that there is something in coin3D specially for that (called "volumetric rendering" I think, in the simvoleon package), that they use for medical 3D. I didn't have a very deep look at it, but it seems to be there exactly for that purpose (to "fill" the display of cut solids). Not sure how usable it would be for us, but it might be worth having a look.
The above trick with black inner faces is what sketchup does, and what the Arch section plane does too. It is not perfect, though, because in some cases you will have coplanar faces with other objects, and you will "see" the front faces of other objects through the black faces...
The above trick with black inner faces is what sketchup does, and what the Arch section plane does too. It is not perfect, though, because in some cases you will have coplanar faces with other objects, and you will "see" the front faces of other objects through the black faces...
Re: Clipping Plane Always Shows Model as a Shell?
I have also read about tricks with the opengl stencil buffer which allows such renderings. Just Google for it. Annother option is to digg into the occ visualisation code to see how they do it.
edit: for example here http://glbook.gamedev.net/GLBOOK/glbook ... vclip.html
edit: for example here http://glbook.gamedev.net/GLBOOK/glbook ... vclip.html
Re: Clipping Plane Always Shows Model as a Shell?
Wow thanks for further information in this regard. Is there any chance to add a button to the clipping plane to automaticly switching for the shapes to the one sided Lighning as long as the clipping plane is active. That would be much easier for imported building models (my common modells have around 50 to 15000 objects)
- Attachments
-
- screen.jpg (440.71 KiB) Viewed 2494 times
Re: Clipping Plane Always Shows Model as a Shell?
Option (1) is the one from ickby's link [1]
Option (2) is SoVolumeViz [2]
The option (1) might be better for general cross sections, where the user don't expect to see anything inside a solid, except having a nice looking surface telling that the object is a solid. The option (2) looks like something that I want to have in the FEM wb - it would be perfect to present what's happening inside a mesh. Right now we don't have any option that allows that.
Some observations, that are open to correction:
Option (1) might not be good for presenting volume data (stress, displacement, future heat flow). The example Earth sections from ickby's link are using a single colour mesh.
Option (2) might not produce perfectly flat surface with sharp edges, so it might not be good for typical solid cross section. See this example [3]. The cut through the head doesn't look completely flat even if the cutting volume has a perfectly flat wall.
We probably need both options in FreeCAD. (1) to cap solid cross-sections and (2) to be able to show FEM results.
[1] http://glbook.gamedev.net/GLBOOK/glbook ... vclip.html
[2] http://oivdoc95.vsg3d.com/content/185-examples
[3] http://oivdoc95.vsg3d.com/sites/default ... ders02.png
Option (2) is SoVolumeViz [2]
The option (1) might be better for general cross sections, where the user don't expect to see anything inside a solid, except having a nice looking surface telling that the object is a solid. The option (2) looks like something that I want to have in the FEM wb - it would be perfect to present what's happening inside a mesh. Right now we don't have any option that allows that.
Some observations, that are open to correction:
Option (1) might not be good for presenting volume data (stress, displacement, future heat flow). The example Earth sections from ickby's link are using a single colour mesh.
Option (2) might not produce perfectly flat surface with sharp edges, so it might not be good for typical solid cross section. See this example [3]. The cut through the head doesn't look completely flat even if the cutting volume has a perfectly flat wall.
We probably need both options in FreeCAD. (1) to cap solid cross-sections and (2) to be able to show FEM results.
[1] http://glbook.gamedev.net/GLBOOK/glbook ... vclip.html
[2] http://oivdoc95.vsg3d.com/content/185-examples
[3] http://oivdoc95.vsg3d.com/sites/default ... ders02.png
Re: Clipping Plane Always Shows Model as a Shell?
Yeah, that SoVolumeViz is what I was thinking to.
Re: Clipping Plane Always Shows Model as a Shell?
Updated the feature issue #1208 (http://freecadweb.org/tracker/view.php?id=1208#c7714) with the coin3d developments.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
-
- Posts: 54
- Joined: Wed Dec 06, 2017 5:52 am
Re: Clipping Plane Always Shows Model as a Shell?
Any developments here?
My clipped orthogonal view looks great: but my perspective view is useless: and the techdraw section view ain't good:
My clipped orthogonal view looks great: but my perspective view is useless: and the techdraw section view ain't good: