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 / Iimage Kit Colorize a Textured object?

Author
Message
AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 1st Jan 2011 15:26
Hey all,

Is there a way to colorize a plain object that already has a texture on it, and its a transparent png? I've already tried it with Image Kit commands only to experience bugs. Also tried it with lighting, tho I don't want to use lights at all. The basic DBP light commands just won't work at all, only the ambience light, but that applies to all objects that have obejct light 1. I need to colorize my NPCs with different colors but same textures on them. Is this possible at all with dbp?

"The business in the business is the business"
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 1st Jan 2011 18:19
Blend mapping may be what you want to use.



You said
Quote: "Is there a way to colorize a plain object...?"
- I'm not sure now it would work on a complex object with many polygons, but you could try it.

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 1st Jan 2011 19:30
Thanks for the tip, tho this not working as expected: the white plain is visible under the texture as bounding box

"The business in the business is the business"
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 1st Jan 2011 20:00
Put up your code, and attach the images, we can all check what is going on.

AGL
18
Years of Service
User Offline
Joined: 13th Jan 2008
Location:
Posted: 1st Jan 2011 20:16
Actually its hard to upload the code since its over 4000 lines now. Its easier to do this:



now you will see my '3d sprite' with the tranparent png texture. Its good and all with the animation, but I need them to change color tones with parameters.
To see what exactly I need, I'll also post an image of the current and the desired appearence.

Thanks for the help!

"The business in the business is the business"
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 1st Jan 2011 22:02
Okay, that gives a better idea of what you're trying to accomplish.

Try this...



Login to post a reply

Server time is: 2026-07-18 07:32:42
Your offset time is: 2026-07-18 07:32:42