www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on February 24, 2025, 08:52:34 PM

Title: Is there any magic to compile(true)?
Post by: AGP on February 24, 2025, 08:52:34 PM
I can do compile(true) and not lose animations on Raft's bones. But it breaks the animations on my GLB models with my own bone structure. Is there anything that I should be overriding and adding? If not, would you have a clue as to what's doing this?
Title: Re: Is there any magic to compile(true)?
Post by: EgonOlsen on February 26, 2025, 06:33:46 AM
compile(true) compiles the object to use client side data for the GPU (i.e. it resides in the system's memory) while (false) compiles it to use server side memory (i.e. on the GPU). The former is more suitable for objects that change after compilation while the latter is faster for static objects. Have to tried to compiled it with (true) and indexing disabled?
Title: Re: Is there any magic to compile(true)?
Post by: AGP on February 26, 2025, 08:46:00 PM
I just tried, since I don't know what to put in for batchSize, the following. Still breaks the animation.

obj.compile(true, true, true, false, -1);
Title: Re: Is there any magic to compile(true)?
Post by: EgonOlsen on February 27, 2025, 09:11:53 AM
How are you applying your animation? In an IVertexController or in some other way?
Title: Re: Is there any magic to compile(true)?
Post by: AGP on March 05, 2025, 09:31:30 AM
GenericVertexController. Is there another way? Anyway, what values should I plug in for compile()?
Title: Re: Is there any magic to compile(true)?
Post by: EgonOlsen on March 06, 2025, 06:53:09 AM
Can you provide a test case that shows that it works uncompiled not not compiled? So that I can see what's actually wrong? I assume that it's a kind of configuration issue, but it's hard to tell without knowing what the actual problem looks like.
Title: Re: Is there any magic to compile(true)?
Post by: AGP on April 05, 2025, 09:04:39 AM
I will make a minimalist demo. Would you also help me parse the animations? Because that's basically the one thing that I haven't yet added to the glb thing. At some point I'll go back to the cloth simulation, too. I want to have all of these toys in jpct.
Title: Re: Is there any magic to compile(true)?
Post by: AGP on April 06, 2025, 09:25:41 AM
To elaborate, I get a List<Channel> for the entire animation set from my importer. But without knowing what's what, I don't know how to create the individual clips of the different animations.