Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BuildVolumeMesh issue
#23
(11-11-2022, 09:08 PM)tairoark Wrote:
(11-01-2022, 10:38 AM)_Aka_ Wrote: About the UV calculation: the value to set to UVOffset.Y is the following:

yourBuildVolumeMesh.groupsByMatID[theRightIndex].AspectCorrectionV

Knowing that groupsByMatIDis defined as follow:
private List<SamplePointsMaterialGroupCollection> groupsByMatID;

Two things to solve to be able to use the code above:

1- theRightIndex: either 0 if you use only one material, or you find the index that indexes the SamplePointsMaterialGroupCollection instance with the right material ID.

2- groupsByMatID: it is a private field, you can make it public or add a getter to access it for example.

I believe this answers your UV related question

I only have one material.

What exactly IS AspectCorrectionV.   I need the value of the ending V of a previously generated segment ? 

If I understand what you are saying, here is my attempt at it:
Code:
var bvmA = genOfSegmentA.GetModule<BuildVolumeMesh>( "Track Vol Mesh", true );
var bvmAplus1 = genOfSegmentAplus1.GetModule<BuildVolumeMesh>( "Track Vol Mesh", true );
bvmAplus1.MaterialSetttings[ 0 ].UVOffset.y = bvmA.GroupByMatID[0].AspectCorrectionV;

The problem is that in the debugger, BuildVolumeMesh.groupsByMatID is always null !!
No array is set  :-(

Yes, that code should do it. The groupsByMatID array becomes different than null after the generatore refreshes. I am guessing you are executing your code before the generator first refresh. If that is the case, either wait until the next frame, or you can listen to the OnRefresh event on the Curvy Generator or on the module.
Did this work?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
BuildVolumeMesh issue - by tairoark - 10-30-2022, 03:20 AM
RE: BuildVolumeMesh issue - by _Aka_ - 10-30-2022, 12:12 PM
RE: BuildVolumeMesh issue - by tairoark - 10-30-2022, 05:40 PM
RE: BuildVolumeMesh issue - by tairoark - 10-30-2022, 11:15 PM
RE: BuildVolumeMesh issue - by _Aka_ - 10-31-2022, 10:18 PM
RE: BuildVolumeMesh issue - by tairoark - 10-31-2022, 11:08 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 03:50 PM
RE: BuildVolumeMesh issue - by tairoark - 11-03-2022, 02:59 AM
RE: BuildVolumeMesh issue - by _Aka_ - 11-03-2022, 09:39 AM
RE: BuildVolumeMesh issue - by tairoark - 11-03-2022, 12:49 PM
RE: BuildVolumeMesh issue - by _Aka_ - 10-31-2022, 10:35 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 09:41 AM
RE: BuildVolumeMesh issue - by tairoark - 11-01-2022, 03:48 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 03:51 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 10:38 AM
RE: BuildVolumeMesh issue - by tairoark - 11-11-2022, 09:08 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-14-2022, 10:06 AM
RE: BuildVolumeMesh issue - by tairoark - 11-15-2022, 04:56 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 03:39 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-01-2022, 03:53 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-03-2022, 04:27 PM
RE: BuildVolumeMesh issue - by tairoark - 11-11-2022, 05:27 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-14-2022, 10:01 AM
RE: BuildVolumeMesh issue - by tairoark - 11-14-2022, 08:25 PM
RE: BuildVolumeMesh issue - by tairoark - 11-11-2022, 10:00 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-14-2022, 10:15 AM
RE: BuildVolumeMesh issue - by tairoark - 11-15-2022, 12:21 PM
RE: BuildVolumeMesh issue - by tairoark - 11-16-2022, 03:39 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-17-2022, 11:16 AM
RE: BuildVolumeMesh issue - by tairoark - 11-17-2022, 01:56 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-18-2022, 08:15 AM
RE: BuildVolumeMesh issue - by tairoark - 11-18-2022, 06:16 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-21-2022, 03:21 PM
RE: BuildVolumeMesh issue - by tairoark - 11-24-2022, 07:25 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-15-2022, 08:44 AM
RE: BuildVolumeMesh issue - by _Aka_ - 11-16-2022, 10:35 AM
RE: BuildVolumeMesh issue - by tairoark - 11-16-2022, 07:00 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-17-2022, 10:11 AM
RE: BuildVolumeMesh issue - by tairoark - 11-17-2022, 01:22 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-21-2022, 03:19 PM
RE: BuildVolumeMesh issue - by _Aka_ - 11-25-2022, 07:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 3 14 Yesterday, 09:26 AM
Last Post: proton
  Rotation issue with generator nicolaj.h.andersen@gmail.com 1 15 04-14-2023, 11:58 AM
Last Post: _Aka_
Exclamation DuplicateEditorMesh performance issue Guillaume 5 12 01-18-2022, 01:44 PM
Last Post: _Aka_
  Lightmap/Shadow issue Sacryn 4 1,524 11-24-2020, 08:33 AM
Last Post: Sacryn

Forum Jump: