Twinklebear / webgl-volume-raycaster

A WebGL Volume Raycaster
MIT License
252 stars 30 forks source link

How to display only one slanted plane? #13

Closed kt7456 closed 1 year ago

kt7456 commented 1 year ago

235433248-c66ee894-cd34-44aa-8cda-b68fe036983d i mean cut into a face or a plane ,like below image

kt7456 commented 1 year ago

cut into slanted planes

Twinklebear commented 1 year ago

It sounds like you mean the same as https://github.com/Twinklebear/webgl-volume-raycaster/issues/9#issuecomment-1478817045 , to draw the volume texture on just a plane that cuts through it. You'd do as I mention in that comment, draw a plane and then look up its coordinates in the 3d volume to texture it with the volume texture

kt7456 commented 1 year ago

i forget say thanks!