[DiscordArchive] second batch of stupid questions:
[DiscordArchive] second batch of stupid questions:
Archived author: 4bhorrent • Posted: 2023-06-05T21:58:00.873000+00:00
Original source
second batch of stupid questions:
mobs in a raid and clutter like books on the ground are M2 models, right?
what's the class for that... CGUnit?
https://wowdev.wiki/M2#Render_flags_and_blending_modes
according to this wiki page M2s should have flags called "depthTest" and "depthWrite"... could those be used to determine if they are occluded or are occluding other things behind them?
meaning: if i potentially set those depthTest to always be 0, would they always be rendered?
[Embed: M2]
https://wowdev.wiki/M2
Archived author: Titi • Posted: 2023-06-05T22:00:06.435000+00:00
Original source
> mobs in a raid and clutter like books on the ground are M2 models, right?
yes they are
Archived author: Titi • Posted: 2023-06-05T22:00:28.532000+00:00
Original source
I don't think any m2 model occlusion is done though
Archived author: Deamon • Posted: 2023-06-05T22:00:30.457000+00:00
Original source
> meaning: if i potentially set those depthTest to always be 0, would they always be rendered?
what? no!
Archived author: Deamon • Posted: 2023-06-05T22:01:42.226000+00:00
Original source
Depth write and depth test are set on individual mesh level. And those are used only by GPU when rendering the picture. If you unset the flags, the picture will just no longer be correct
Archived author: Deamon • Posted: 2023-06-05T22:04:13.963000+00:00
Original source
Typically all opaque meshes have depth write and depth test set to true.
But there are exceptions. For example, in WotLK login screen, all meshes, that fake the exterior, are opaque, but do not write into depth buffer. Bcuz of that they have to be manually sorted by sort function, just like transparent meshes do
Archived author: robinsch • Posted: 2023-06-06T06:00:03.703000+00:00
Original source
The actual "parent" class for Creature is CGUnit_C, for M2 it depends, for units it's CM2Model.