
2D distortion : flag, wave, accordion
2D distortion : flag, wave, accordion
Last edited by eddy on Thu Jun 26, 2008 6:26 am, edited 4 times in total.
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual toolRe: Sprite 3D Deformation : flag, wave, accordion
nice effects.
would also be nice to have the snippet to use
that in own code.
would also be nice to have the snippet to use
that in own code.
SPAMINATOR NR.1
-beta 2-
Download : http://www.datafilehost.com/download-dfc1ed9a.html
- detect alpha channel
- can change sprite grid resolution
- new layout mode
- stretch fx

- detect alpha channel
- can change sprite grid resolution
- new layout mode
- stretch fx

win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
I tested it with my old graphic card 'geforce 2 MX' (last driver and last directX9 version) ... And I saw some holes inside the grid.
Perhaps it does not support this filter #PB_Sprite3D_BilinearFiltering
A good solution would be to use a true mesh grid.
Perhaps it does not support this filter #PB_Sprite3D_BilinearFiltering
A good solution would be to use a true mesh grid.
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool- zxtunes.com
- Enthusiast

- Posts: 375
- Joined: Wed Apr 23, 2008 7:51 am
- Location: Saint-Petersburg, Russia
- Contact:
I advise you to use HGE.eddy wrote:I tested it with my old graphic card 'geforce 2 MX' (last driver and last directX9 version) ... And I saw some holes inside the grid.
Perhaps it does not support this filter #PB_Sprite3D_BilinearFiltering
A good solution would be to use a true mesh grid.
There is fair present distortion mesh and any deformations are accessible.
A theme and examples here: http://www.purebasic.fr/english/viewtopic.php?t=32139
- Michael Vogel
- Addict

- Posts: 2846
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Hmm,
I'll try to receive a google map for a certain area, convert it to an image and... (now comes the tricky part
)...
...display it (as a ground map together with a sporting track above it) in pseudo 3D. I'd like to respect the perspective, so the rectangle image will have to be transformed (hopefully fast enough) into an area of an irregular rectangle.
Would you be so nice to tell me how fast this can be done? Is there any chance to transform a screen sized map into any rectangular in some milliseconds?
Or do I have to expect longer calculation time that realtime rotation wont be possible?
Maybe there are some code snippets for me :roll:
I'll try to receive a google map for a certain area, convert it to an image and... (now comes the tricky part
...display it (as a ground map together with a sporting track above it) in pseudo 3D. I'd like to respect the perspective, so the rectangle image will have to be transformed (hopefully fast enough) into an area of an irregular rectangle.
Maybe there are some code snippets for me :roll:
- Michael Vogel
- Addict

- Posts: 2846
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Maybe I can give you a better imagination of what I'll try to do...Michael Vogel wrote:... I'll try to receive a google map for a certain area, convert it to an image and... (now comes the tricky part)...
I try to add a geographic map to a 3D viewer (http://mr.vogel.googlepages.com/GPS) written in PureBasic.
The program displays a sport track in 3D (see below) and the geographic map should be loaded from Google Maps and be displayed instead of the ground rectangle of the track.

Therefore I need a VERY FAST routine which distorts the image into the ground shape (in real time?!)
Are you able to give me a hint how to do this?
Thanks,
Michael
My 2D transformations are fast because I used Sprite3D. (accelerated by GPU)
For your project, you could use some 3D commands to do that.
1- generate 3D mesh from Google datas
2- rotate your 3D track map
It could be a good idea for a PB opensource project. "a google map generator"
For your project, you could use some 3D commands to do that.
1- generate 3D mesh from Google datas
2- rotate your 3D track map
It could be a good idea for a PB opensource project. "a google map generator"
win10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool- Michael Vogel
- Addict

- Posts: 2846
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
