Gamestudio Links
Zorro Links
Newest Posts
blogherenowcenter
by 3s05bmmc. 06/05/24 06:08
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (bigsmack, AndrewAMD), 1,304 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Character Creation - e.g. picking haircolor #400398
04/30/12 13:13
04/30/12 13:13
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Hey guys,

I wanted to ask, if anybody knows, how you achieve something like a character creator which let's you pick a color to dye predefined textures as seen in many MMORPGs or singleplayer games with a character creator in it.

I wanted to create something similar for coloring your character to your needs especially for picking the eye color, the hair color, and 3 main colors for the whole body that effect the outfit of the character.

I hope someone can help me with that, because I don't even know if it's a shader operation or if it can be done with 3DGS itself. I tried to achieve something like that with diffuse or emissive colors, but the results were poor. I need to change the colors of the texture itself on runtime.

Here's an example of what i mean



Thanks for you replies in advance,

Roxas

Re: Character Creation - e.g. picking haircolor [Re: Roxas] #400400
04/30/12 13:28
04/30/12 13:28
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
first of all:
Your Character needs to be created out of different models

Means 1 model for hair, one for body, one for armory..etc
Now you can play with the ent.red/green/blue values, and ent_morph. That´s the easiest way.

Better way: a shader wich changes the textur hue by using ent.skillXX-ZZ as rgb values for skillAA as Skin_id


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Character Creation - e.g. picking haircolor [Re: Espér] #400401
04/30/12 13:58
04/30/12 13:58
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
or using one big texture containing all hair textures, and shifting uv coordinates to predefined positions by ent_getvertx/ent_setvertex.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Character Creation - e.g. picking haircolor [Re: sivan] #400404
04/30/12 14:12
04/30/12 14:12
Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Roxas Offline OP
Member
Roxas  Offline OP
Member

Joined: Apr 2008
Posts: 144
Germany | Niedersachsen (Lower...
Thanks you two! Well the fact about using different models for hair, body, armory even faces was familiar to me ^^.

I'll give it a shot with the ent.red, green, blue values, but I think I might have tried that out before.. I'll just try it again.

But the better suggestion - using a shader - sounds better to me and more like that what I want to create. Do you have a simple example for something like that? or a link to a tutorial for shader programming to achieve that effect? I just searched in the forum and wiki and didn't find anything that suits this.

And thanks for your suggestion sivan, if Espers approach is getting to complicated I'll just stick to a predefined amount of hair colors and use your suggestion. that sounds about the easiest method.

Thank you for your replies. Please let me know if you find something like a tutorial for the shader mentioned by Esper.

Thanks
Roxas


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1