Access to tImage Vertices?

BlitzMax Forums/BlitzMax Programming/Access to tImage Vertices?

CyBeRGoth(Posted 2009) [#1]
Hi

Has anyone come across a way to get access to the vertices of the Quad which tImage uses to draw images with?
So we can for example move each vertex individually, or even better, is there a simple way to create a new Quad that tImage can use to draw images on, but this one has more than 4 corners (it is split into a grid, as the image below), this would allow you to do a lot of special effects directly to images, waves, pucker, bulge etc.

Thanks for any help.




GW(Posted 2009) [#2]
not sure that it helps but i believe that LoadAnimImage is single surface, so that the model data is like the tree to the right. Then its just a matter of getting the vertex data.
if you look at d3d7max2d.bmx there is an array called vrts[]. Maybe a good place to start.


AndrewT(Posted 2009) [#3]
I'm pretty sure an animated image is draw with four vertices, just like a regular image, but the texture is continuously scrolled to show the next frame of the animation.

However I agree that this would be a very useful feature, and it probably wouldn't be very hard to make yourself.


_Skully(Posted 2009) [#4]
This would also rectify the projection matrix issue...


therevills(Posted 2009) [#5]
but i believe that LoadAnimImage is single surface


According to this post:

http://www.blitzbasic.co.nz/Community/posts.php?topic=51647#576571

LoadAnimImage actually creates a new image for each frame... not sure if this was ever put into BlitzMax (the post was over 3 years ago...)


ImaginaryHuman(Posted 2009) [#6]
What projection matrix issue are you talking about?


slenkar(Posted 2009) [#7]
this would be useful for iso games too,
instead of having to skew images and save them in a square you can skew them in the game.


Zeke(Posted 2009) [#8]



therevills(Posted 2009) [#9]
Thats very cool Zeke!

Looking forward seeing the OpenGL part :)


slenkar(Posted 2009) [#10]
very good zeke!


CyBeRGoth(Posted 2009) [#11]
Nice stuff zeke :)

Now if only we could divide the image up into smaller vertices and play around with them too :)


Jesse(Posted 2009) [#12]
these is really cool zeke. Thank you.