[SOLVED] Textures scale problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
poljak
Posts: 9
Joined: Mon Jul 09, 2018 5:20 pm

[SOLVED] Textures scale problem

Post by poljak »

Hi everyone, I started a new project on irrlicht, the Q3 bsp loader was a strong argument that helped me to build maps :)
I use JACK hammer to create maps http://jack.hlfx.ru/en/

But I am stumbling across a weird problem, it seems that textures coordinates are badly computed as if I applied a x4 factor of them

Here's images describing the problem with a squared grate texture for example (but the problem appear on all textures)
In JACK Hammer, I chose to fit the texture on the surface (1 * 2 tiles)
https://prnt.sc/k6gldr

In Irrlicht, it seems multiplied by 4 (so it become 4*8 tiles, which I don't want)
https://prnt.sc/k6gl4f

In OpenArena, same problem observed, that lead me to probably a problem from JACK / Q3Map2 compiler
https://prnt.sc/k6glh0

Is there anyone using JACK Hammer Editor to create their bsp maps? How do you deal with this problem?

PS: Here is the brush definition (if it could help)

Code: Select all

{
  ( -16 432 32 ) ( -16 432 25 ) ( -16 272 32 ) invisible [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1 0 128 0
  ( -256 272 32 ) ( -256 272 25 ) ( -256 432 32 ) invisible [ 0 -1 0 0 ] [ 0 0 -1 0 ] 0 1 1 0 128 0
  ( -16 272 32 ) ( -16 272 25 ) ( -256 272 32 ) invisible [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1 0 128 0
  ( -256 432 32 ) ( -256 432 25 ) ( -16 432 32 ) invisible [ -1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1 0 128 0
  ( -256 272 32 ) ( -256 432 32 ) ( -16 272 32 ) grates/grate1 [ -0 -1 0 179.2 ] [ -1 0 0 -34.1334 ] 90 0.625 0.46875
  ( -256 432 25 ) ( -256 272 25 ) ( -16 432 25 ) invisible [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1 0 128 0
}
Last edited by poljak on Sat Jul 14, 2018 6:08 pm, edited 2 times in total.
poljak
Posts: 9
Joined: Mon Jul 09, 2018 5:20 pm

Re: Textures scale problem

Post by poljak »

Finally Solved!
The issue was Q3map2 that wasn't able to find the textures and clamped them to 16x16 (because it didn't know the actual size)

In case someone come here with the same issue, you have to specify the path for your textures to q3map2 by appending this line

Code: Select all

 -fs_basepath "$gamedir" -fs_game gabuzomeu
to all compile commands in the "advanced compile map window"

where $gamedir is set in JACK's settings to be the path where is the compiled irrlicht program and gabuzomeu the folder name
Post Reply