[MINC-users] How to create a "wireframe" surface object?
Najmeh Khalili M.
najma at bic.mni.mcgill.ca
Tue Jun 26 11:42:01 EDT 2007
Thanks Alex,
I am planning to wikify all these comments to bring raytrace
out of obscurity :) It's a great tool for people who prefer to
script their image (re)production and not bother with Display!
Can you please tell me where/what -one_hit is/does?
Yes, semi-opaque surfaces look better than grid ones.
Best
Naj
On Tue, 26 Jun 2007, Alexandre CARMEL-VEILLEUX wrote:
> On Tue, Jun 26, 2007 at 09:49:01AM -0400, Najmeh Khalili M. wrote:
> >
> > I couldn't get the tags_to_spheres produce pretty markers, but
> > reducing the surface opacity allowed me to ray_trace subcortical
> > objects.
> >
> > The plygons_to_lines works well. (Is there a way to subsample
> > the polygons? I tried "smooth_lines" on the polygon.obj,
> > but it doesn't seem to change anything. I tried it with
> > distance 0.2 and 100!!)
>
> Couple of things about ray_trace:
>
> * It can't render well meshes that contain anything but
> triangles. There's a command to convert polygons to
> triangles to do that. (Something like triangulate_polygons
> from memory but I'd have to check.)
>
> * -one_hit tends to produce nicer looks with semi-opaque
> surfaces. The effect may or may not be desirable to you.
>
> * ray_trace has tons of undocumented switches such as
> -marker_sphere, -marker_size, -marker_colour and so on.
>
> * Dave MacDonald's tutorial is fairly good (but incomplete):
> http://www.bic.mni.mcgill.ca/~david/Ray_trace/ray_trace_tutorial.html
>
> Alex
>
> >
> > Cheers
> > Naj
> >
> > On Tue, 26 Jun 2007, [ISO-8859-1] Lasse Riis Østergaard wrote:
> >
> > > I don't think ray_trace allows wireframe rendering. Instead you can do
> > > the following:
> > >
> > > Step 1 - polygons_to_lines polygon.obj poly_lines.obj
> > > Step 2 - ray_trace -output image.rgb poly_lines.obj -bg white -size 350
> > > 350 -top -crop
> > >
> > > Lasse
> > >
> > > Najmeh Khalili M. wrote:
> > > > Hi, I need to generate a surface object in order to use it with
> > > > ray_trace. As I am interested in showing subcortical markers, I
> > > > need the object file to be semi-transparent, preferably with
> > > > wireframe representation.
> > > >
> > > > I'd appreciate any suggestions.
> > > > Naj
> > > >
> > > > _______________________________________________
> > > > MINC-users at bic.mni.mcgill.ca
> > > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> > > >
> > >
> > > _______________________________________________
> > > MINC-users at bic.mni.mcgill.ca
> > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> > >
> >
> >
> >
>
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
More information about the MINC-users
mailing list