How to hide a models polygons

Posted By: jumpman

How to hide a models polygons - 04/08/17 19:23

Hello!

Is there a way to hide a model's polygons without using c_trace (for the hit.subset)?

Im trying to understand the manuals Vmask toggling, but its not working for me. I have saved a group of triangles in the model as a group.

you.vmask |= 1<<hit.subset;


I have 1 group saved in the MED file of the model thats being hit. I am using C_Trace for testing.
Posted By: alibaba

Re: How to hide a models polygons - 04/08/17 20:11

Look at this quick example:

https://yueklet.de/test.zip

You basically need to replace hit.subset with the group number and then use flag operations. Also keep in mind that all groups need to be assigned to a skin.
Posted By: jumpman

Re: How to hide a models polygons - 04/10/17 15:45

Alibaba!

Did you make that yourself? It worked for me! Thank you!

Making multiple groups increases the rendering time of a model, correct?
© 2024 lite-C Forums