3D Part Preview added to Parts Tracker

RE: 3D Part Preview added to Parts Tracker
(2019-11-15, 18:38)Lasse Deleuran Wrote: Hi Orion,

Which part of the code is it that is causing issues?

There are currently two ways of enabling and disabling logos:

LDR.Studs.makeGenerators() which can be called before the model is loaded to ensure that studs will be constructed correctly. I do not think this is the best option for setting the values here.


LDR.Studs.setStuds() which can be called to overwrite the part types for studs. After it has been called, the other parts that use studs will have to be rebuilt. To rebuild, the function removeAllMeshes() on meshCollectors can be used before calling draw() to rebuild.

I am having trouble. I'm using the LDR.Studs.setStuds() method.

Right now I'm doing something like this:
LDR.Studs.setStuds(ldrLoader, ldrOptions.studHighContrast, ldrOptions.studLogo, () => ldrLoader.load(partID));
ldrLoader.partTypes = {}; // Reset all stored data in the loader.

This doesn't seem to work no matter what value I set ldrOptions.studLogo to.
« Next Oldest | Next Newest »

Messages In This Thread
RE: 3D Part Preview added to Parts Tracker - by Orion Pobursky - 2019-11-16, 1:41

Forum Jump:

Users browsing this thread: 2 Guest(s)