generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Smooth brickcolor change?

Previous Thread :: Next Thread 
derfvb123 is not online. 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
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
08 Aug 2016 08:20 AM
There is no way, at least not yet.
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
08 Aug 2016 08:21 AM
Especially since brickcolors have fixed numbers that represent them and there aren't many of them.
Report Abuse
AirbornPenguin is not online. AirbornPenguin
Joined: 02 Aug 2016
Total Posts: 24
08 Aug 2016 08:23 AM
What do you mean smooth?
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
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
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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 is not online. 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
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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 is not online. Real_Edgy
Joined: 23 Oct 2013
Total Posts: 1212
08 Aug 2016 12:23 PM
you're all stupid
use SelectionBoxes
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
08 Aug 2016 12:26 PM
^ You're stupid because it only works on rectangular objects
Report Abuse
Real_Edgy is not online. 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
tentergram is not online. tentergram
Joined: 13 Apr 2013
Total Posts: 2446
08 Aug 2016 12:31 PM
I'm not entirely sure if this is possible, but try converting colo3 into vector3?
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
08 Aug 2016 12:54 PM
Color3 is color
Vector3 is position/rotation
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
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 is not online. 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
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 12:59 PM
@kodran

missed that one

lol


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
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
AirbornPenguin is not online. AirbornPenguin
Joined: 02 Aug 2016
Total Posts: 24
09 Aug 2016 09:14 AM
^ Yeah, SurfaceGui idea is stupid but its the best idea we got so far!
Report Abuse
badfitz67 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image