Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 28th Jul 2012 02:23
Sorry if I bother you for this question. Maybe I look like a noob to you.
I am making a game, and I wanted it to have nice graphics. I downloaded a shader from the forum, and it really looks nice on ingame-built objects, like boxes.

But when I try to apply the effect on loaded objects, if makes a strange effect that not only doesn't show texture, but looks very cartoonish!
I also tried to save the object already textured with texture, normal maps and height maps as a dbo file from an application I built for this reason, but it continues to do this!
The hypothetical appearance of the stone axe is the one in the small icon on top-right corner. The shader I used is parallax mapping from Evolved.
Someone can help me, please? D:
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 28th Jul 2012 17:42
What does the axe look like if you load it but don't apply the shader? I'm assuming the icon version in the top right was rendered in a modelling program rather than Dark BASIC Professional?


Previously TEH_CODERER.
Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 28th Jul 2012 19:02
I rendered it in wings3d and the result is that icon. I've never seen it without shader because I applied the 3-layered texture in a dbpro application I made to texturize object and save them as .dbo files. Now you make me think, I'll go and see if it looks right with only the texture. If the problem is the texture itself, I don't even know why such thing is a problem, so I still need help!
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 29th Jul 2012 04:19
Quote: "If the problem is the texture itself, I don't even know why such thing is a problem, so I still need help!"

Well once you have given it a try then please post back here with the results so we can know for sure what the problem is to try and help you further.


Previously TEH_CODERER.
Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 30th Jul 2012 00:16

Yeah, this is the result. This is only the texture, so I don't really know what's the problem.
I use a plain tiled texture for the object, because I don't need more for now, and with primitives built in db it works just fine, can this be the problem?
If I need a texture made for the object itself, how can I make it? are there good free programs that export the textures?
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 30th Jul 2012 10:12
Load object
Texture object (with layers)
Load effect with "use object texture" flag
Set object effect

Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 30th Jul 2012 14:46
How did I apply the effect on the first box if I'm not able to texture objects with layers and set the effect?
I know how to make this, but as I said, I can't understand why it works only on primitives built in db, if I load an external object, it doesn't work. As I tried now after Andrew's advice, it is evident that the problem is with the texture itself. Why I cannot texture a loaded object correctly? Are there any special ways to do so?
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 31st Jul 2012 00:25 Edited at: 31st Jul 2012 00:26
in what format is the object?
If you export it from modeling app in .3ds format it has to be textured before exporting (i think the same applies if you export it in x fromat).

Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 31st Jul 2012 00:29
mrHandy was just making a suggestion having not seen your code. Are you manually applying the textures to the object or are you relying on them being loaded as part of the model?

Another possible cause would be that the UV co-ordinates are wrong on the model so the texture is not shown properly or even that the object is using an FVF format that doesn't support UV co-ordinates so they're missing entirely.

It does look like the object is only displaying vertex diffuse colours...

This is definitely an issue specific to your model though. Would you be able to upload the object (and possibly the specific shader) for someone to take a look at?


Previously TEH_CODERER.
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 31st Jul 2012 09:53
Find some free trusted models. For example, you could use torus and teapot that always came with Evolved's shaders.

Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 31st Jul 2012 14:04
They are in 3ds format. I tried to apply the textures in darkbasic and it didn't work, so I tried to texture them in db, then save them as dbo, and the result is always the same. The textures are all jpeg format. So the problem could be the program that I use? It could be that wings3d exports wrong uv co-ordinates? Can I create right uv co-ordinates in some way?

I link another model that is not working as the axe, a stone, the textures, and the shader.

I tried a model from Evolved now, as suggested mrHandy. It works, and trying cube models of the same size from wings, they don't work, so the problem must be in the program.
Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 31st Jul 2012 15:23
Ok, thank you all! I figured out what the problem was!
I had to texture the object anyway in wings before exporting it, and I must not convert it in a dbo file. So now it works!
Two other things so...
How can I avoid the glossy effect of the shaded objects?

The other question: is there any way to make a matrix terrain more realistic with effects or something else? I couldn't find a way to apply effects on matrices. It would be enough if it could cast nice shadows, because without them it looks too plain...
Blobby 101
20
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 31st Jul 2012 18:00
To me, it looks like that model doesn't have any UV co-ordinates at all. For a shader (or indeed a texture that isn't flat colours) to work, the object needs to be UV mapped, so that each polygon is assigned space on an image to use as its texture. There are plenty of programs out there to do this (such as Lithunwrap which is free) and plenty of tutorials as well.

Numisi
13
Years of Service
User Offline
Joined: 27th Jul 2012
Location:
Posted: 4th Aug 2012 00:06
No one can answer my questions? No one knows how to avoid glossy effect and apply effects on matrices?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 4th Aug 2012 00:50
Start with a model, then UV map it, and texture it. You seem to be skipping the learning process in a hurry.

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Aug 2012 01:40
Quote: "how to avoid glossy effect"

edit the shader effect

Quote: "apply effects on matrices? "

use terrain objects for terrains not matrices

Login to post a reply

Server time is: 2026-07-07 12:26:30
Your offset time is: 2026-07-07 12:26:30