Jump to content

[SOLVED] post effects on lines


photo

Recommended Posts

Posted

hello, i need to show my 3D lines as 2D constant-widthed lines and dash/dotted and etc.

my plan:

1. create DynamicMesh object in LINES mode

2. fill it by lines

3. create material with post-pass shader

 

some questions:

how better to transfer 2d projection data to post shader? (start & end pts per line) setParameterFloatArray?

 

i try use some technique: 2 shader passes:

1. ambient or some other pass, who gets only needed lines or points projections coordinates to tone texture (0,1)

2. post shader pass who will draw lines dashed, dotted, etc

 

some ideas?

Posted

Check the following samples: mesh_lines_00 mesh_lines_01

ObjectDynamic can also be used for line drawing with additional per-vertex data via custom vertex format.

×
×
  • Create New...