Page MenuHomeFeedback Tracker

Hidden selections on ropes only affect the first segment of the rope
New, NormalPublic

Description

I was implementing a custom hose model for ACE3's refuel framework which had hidden selections configured so that the texture of the hose could be changed dynamically. When attempting to change the texture of the hose to something other than the default black, only the first segment of the rope is updated to the new texture.

The hose by default is black and running the following command (where HOSE is the rope object) results in the image shown below.

HOSE setObjectTexture [0, "#(argb,8,8,3)color(1,0,0,1,co)"]; // Set color of hose to RED

You can see here that the first segment of the rope (the red part coming out of the fuel pump) is the only one affected by the command.

I also attempted to change the texture of each of the rope segments manually using the following command, however it appears as though it is not currently possible to alter hidden selection on individual rope segments.

{_x setObjectTexture [0, "#(argb,8,8,3)color(1,0,0,1,co)"]} forEach (ropeSegments HOSE);

I believe the intended behavior should be that when using setObjectTexture on a rope object, all segments of the rope should have that texture applied.

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows 10 Home
Category
Engine
Steps To Reproduce
  1. Spawn a rope with more than one segment which is configured to use a model that contains a hidden selection.
  2. Use setObjectTexture to modify the texture of the rope's hidden selection
  3. Observe that only the first segment of the rope is updated to use the new texture
Additional Information

Here is a link to the ACE3 PR where I have implemented the new hose model in case you wish to view the P3D file for the hose or my config files.

Event Timeline

QuantX created this task.Fri, Jul 29, 2:26 AM
QuantX updated the task description. (Show Details)Fri, Jul 29, 2:31 AM
This comment was removed by BIS_fnc_KK.