Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use CG Volume Controller
#1
I have a CG volume controller component on a gameobject, I can't seem to set the general/volume property (I click on it and it just has none). It says it's 'missing source of type CGVolume'. What are the acceptable types for this property? I have a spline I'm doing a shape extrusion on, I figured I'd be able to use the Volume Mesh or Shape Extrusion modules.
Reply
#2
Hi,
As you can see from the screenshot, taken from the scene 21 which uses a Volume Controller, when you click on the "None" button, you will get a list of generators. Once you choose one, you will get a list of modules that have outputs of type Volume (a.k.a CGVolume in the API), namely Shape Extrusion modules.
   
I hope this helped.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hi, thanks for the reply, I don't know if it makes a difference, but I'm actually using CG Path Controller, not CG Volume Controller (although I get the same issue with both). I don't know if I messed something up elsewhere, right now I have the path property set to Shape Extrusion.Volume, but if I unset it, I'm unable to set it back. While it's set to Shape Extrusion.Volume, if I click on the the Path (or volume if I do the CG Volume Controller instead of CG Path Controller), it only shows 'none' in the list:


[Image: Uz6hfgZ]
https://imgur.com/a/Uz6hfgZ
(hopefully the image works)

Currently everything works as expected (as the path property of the CG Path Controller is currently set). I just can't unset it. If you know where I might've done something wrong, let me know.
Reply
#4
I hope it's okay if I ask another question here in case I don't catch you until later. What I'm trying to achieve is to have a gameobject appear at the end of a shape extrusion (currently doing this with a CG Controller), but to not have the gameobject go past the endpoint of the spline (as if it were part of the shape extrusion itself), such that when the shape extrusion Range.To property is set to 1, the whole thing (shape extrusion and gameobject at the end) are within the range of the spline, or something to that effect:

[Image: ej2ZhfI]
https://imgur.com/a/ej2ZhfI

Hopefully this makes sense. I think there are enough properties I have access to to achieve this effect (My current plan is to somehow use the gameobject's mesh renderer bounds in order to offset the shape extrusion), but wanted to know if there is some simpler/built in way to do this, or if you had any insight otherwise. 

What currently I'm doing is animating the Range.To property of the shape extrusion from 0 to 1, and I have the gameobject track to the end of the shape extrusion using a CG controller. However, I can't have the gameobject appear beyond the endpoint of the spline. I tried changing the gameobject origin such that none of it would be beyond the spline, but then the shape extrusion would clip through it (I realize as I'm writing that this might work if I could do some kind of masking/boolean operation on the shape extrusion volume mesh):

[Image: V5pF2Qm]
https://imgur.com/a/V5pF2Qm

Anyways, I'm mainly just wondering if you have any suggestion/insight. I'm looking through the examples now to see if there is an example of this type of effect. Thanks (hopefully the images work, they don't appear in the preview but I put the links in)

Update: I found a solution that works for me, I'm just setting the range manually based on the approximate size of the gameobject, such that it doesn't go past the end of the spline. I still want to know if there are other better options for this, since if I want to use different gameobjects in the future, I'd have to manually test/set the range for every different gameobject.
Reply
#5
(07-16-2024, 06:47 PM)j95677 Wrote: I want to use different gameobjects in the future, I'd have to manually test/set the range for every different gameobject.

Hi,
This should give you a good result:
Range.To = 1 - 0.5 * (length_of_object / spline.Length)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#6
(07-17-2024, 02:32 PM)_Aka_ Wrote:
(07-16-2024, 06:47 PM)j95677 Wrote: I want to use different gameobjects in the future, I'd have to manually test/set the range for every different gameobject.

Hi,
This should give you a good result:
Range.To = 1 - 0.5 * (length_of_object / spline.Length)

Hi, I edited the other message with the update but this is basically what I went with. Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't set CG Path Controller j95677 4 6 8 hours ago
Last Post: j95677
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_
  How to start volume spots at the end of spline instead of front j95677 1 5 07-07-2024, 04:58 AM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 14 04-08-2024, 03:26 PM
Last Post: _Aka_

Forum Jump: