Hi,

I did not test it yet, but there is CATiledLayer available as well. If CoreAnimation is an option for you.

Raphael

On 05 Jan 2008, at 16:08, Michael Kwasnicki wrote:

I tried around a bit and in my eyes it is not real-time-able to browse such huge files using QC.
The largest image displayable remains 4096x4096.
I was able to display an image of 10.240x6400 but no longer in real time since my 256MB VRAM is not big enough to store this tiled image. So there is a lot of stuff keept in the system memory and exchanging it with the graphics card reduces the frame rate massively.

I've attached the best I was able to get. Just exchange the image and adjust the tileSize for your needs.

If you are realy thinking of a 30,000x30,000 zoomed and paned in real time then I suggest to take a look at id Softwares Megatexture- Technology. The main idea is to only keep loaded what you are realy able to see in a given time. So load low resolution tiles and if zoomed in beyond some point, then load a higher quality image on the fly and also unload portions you can't see. id Software has done it with some progressive loading image stream. maybe something similar to JPEG2000. Sorry I can't find a better description.

http://en.wikipedia.org/wiki/MegaTexture

-Michael

<Scroll3.qtz>



Am 05.01.2008 um 04:09 schrieb vade:


On Jan 4, 2008, at 6:30 PM, Michael Kwasnicki wrote:

Hello Vade,

the Billboard is not a normal OpenGL 3D object which has texture coordinates (what I was tweaking using Image Texturing Properties patch) and stuff. Billboard is just a flat thing. I imagine this is something like it just overwrites everything in the frame buffer byte wise in the last rendering step.

Im aware you were tweaking the texture properties patch :P

I'm not that skilled with Objective-C and native OS X APIs.
I just use low level OpenGL and GLUT with C++.
But when going down to OpenGL then I'd try Christopher Wright suggested. It's not that difficult to implement once the image data is loaded into the memory. Just a few calculations how many tiles we need and then copy the bytes.

But I don't know how to map them if not on sprites ( or GL_QUADS when using low level OpenGL ).

Since this is a QuartzComposer mailinglist I assume you can access Quartz APIs. Why not tile the images, map them on sprites and then use the "Render in Image" patch.
Then you have something you can render using a Billboard.
I think this is the best solution yet. I dont need to do any major changes in my quartz plugin, and I suspect this will just work for my scenario as well. Thanks, thats an elegant approach.

It works still real time for me when I put my approach into a render in Image patch.

I'll try to write an QuartzComposition which automatically tiles an image and renders the resulting pan zoom stuff into an image ready for Billboard.

-Michael

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/raphael.sebbe%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to