Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Projected texture nabbing in DBPro, that's right!

Author
Message
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Sep 2003 16:17
Hi all,

Just occured to me how usefull UV mapped sprites could be.

If you had a picture of a wall that was at an angle, you could set the UV coordinates of a sprite to the logical corners of the wall, then the sprite would have a projected wall. This means you could make photographic textures without needing a straight on view of the wall or whatever. I'll try it later but I'm pretty sure it'd work - would make a pretty handy little tool, you could make textures from almost any angled photograph . You would simply paste the sprite and grab the texture from that, then save it - or just PRNTSCRN then paste into your art package.


Van-B

My cats breath smells of cat food.
Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 12th Sep 2003 19:27
I thought that sprites were 2D by definition?
How would you angle it?
would you distort to simulate perspective?

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 12th Sep 2003 22:49
any Deluxe Paint user would know just what you where on about, that was the only 2D gfx package I know of that allowed you to add perspective to images, you just want to do the same thing in reverse, maybe just parseing the image from top to bottom and scaling it to make it a rectangle would work, the only trouble is you lose data at the "far" end since the height in pixels is lower and you have to fill the gaps when the texture gets expanded so it gets blurred, other than that its a good ide, you could even recreate a street from a photograph into 3D with that method and a little inventivness, cheers.

Mentor.
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 12th Sep 2003 23:02
I've just bought PaintShop Pro 8 and it has a new tool to do exactly that. Here is description:


Correct perspective
Fixing distorted perspective in photos is no longer a cumbersome task with the Perspective Correction tool. With this great timesaver distorted photos can be fixed by simply placing handles along the path to be corrected and the selection becomes rectangular.

If your mansion house needs haunting, just call Rentaghost!
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th Sep 2003 00:43
Thought it'd be possible - not great results but I blame the image .



Source attached.


Van-B

My cats breath smells of cat food.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Sep 2003 11:47
thats still very impressive nonetheless.

http://www.lunarpixel.com
It's already tomorrow in Australia
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Sep 2003 12:00
I agree Indi, thats not bad at all, but notice the diagonal line of distortion running down the image? is that due to the sprite being a plain object?, and the line is where the texture maps from one polygon to the other? just wondering since it should have worked better than that, good idea though.

Mentor.

Login to post a reply

Server time is: 2026-07-24 14:08:25
Your offset time is: 2026-07-24 14:08:25