Show me a sandwich...

He has: 1,758 posts

Joined: Jul 2002

I was wondering if you guys can help me out...

I'm working on a website for my girlfreinds café its not an internet cafe or anything posh, but i'm kinda using it as a portfolio peice.

Basically, using a bit of php coding I've created a kinda virtual sandwich builder (http://www.saltrockcafe.co.uk/sandwich1.php) that allows people to work out the cost of a sandwich and add fillings and things.

The problem is we've called it a "sandwich builder" but you dont really get to see anything at the end of it. I've been trying to think how i can show a sandwich on thats dynamically drawn to the screen. I thought of using an isometric view because then i can just show it using layers, but that ended up looking a bit naff.

(see http://www.saltrockcafe.co.uk/sandwich.htm).

Any ideas how i can show the sandwich with the fillings the user chose but without it looking naff?

Thanks for your help!

Andy

Andy

Busy's picture

He has: 6,151 posts

Joined: May 2001

How about showing an empty plate with a few crumbs with a comment like "That such and such sandwich with such and such filling was so yummy and fresh it just had to be eaten, if you were here it would of only cost you ..."

dk01's picture

He has: 516 posts

Joined: Mar 2002

You could use php and flash together. Although I do not have the technical detail of how, i know it can be done.
Downside: using flash (yucky)
-dk

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Well, one option is to take a picture of every sandwich combo possible. But I'm sure that doesn't sound fun (or practical).

Why don't you try taking a picture (or finding one) of each topping, and using the same method of stacking the pictures you had for the isometric one?

Mark Hensler
If there is no answer on Google, then there is no question.

He has: 1,758 posts

Joined: Jul 2002

I'd considered most of those (well apart from the empty plate Wink ), although i dont have anywhere near enough flash knowledge to do it that way.

The idea of "filling" the isometric pictures with an image of a filling might work... but only if i can grab a decent pic.

Thanks peeps.

Any other suggestions, keep em coming.

Andy

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Might it be possible to construct an image using GD? Layer images of bread slices, toppings and whatnot... perhaps show it as a png?

I suppose the mechanics of it don't really matter all that much, as it is probably feasible even using Javascript, if not GD or Flash. All you need is the right kind of pictures.

He has: 1,758 posts

Joined: Jul 2002

i could install GD since i have root access to the server, but i'm unfamiliar with how it works and my php scripting knowledge is minimal at the moment.

I guess you have to try it to learn it... Wink

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.