Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] second batch of stupid questions:

[DiscordArchive] second batch of stupid questions:

[DiscordArchive] second batch of stupid questions:

rektbyfaith
Administrator
0
06-05-2023, 09:58 PM
#1
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
rektbyfaith
06-05-2023, 09:58 PM #1

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

rektbyfaith
Administrator
0
06-05-2023, 10:00 PM
#2
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
rektbyfaith
06-05-2023, 10:00 PM #2

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

rektbyfaith
Administrator
0
06-05-2023, 10:00 PM
#3
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
rektbyfaith
06-05-2023, 10:00 PM #3

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

rektbyfaith
Administrator
0
06-05-2023, 10:00 PM
#4
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!
rektbyfaith
06-05-2023, 10:00 PM #4

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!

rektbyfaith
Administrator
0
06-05-2023, 10:01 PM
#5
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
rektbyfaith
06-05-2023, 10:01 PM #5

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

rektbyfaith
Administrator
0
06-05-2023, 10:04 PM
#6
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
rektbyfaith
06-05-2023, 10:04 PM #6

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

rektbyfaith
Administrator
0
06-06-2023, 06:00 AM
#7
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.
rektbyfaith
06-06-2023, 06:00 AM #7

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)