Help with Geometry Service

So basically… im messing around with the geometry service and ive run into a problem, for some reason when im making a new union/substraction for a second time on a partOperation, the render of the part is bugged by default and its only fixed when i select the part from the explorer… I have no clue how to fix this or whats the cause, heres a vid :

ive added a task.wait(1) on the union part to see if it would help, it didnt

1 Like

It looks like (as i see) you’re encountering a rendering issue with the geometry service when performing multiple union or subtraction operations on a part. This can sometimes happen due to how the rendering engine updates the visual representation of the part.

I have some steps for you that kinda should fix it:

  • Force a Refresh : After performing the union or subtraction operation, you can try forcing a refresh of the part. This can be done by briefly changing a property of the part and then changing it back.
partOperation.Transparency = 0.5
partOperation.Transparency = 0

-- Or change size, it should work better

loval savedSize = partOrientation.Size
partOperation.Size -= Vector3.new(0, 0, .1)
partOperation.Size = savedSize

  • Reparent the Part : Sometimes, reparenting the part to another object and then back can force the engine to re-render it correctly.
local parent = partOperation.Parent
partOperation.Parent = nil
partOperation.Parent = parent

There’s also may be some overlapping parts that might be causing the rendering issue but i didn’t see it on your video.
Hope it helps!

2 Likes

Reparenting worked perfectly !
I don’t know why its necessary to do this but as long as it works its fine, though I would aprreciate it if roblox fixed this bug with :substituteGeometry

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.