i see it's not easy :-)

because i want to get object's wireframe  at the end.

(from the viewpoint perspective , not as 3d)
svg export more than obj

and more or less real time
i mean in a fast way

if it'not work for gem,
do you know any other tools exporting a 3d scene to (flat )vectors?

Thanks for your help!


py






2016-02-03 23:36 GMT+01:00 Jack <jack@rybn.org>:
I think, a loop like this should be doable (not sure, expert on shader
can help) ? :
Your coord vertices -> convert to RGB colors on fragment -> frame buffer
 as texture -> get your new color on vertices from texture (with shader).
You will need to grab back texture on each frame if you want to get
'real' value from texture.
But as Cyrille explain, it will not easy to get the geometry of the "3D
object" which need to know how to draw from your vertices (maybe doable
with an other texture :).
++

Jack



Le 03/02/2016 23:18, Jack a écrit :
> Le 03/02/2016 17:48, cyrille henry a écrit :
>> hello,
>>
>> There are exemple on how to export an obj file made of simple primitive.
>> (in Gem exemple directory 11.obj_exporter). But it will not work with
>> shaders.
>>
>>
>> since shader are computed in the graphic card, it's not easy to import a
>> geometry back to the CPU.
>>
>> but you can use your algorythm to draw an image that represent the 3D
>> vector (XYZ as RGB), and get the image back.
>> Then you can convert the image in a obj file.
>
> I was thinking about this point with texture.
> ++
>
> Jack
>
>
>>
>> cheers
>> c
>>
>>
>> Le 03/02/2016 17:33, Py Fave a écrit :
>>> Hello list,
>>>D
>>>
>>> is it possible to export the result of a gem window as vectors?
>>>
>>> i am doing the classical plane 3d extrusion (via a shader)
>>> but need vectors as output
>>>
>>> 2d vector(prefered ) or 3d model
>>> what would work ?
>>> any hint welcome!
>>>
>>>
>>> i saw it was already asked a long time ago.
>>> any news in this area.?
>>>
>>>
>>> Do you know other programs to do that ?
>>>
>>> Thanks by advance
>>>
>>> Have fun !
>>>
>>> Pierre-Yves
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Pd-list@lists.iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>>>
>>
>> _______________________________________________
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>
>
> _______________________________________________
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>


_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list