ShiVa Developer Forum • View topic - Terrain Textures not rendered
 

Terrain Textures not rendered

EditorLua and ModuleXML questions

Terrain Textures not rendered

Postby TheBlueSnow » 2018-11-11 12:27

Hi everyone! I've recently installed the Shiva 3D Web Engine and started to work on a little project, in order to get familiar with it. I've got a small problem regarding the textures on the terrain. They're simply not getting rendered. I do not know what the problem is. I can only assume that there is a problem with the graphics card. But when I open The Hunt and view it's scene the texures are rendered on the terrain. So the assumption that there could be a problem with the graphics card is no more valid. I am struggling to find a sollution. Could you please help me to find a way to solve the problem? I am waiting for your advices.

Thanks in advance!
TheBlueSnow
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: 2018-11-11 12:13

Re: Terrain Textures not rendered

Postby broozar » 2018-11-12 02:44

Terrain textures have to be rendered in a rather time-consuming process. You can follow this tutorial: http://www.shiva-engine.com/terrain-creation/
Let me know if this helps or if you need further assistance.
User avatar
broozar
Administrator
Administrator
 
Posts: 4158
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: Terrain Textures not rendered

Postby TheBlueSnow » 2018-11-12 22:00

Unfortunately it doesn't work. I have followed all steps but i have come to no result. It think the problem may be with the Video Card. I work on an old PC with an Intel Xtreme Graphics card. Should I adjust some settings of the Video Driver? Could it there be a problem? What do you mean by "rather time-consuming process"?

Thanks!
TheBlueSnow
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: 2018-11-11 12:13

Re: Terrain Textures not rendered

Postby broozar » 2018-11-13 01:18

TheBlueSnow wrote:What do you mean by "rather time-consuming process"?


ok, you are clearly not building the textures. here's a video tutorial I made ages ago: https://www.youtube.com/watch?v=3De-uVBtnU4

- you need to have materials on your terrain
- you need to have all chunks selected that you want to build textures for
- you need to use the preview/production buttons

after pressing the button, the editor takes time to render the textures. the better the quality, the longer it takes. that's what i mean by "time consuming process".
User avatar
broozar
Administrator
Administrator
 
Posts: 4158
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: Terrain Textures not rendered

Postby TheBlueSnow » 2018-11-16 23:07

Hello there! I have done exactly the way you described. I've selected all chunks, and clicked production. But nothing seems to happen. The terrain looks untextured. This is why i assumed there could be a problem with the Graphics Card.

A warning message is being desplayed bottom right. It says, that the XInput library may not be installed. Could this warning message be linked wiht my problem?

Thanks!
TheBlueSnow
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: 2018-11-11 12:13

Re: Terrain Textures not rendered

Postby broozar » 2018-11-17 01:08

Since you reported that terrain textures are rendered just fine in TheHunt, I don't think it is a hardware problem.

XInput is a library related to game controllers, the Xbox 360 pad in particular. You must be running a rather old version of Windows that this is not included by default. In any case, it has nothing to do with terrains.

I'm nearly certain the problem is with you following the tutorial, not a hardware or ShiVa problem. Are your materials properly set up? Maybe a screenshot would help me to see what's going on...
User avatar
broozar
Administrator
Administrator
 
Posts: 4158
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: Terrain Textures not rendered

Postby TheBlueSnow » 2018-11-17 17:13

I have posted a video on youtube: https://www.youtube.com/watch?v=BAz6JSKlpGE. Please, tell me where the problem is.
TheBlueSnow
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: 2018-11-11 12:13

Re: Terrain Textures not rendered

Postby broozar » 2018-11-17 23:35

Thanks for that video - that was very helpful. I don't see anything wrong with what you are doing. When i duplicate your steps, the terrain textures come out fine.

Here are a few more things I want you to try:

1. When the terrain textures get rendered, you should get an output in the log. Please switch over to the "Log Reporter" and check on your textures. Do you get any output?
Image

2. The textures with the names shown in (1.) should be TGA files inside your "projectroot\\Resources\\Textures" folder. Do they exist, and do they contain any data?

3. Try lowering the texture resolution of your terrain maps and then re-generate them. The default is 1024x1024, which should be at the upper limit of what your GPU can handle. Try 256x256 next.
Image

Let me know how this goes.
User avatar
broozar
Administrator
Administrator
 
Posts: 4158
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Re: Terrain Textures not rendered

Postby TheBlueSnow » 2018-11-18 00:40

Hi! Thank you for you answer! I do get some output in the LOG Reporter. I can find the textures in the "projectroot/Resources/Textures", but they do not have the TGA extension. They have got the TMP extension. I have reduces the texture resolution down to 256x256 but nothing seems to happen.
TheBlueSnow
Fresh Boarder
Fresh Boarder
 
Posts: 7
Joined: 2018-11-11 12:13

Re: Terrain Textures not rendered

Postby broozar » 2018-11-18 01:04

Any file formats beside TMP? How about DDS? If you only see TMP, then the texture generation never finished successfully. There has to be another file format for you to see anything.
User avatar
broozar
Administrator
Administrator
 
Posts: 4158
Joined: 2007-09-16 10:22
Location: Berlin - Germany

Next

Return to ShiVa Editor Modules

Who is online

Users browsing this forum: No registered users and 1 guest

cron