cylindrical images

reinformit's picture

Hi everyone,

Does anyone know how to wrap an image in a cylindrical way? The cylinder renderer doesn't work as I don't want the top or bottom to have an image.

Thanks

cybero's picture
Re: cylindrical images

like, this is one way - please see attached - :-)

PreviewAttachmentSize
3dwrap.zip987.4 KB

reinformit's picture
Re: cylindrical images

Thanks cybero,

Do I need to put the object in a certain place and put the file path in the "file" parameter of the object loader? Do I need Kineme 3D? I had the demo installed but it has expired.

Thanks again

cybero's picture
Re: cylindrical images

for that solution to work you would need kineme 3d, the file needs to be at the same root level of the directory into which you save the .qtz and should be specified in the path by name only.

cybero's picture
Re: cylindrical images

here's another way of making a cylinder that doesn't rely on anything more than repeating an image in a structured fashion within a double 3d transform. see attached. won't suit all presentations though, simply because it does repeat the image rather than present a single image as in the earlier example

PreviewAttachmentSize
fakecylinder.qtz10.54 KB

reinformit's picture
Re: cylindrical images

Thanks cybero,

That last one was pretty creative. I actually don't want to make an actual cylinder as much as I just want a convex image. (a lot of them really). All I want is about 1/4± of the cylinder or tube surface.

Are there any patches that can use something like Basic?

Thanks again.

cybero's picture
Re: cylindrical images

try this

PreviewAttachmentSize
concaveorconvex.qtz27.69 KB

dust's picture
Re: cylindrical images

the most basic you are going to get is this. this is just a sphere with a image mapped to it to give you the illusion of a cylinder. there are other-ways with k3d to do a cylinder without top and bottom like parametrically but this is the most basic way i can think of.

PreviewAttachmentSize
concavemap.qtz212.81 KB

cybero's picture
Re: cylindrical images

interesting approach , but does require the small size of image you sensibly employed, given a larger file it will just go global •~

I think that Basic programming language was what reinformit was hoping might have been provided for, sadly, reinformit, such a provision has not as yet been made, although I guess it could be achieved with Real Basic.

Whatever, if you meant a really basic approach that would give you a cylinder then pick any of the ones posted and adapt to your needs, sadly though, none of them provide exactly what you are seeking , I believe.

rinboku's picture
Re: cylindrical images

Hello! How is this? I am using only normal patches.

PreviewAttachmentSize
cylindricalscreen.qtz13.05 KB

cybero's picture
Re: cylindrical images

Quote:

Hello! How is this?

brilliant

Quote:

I am using only normal patches

& a lot of well structured maths. Beautifully 'simple' cylinder

I find that if you just jiggle with that sprites width even a little it all goes ruffled - quite nice - like a dented dustbin :-) gives an interesting regular deformation to the resulting projection.

neat.

fsk's picture
Re: cylindrical images

heres how i would do it. i dont know if its the most efficient way, but im to lazy to pull all those noodles if 4 lines of code can do the job.

PreviewAttachmentSize
cilinder glsl.qtz178.83 KB

cybero's picture
Re: cylindrical images

and at 360 degrees on the degrees to radians input we get a complete cylinder :-) - sweet.

cybero's picture
Re: cylindrical images

Just thought I'd stress this construct out by making it animate as it defaults n/a fps :-) on the example uploaded.

Works beautifully.

A good 60 fps.

reinformit's picture
Re: cylindrical images

PERFECT!!!!!!!!!!

You people are awesome! All of you!

Thanks fsk, this works perfectly for what I need. Thank you all so much. Every parameter I need is addressed and it works beautifully. Woo hoo!!

Thank you.

p.s. cybero you were right on the mark I was referring to Real Basic, the code. I did however try the circular warp thingy and when I saw that I was 1 wave short of a shipwreck. I had spent countless hours with that before I posted my question.

Thanks again everyone!!!!

gtoledo3's picture
Re: cylindrical images

It's really cool isn't it? It reminds me slightly of Zuga's Intrapersonal/some Developer example I can't remember, in approach. I love how that matrix patch works inside of the iterator!

...except that this makes a really nice shape, and it even winds up looking smooth. Really nice.