forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rotate an image

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Sun Dec 23, 2007 11:18 pm    Post subject: Rotate an image Reply with quote

Hi

What I want is simple: Rotate an image.

Does anyone know how I can do this?

Thx for your help
DAan
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Mon Dec 24, 2007 1:01 am    Post subject: Reply with quote

Take a look at this as it may be ideal for you and has image rotation --> Link <--
Back to top
View user's profile Send private message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Tue Dec 25, 2007 1:24 am    Post subject: Reply with quote

Thanks Dude!
This is exactly what I was looking for.

Thx ;)
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Thu Dec 27, 2007 8:52 am    Post subject: Reply with quote

Yeah thanks, tried it, it works good.

Should be helpful for use with my Mickey Mouse watch style clock,
where an animated character of myself points at the numbers on a clock face
with his/my arms.

I guess it should be possible with two arm sprites.
Even one if I can flip one of them.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Sun Mar 09, 2008 3:18 am    Post subject: Reply with quote

Hey guys
After a long time I tried to get along with the Easy Accelerated Image Lib.
But it didn't work as i expected.
The images were displayed incorrectly. For example, an image of a drawn person (with Photoshop) becomes completely black and has a fat black border around its body...

Does anyone know how to solve this problem?
Thanks in advance!

DAan
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Mar 09, 2008 6:13 am    Post subject: Reply with quote

Wasn't a problem for me.
Did you try the windmill example?
The rotor is being rotated.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Sun Mar 09, 2008 10:44 am    Post subject: Reply with quote

The windmill example works fine, but not if I try it with my images... :(
So my images must be the reason. I just wonder why, because with the lib from the tutorial they were displayed correctly.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sun Mar 09, 2008 11:03 pm    Post subject: Blue screen for dummies Reply with quote

Let's say we are going to make a special effect of you falling in an endless hole like in "Lord of the Rings". You have to act shaking yourself in front of a the camera having a blue sheet as a background (Computer Graphic will put some cool effect under you in its place...). Once you have captured the image sequence on your PC, you can take it and feed a program that elaborates alpha masks. For instance, we could say: "if blue component of a point is far grater than red and green toghether, then this point is completely transparent", but if the specified squelch is not adequate, the blue points near your white dress (that result too bright to belong to the blue screen) will NOT be masked out, resulting in a blue aura around you. When you draw by hand your images, quite the same thing happens: you must think that a colour is ALWAYS 4 components, so you cannot forget about the RGB color of transparent pixels, because in resampling -or other type- operations they will screw up everything adding those borders. Solutions? Specify for background color of pixels that will become transparent a color that's not too disturbing, and cut your images by hand trying to reduce the "feather" (i.e. make sharp cuts).
That's all i can say without taking a look to your images or your code...

jean
Back to top
View user's profile Send private message
DAanDASja



Joined: 14 Oct 2007
Posts: 17

PostPosted: Mon Mar 10, 2008 9:30 pm    Post subject: Reply with quote

Thanks for your reply, but I couldn't solve the problem.
I tried everything to reduce the "half-transparent" pixels around the drawing to avoid a black aura like you've said... But I can't remove the whole aura...
Is there a way to change some values in the library (maybe reducing the tolerance of transparency) or something like that?

DAan
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Fri Mar 28, 2008 11:30 am    Post subject: Reply with quote

If anyone has the Windmill example could you please rapidshare it???
The link is dead :(
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
hibbyware



Joined: 28 Mar 2007
Posts: 78

PostPosted: Fri Mar 28, 2008 9:51 pm    Post subject: Reply with quote

Not sure what version the windmill example came with,

It could of been with both,

Easy Accelerated Image Rendering Lib v0.1

Easy Accelerated Image Rendering Lib v0.2
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Fri Mar 28, 2008 10:00 pm    Post subject: Reply with quote

Last time I used this library, I used 0.2 and it came with the Windmill, it worked perfectly with my images, I bet the problem is your images or if you changed something in the lib files, that might be the problem too.
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sat Mar 29, 2008 9:03 am    Post subject: Reply with quote

Thanks for the link.
I remember searching QJ for "Windmill" :D

I had no problem replacing the images:
http://rapidshare.com/files/103150997/Demo.zip.html
They were made with Paint, the Windows bundled Paint program.
Art.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group