id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Level Editing => Topic started by: bitterman on March 20, 2018, 01:02:30 AM

Title: Mirror becomes to black in BFG after bsp'ed with D3
Post by: bitterman on March 20, 2018, 01:02:30 AM
There is a room with mirror.

That's going on:

- open in BFG. Mirror is fine.
- copy map's files into D3 mod folder. Don't change anything.
- in D3 type in console: editor -> open map -> bsp.
- copy map's files into BFG mod folder.
- remove 'generated' from BFG mod folder and load the map. The mirror is black.

'Dmap' does same thing.

What can I do?

Thanks.

Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: Snehk on March 20, 2018, 11:59:43 AM
Check the material. BFG uses glsl shaders while GPL uses ARB. Changing the material might fix it.
Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: bitterman on March 20, 2018, 12:08:54 PM
Thanks.

This is the differences before and after BSP (see pic).

If it changed then result is vary.

Is there a .proc format description?

*************** upd

https://modwiki.xnet.fi/PROC_%28file_format%29

Quote
An index is simply an unsigned integer. Every index indicates a vertex in the surface’s vertex list. Since all vertexdata is rendered as a list of triangles three indices build a triangle.

Not sure where it is but looks like problem in .proc.
When I return back old .proc then it works. Don't know how old .proc was compiled before.
Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: bitterman on March 20, 2018, 10:03:20 PM
dmap from RBDoom works as expected with mirror.

Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: motorsep on March 20, 2018, 10:13:27 PM
dmap from RBDoom works as expected with mirror.

So what's the issue then?
Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: bitterman on March 21, 2018, 06:59:03 AM
Don't use a mirror ;)
Title: Re: Mirror becomes to black in BFG after bsp'ed with D3
Post by: The Happy Friar on March 22, 2018, 02:11:47 PM
If d3 and d3bfg have different mirror texture names that would explain it.  Since you are not copying anything besides map files that rules out the shaders.