Re: [osg-users] CAD Style rendering

2015-02-06 Thread padd...@gmx.net

Hi Anders,

normally you also use the face boundaries and iso lines for rendering 
the wires (you could get such data from the modeler kernel). Do you have 
these data as polylines or something? If not you could check the angles 
between triangles, material differences and so on for calculating the wires.


Greets,

Patrik


On 06.02.2015 10:36, Anders Backman wrote:

Hi all.

A general question about rendering...

Does anyone has code? to share for a solid CAD style rendering with
OpenSceneGraph?
I am deliberately vague because it is a broad concept.

A technical rendering style, order independent? transparency.
Hidden lines wire frame etc...

I am looking for inspiration for implementing this kind of rendering.
We do most of our rendering using Shaders today. We have a "megashader"
at the end which does all lighting, shadowing, texturing etc.

Below is a shot from GrabCAD which sort of illustrates what I am looking
for.
Position of light sources, type of lightsources # lightsources etc.
Any hints?




Inline image 2
__
Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se  http://www.hpc2n.umu.se

Cell: +46-70-392 64 67


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] CAD Style rendering

2015-02-06 Thread Jan Ciger
On Fri, Feb 6, 2015 at 2:16 PM, Sergey Kurdakov  wrote:
> Hi Anders,
>
>
> FreeCAD uses Open Inventor (it's fork) - and while it is not osg ( I had
> idea some time ago to port FreeCAD to osg - but unfortunately I'm constantly
> time constrained ) you might take a look there for inspirations.
>
> otherwise there are several osg based modelling tools ( which are not CAD,
> but still - Blender is used for CAD rendering too ) - you might take a look
> too
>
> Regards
> Sergey

That looked like ambient occlusion + highlighted edges ("cartoon
shading") to me. The latter is available in the examples, the former I
am not sure, but it isn't hard to implement.

J.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] CAD Style rendering

2015-02-06 Thread Sergey Kurdakov
Hi Anders,


FreeCAD uses Open Inventor (it's fork) - and while it is not osg ( I had
idea some time ago to port FreeCAD to osg - but unfortunately I'm
constantly  time constrained ) you might take a look there for inspirations.

otherwise there are several osg based modelling tools ( which are not CAD,
but still - Blender is used for CAD rendering too ) - you might take a look
too

Regards
Sergey

On Fri, Feb 6, 2015 at 4:03 PM, Anders Backman  wrote:

> New try, the previous was too big (included an image...)
>
> Hi all.
>
> A general question about rendering...
>
> Does anyone has code? to share for a solid CAD style rendering with
> OpenSceneGraph?
> I am deliberately vague because it is a broad concept.
>
> A technical rendering style, order independent? transparency.
> Hidden lines wire frame etc...
>
> I am looking for inspiration for implementing this kind of rendering.
> We do most of our rendering using Shaders today. We have a "megashader" at
> the end which does all lighting, shadowing, texturing etc.
>
> Below is a shot from GrabCAD which sort of illustrates what I am looking
> for.
>
> http://pbrd.co/1zfevxL
>
> Position of light sources, type of lightsources # lightsources etc.
> Any hints?
>
>
> Tankful for any input.
>
> Cheers,
> Anders
>
>
> --
> __
> Anders Backman, HPC2N
> 90187 Umeå University, Sweden
> and...@cs.umu.se http://www.hpc2n.umu.se
> Cell: +46-70-392 64 67
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] CAD Style rendering

2015-02-06 Thread Anders Backman
New try, the previous was too big (included an image...)

Hi all.

A general question about rendering...

Does anyone has code? to share for a solid CAD style rendering with
OpenSceneGraph?
I am deliberately vague because it is a broad concept.

A technical rendering style, order independent? transparency.
Hidden lines wire frame etc...

I am looking for inspiration for implementing this kind of rendering.
We do most of our rendering using Shaders today. We have a "megashader" at
the end which does all lighting, shadowing, texturing etc.

Below is a shot from GrabCAD which sort of illustrates what I am looking
for.

http://pbrd.co/1zfevxL

Position of light sources, type of lightsources # lightsources etc.
Any hints?


Tankful for any input.

Cheers,
Anders


-- 
__
Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org