Board index » delphi » Semi 3D view of 2D image

Semi 3D view of 2D image


2004-02-25 06:28:47 AM
delphi133
I need a whipping fast algorythm to render a bitmap to a 3D plane. I know
about the 3D engines but I think it is overkill for what I need.
The idea is to project a bitmap on a horizontal plane. The camera view
should be allowed to be positioned at any elevation pointing at any
direction but will not bank.
There is no Z ordering as there is only the one bitmap to be projected on a
single horizontal flat face.
Does anyone know of references to material, code that can be used in Delphi?
Thanks
Paul van Dinther
 
 

Re:Semi 3D view of 2D image

Have a look at projective transforms in Graphics32. You specify 4 corner
points A, B, C, D of your bitmap and it gets rendered in that area.
You can calculate the 4 points using an isometric transform or perhaps a
perspective transform if you want a tad more realism.
The transformation itself can be done with various quality settings. In
general, Graphics32 is lighting-fast doing these.
Kind regards,
Nils Haeck
www.simdesign.nl
"Paul van Dinther" <XXXX@XXXXX.COM>writes
Quote
I need a whipping fast algorythm to render a bitmap to a 3D plane. I know
about the 3D engines but I think it is overkill for what I need.

The idea is to project a bitmap on a horizontal plane. The camera view
should be allowed to be positioned at any elevation pointing at any
direction but will not bank.

There is no Z ordering as there is only the one bitmap to be projected on
a
single horizontal flat face.

Does anyone know of references to material, code that can be used in
Delphi?

Thanks

Paul van Dinther


 

Re:Semi 3D view of 2D image

Smack <Bengs on forehead>of course! I even had a play with that code not so
long ago. Must be getting old.
Thanks Nils.
"Nils Haeck" <XXXX@XXXXX.COM>writes
Quote
Have a look at projective transforms in Graphics32. You specify 4 corner
points A, B, C, D of your bitmap and it gets rendered in that area.

You can calculate the 4 points using an isometric transform or perhaps a
perspective transform if you want a tad more realism.

The transformation itself can be done with various quality settings. In
general, Graphics32 is lighting-fast doing these.

Kind regards,

Nils Haeck
www.simdesign.nl


"Paul van Dinther" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...
>I need a whipping fast algorythm to render a bitmap to a 3D plane. I
know
>about the 3D engines but I think it is overkill for what I need.
>
>The idea is to project a bitmap on a horizontal plane. The camera view
>should be allowed to be positioned at any elevation pointing at any
>direction but will not bank.
>
>There is no Z ordering as there is only the one bitmap to be projected
on
a
>single horizontal flat face.
>
>Does anyone know of references to material, code that can be used in
Delphi?
>
>Thanks
>
>Paul van Dinther
>
>