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.

Author
Message
AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 28th Dec 2010 18:32
Hey everyone,

Im having some problems with the usage of IK paste image on image rotated command.
If I use the command without the rotated tag, everything works fine, my pasted textures are pasted where they supposed to,
but when i try this, nothing happens apparently. Can anyone help me if I do something wrong or if there is some speciality in this command?

here's what i have:


I use ImageKit v2.

Thanks in advance

"The business in the business is the business"
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 28th Dec 2010 19:30
Hi AGL,

I guess the Texture_Ground isn't a target image. As it says in the help files:

Quote: "If Target Image is not a target image, this command will be ignored."

(I admit my I should have chosen better parameter names though)
IK paste image on image works for normal --> normal/target images and target --> target images, which is why it worked without the rotated tag.

You can convert a normal image to a target image by using, the 2 commands:


I hope it helped,
Sven B

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 28th Dec 2010 19:54
Yeah it basicly works, but first it messed up my texture, second it was working but now it says 'cannot copy image to itself' :S

"The business in the business is the business"
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 28th Dec 2010 20:09 Edited at: 28th Dec 2010 20:10
Yes, you need to copy that image to another image.

Target images are only accessible by the GPU, normal images are accessible by CPU and GPU. Conversion between the two isn't as simple as you might imagine because of that restriction.

If you want to load an image as a target image, you might want to write a function like this:



I know it looks like a roundabout way, but it would be basically the same as if I would have had to code it in the DLL.

A Conversion function would be:


Cheers!
Sven B

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 29th Dec 2010 17:24
Man thank you very much for your help! Tho I had to refine the function according to my needs, but now its working perfectly!

"The business in the business is the business"
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 29th Dec 2010 20:03
I'm glad I could help.

You made me realize it might be better to produce an error when an ImageKit command is incompatible with a certain type of image... So I think it's time I made a small update.

Cheers!
Sven B

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 30th Dec 2010 03:13
I think something is really not right. How can I safely remove the target images and the original textures from an object?
Whatever I try to do with the target image (or apparently independent other things) I get a huge blue screen of death and my pc instantly reboots :/ Its only on certain events though:



This function could be called anytime, its now called on every game start/restart:



And finally here's the target image converter function which is only called in the Load_Medias function. Load_Medias is called only on boot/reboot of game i.e.: program start and after resolution setting:



I think this is my last problem regarding the topic, and the most important one.

"The business in the business is the business"
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 30th Dec 2010 10:27
AGL,

A BSoD is pretty severe. I'm not sure what could cause that. I'm not doing anything funny in the DLL (I strictly use DBP commands and Direct3D commands/structures).

Have you tried using Reset ImageKit when changing resolution? It's supposed to be used when changing resolution. I've never heard of it causing a Blue Screen of Death though...

If the problem persists and you really think ImageKit is causing it, then could you please send me the source code?
It would help the most if you could isolate the problem.

Sven B

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 30th Dec 2010 11:01
Thanks for your help again. Looks like this single command solved my blue death problem. Just happend that I have some wierd errors after changing resolution:
It says 'object does not exist at line xy', although I'm sure as hell that they do exist. They are created after reboot of the program and are not even related to imagekit. They are object anyway, not even images so.. I don't understand.. but I think this is something that I can get rid of by myself

Thanks for the help, hopefully I won't get back here soon

"The business in the business is the business"

Login to post a reply

Server time is: 2026-07-18 07:33:07
Your offset time is: 2026-07-18 07:33:07