Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Real time color change #124894
04/18/07 20:25
04/18/07 20:25
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Do possible to change colors of entity (materials) in real time.
Like my.red += 1 * time_step; The same with ambient, diffuse and specular,
F.e. to make a slider which one changes entity color.
Then with three sliders we'll be able to make all colors, like painting a car (basicly white) by player in the game (f.e. in paint-shop or something).
Maybe it's possible by .fx files or something, but that way will be more easy.


Never say never.
Re: Real time color change [Re: tompo] #124895
04/18/07 20:45
04/18/07 20:45
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Take a look at MatsEd 2 in my signature. It does exactly what you want.

Basically:

material test_mat
{
ambient_red = 100;
ambient_green = 100;
ambient_blue = 100;
}

action test
{
my.material = test_mat;
while(1)
{
test_mat.ambient_red+ = mickey.z*time_step;
wait(1);
}
}

Assign the action and move the mousewheel, you can change the material in realtime.


no science involved

Moderated by  aztec, Spirit 

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