derfvb123
|
  |
| Joined: 23 Oct 2011 |
| Total Posts: 704 |
|
|
| 08 Aug 2016 08:08 AM |
How would I change a brickcolor smoothly?
instead of using
script.Parent.BrickColor.new = BrickColor.new("Really red")
--fall for the bait-- |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:20 AM |
| There is no way, at least not yet. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:21 AM |
| Especially since brickcolors have fixed numbers that represent them and there aren't many of them. |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2016 08:25 AM |
By smooth, he means smooth color transition. Example: secure(.)static.tumblr(.)com/a2904795e9ff01c64352b8c6e37636bf/d0tbvqr/TT3nedvap/tumblr_static_tumblr_static_bpoh07vdyy0o4osoo4g0ckggc_640.gif |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:52 AM |
local startColor = Vector3.new(0, 0, 0) local endColor = Vector3.new(255, 255, 255) local object = workspace.Part for alpha = 0, 1, 0.1 do -- 0.1 means percent increment per iteration local offset = startColor:Lerp(endColor, alpha) object.Color = Color3.new(offset.X/255, offset.Y/255, offset.Z/255) wait(0.1)
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:53 AM |
my lag took off the last end ,-,
local startColor = Vector3.new(0, 0, 0) local endColor = Vector3.new(255, 255, 255) local object = workspace.Part for alpha = 0, 1, 0.1 do local offset = startColor:Lerp(endColor, alpha) object.Color = Color3.new(offset.X/255, offset.Y/255, offset.Z/255) wait(0.1) end
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 09:30 AM |
No such thing as smooth brick color.
Color will automatically convert it to the nearest BrickColor.
Don't understand why Color3 won't work for it, I guess it is a rendering issue. You need to put some sort of SurfaceGui on all sides and change the color of a Frame or you can change the vertex colors of a mesh texture |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 09:55 AM |
Roblox internally converts Color3 to brickcolor and then brickcolor to hex, no obvious reason, but it's how it is. I even created a thread asking them to change it, but since I couldn't find it, here is another one. https://forum.roblox.com/Forum/ShowPost.aspx?PostID=72309746 You can actually search Brickcolor Color3 in suggestions and you'll find tons of em. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 08 Aug 2016 10:09 AM |
| u would need to use surfaceguis and color those smoothly |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 11:51 AM |
| Yet, you'd need to make 6 of them for every part. Just immagine te lag if you have a semi complex 20 part model, not to even think about a whole map. |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 08 Aug 2016 12:23 PM |
you're all stupid use SelectionBoxes |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 12:26 PM |
| ^ You're stupid because it only works on rectangular objects |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 08 Aug 2016 12:28 PM |
| statistically there's more rectangular parts than not |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 12:31 PM |
| I'm not entirely sure if this is possible, but try converting colo3 into vector3? |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 12:54 PM |
Color3 is color Vector3 is position/rotation |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 12:57 PM |
calling everyone stupid when your idea was the worst one
good show
Formerly xXTheRobotXx, add 13,349 posts |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 08 Aug 2016 12:58 PM |
I think it's safe to say this was the worst one by a wide margin "try converting colo3 into vector3?" |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 12:59 PM |
@kodran
missed that one
lol
Formerly xXTheRobotXx, add 13,349 posts |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 01:01 PM |
| His idea is stupid, as much as the SurfaceGui is. But they are the only existing workarounds to be honest. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2016 09:14 AM |
| ^ Yeah, SurfaceGui idea is stupid but its the best idea we got so far! |
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 09 Aug 2016 09:21 AM |
"no obvious reason, but it's how it is."
I heard that bricks don't have color3 due to lag since most places nowadays have thousands of parts and it would too costly to do that.
Potato me, Barry ~ |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2016 09:21 AM |
I prefer CubeMesh or whatever it's called with a solid white texture, and adjusting the VertexColor.
|
|
|
| Report Abuse |
|
|
badfitz67
|
  |
| Joined: 03 Jun 2010 |
| Total Posts: 13165 |
|
|
| 09 Aug 2016 09:22 AM |
What about using meshes like BlockMeshes and such? They have a vertex color which is color3
Potato me, Barry ~ |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2016 09:23 AM |
Not necessarily lag, badfitz, but storage space and things like that. IMO it shouldn't be too much of a problem considering everything else they store.
And by "Prefer" I mean "I really hate VertexColor for being weird, and this is kind of a messy workaround, but it's the best I've seen so I just avoid doing it altogether if I can help it".
|
|
|
| Report Abuse |
|
|