3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: float color  (Read 386 times)

« on: October 14, 2013, 03:26:03 PM »
Hi.

I need know how can find float rgb color codes? I want use iShaderFloat3Set function but I need color codes acording float.

Thanks
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #1 on: October 14, 2013, 08:03:53 PM »
just use the rgb values from any paint program.... 

--Mike
« Reply #2 on: October 15, 2013, 08:05:31 AM »
Quote
just use the rgb values from any paint program.... 

rgb value in paint programs is very largeand when I use it in 3drad, color is change.

and what is string value in this function?
« Last Edit: October 15, 2013, 11:00:28 AM by behdadsoft »
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #3 on: October 15, 2013, 11:30:29 AM »
Quote
and what is string value in this function?
read Shadmar's descriptions on the System Shaders page...

and... if you didn't know the string param... how did you get the function to work to know that the color changed...

come on man... you gotta start thinking for yourself B...  use your brain and stop relying on others to answer the simple question that you can answer yourself...

if you get an RGB value from your paint program, and it is larger than 255... doesn't it make sense that, since the largest value in the color register is 255, that the rgb value is a percentage of 255... 

for example... if you get an rgb value of  128,255,128... wouldn't it make sense that you'd have to get some fractional number you can plug into the function from that rgb value...

and wouldn't you get that by dividing the rbg value by 255....

so the function might look something like this...

   iShaderFloat3Set(OBJ_0, "cColor", 128/255,255/255,128/255);

these are things that you're gonna need to be able to figure out by yourself...


--Mike
« Last Edit: October 15, 2013, 11:33:09 AM by Mike Hense »
« Reply #4 on: October 15, 2013, 11:51:57 AM »
Quote
and... if you didn't know the string param... how did you get the function to work to know that the color changed...

already I use it with cColor string. I see it in foundry forum.when I change it to any string, don't change color.

Thanks
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #5 on: October 15, 2013, 06:43:28 PM »
the skinmesh MUST be lit by one of Shadmar's User_xxxx... 

start out with 0016_user_tile...  (from the system shaders addon pac i think)

--Mike
« Reply #6 on: October 16, 2013, 02:17:21 AM »
Right, Thanks. ;)
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
Pages: [1]