Vertex deformer: video balls!

psonice's picture

Had a bit of a play with vertex samplers again lately. This was done during breakfast and lunch today.. I ran out of time at the end of lunch, and just got a random video off the web so i had something to capture. Sorry about the bits where not much happens, and the red titles ;)

It's badly in need of decent lighting and some design too... maybe next week.

gtoledo3's picture
That is nice.

That is nice.

franz's picture
Nice. Wire ?

Very nice, it works really well with a face. Could you post a wireframe ?

psonice's picture
Maybe

Well, I could if I could think how to render wireframe in QC.. do I need the kineme gl tools?

cwright's picture
polygon mode

Yeah, use gl tools, and pop the whole thing (or at least the renderer) inside a GL Polygon Mode patch, with front faces set to Wireframe. (maybe back faces too, if you're not culling them)

psonice's picture
Wireframe still

Thanks, got it in wireframe now. Had to turn the mesh quality right down to see the lines clearly though, it was running 256x256 before, this is 64x64.

PreviewAttachmentSize
wire.jpg
wire.jpg109.37 KB

franz's picture
wow, uber-nice. What's your

wow, uber-nice. What's your FPS with 256*256 ?

psonice's picture
Nice but slow..

I'm getting around 10-12 fps from that one.. although there's a fair bit of image processing that could be cut down I think, so maybe it's possible to run it a little faster. At 64x64 it still looks pretty good though, and it runs 30fps+.

Oh, hang on.. just took another look, and QC is running at 115% cpu usage. And it runs at a max 15fps, even at 4x4! I'll have to take a look later, see what's killing it.. I know from doing other stuff though that 30fps+ is easily achievable at 64x64 :)

gtoledo3's picture
Man, I can't remember where

Man, I can't remember where this discussion was... did this need the custom plug in for RGB... ?

I can you still get the bump, but make z=0 in the shader, so that you get picasso cubism type stuff? Or is the bump achieved by manipulating z? I need to track down the original discussion.

toneburst's picture
Nice.

You seem to have got some lighting going on there, too. I can't look at the source here, as I'm at work and on a machine running Tiger, but looking forward to seeing how you got that to work..

Good stuff!

a|x

psonice's picture
no lighting, only fakes!

Yep, there's no actual lighting at all, even though it looks like there is. I used the CIEmboss patch and a bit of tweaking to create a lightmap ;) It looks pretty convincing there, but actually the 'light' shines from different angles at different points on the sphere.. it'd look very odd from above.

toneburst's picture
Ah...

So you haven't managed to solve the 'how to get normalmaps to work without tangent vectors' problem... Shame.

Looks good though.

a|x