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.

Bug Reports / Texture object using different image than specified

Author
Message
Madscientist
14
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 26th Feb 2010 20:45 Edited at: 26th Feb 2010 20:46
I textured my wall with a diffuse and normal map. It looked fine until Dbpro randomly started using another texture that I had loaded for a different object for the normal map. At first I thought I accidentaly got a few image numbers mixed up. So I decided to use the limb texture name command to see what it was texturing the normal map stage index with. It returned a string that said it was using the correct texture file to texture my wall. I looked at the normal map file and it was the correct normal map image. I don't know what's wrong with dbpro.

If it hasn't exploded yet, I haven't touched it.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Feb 2010 12:42
May we have some simple code plus media please?
Madscientist
14
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 27th Feb 2010 16:10
Ok here is the part that textures the wall. Level(L)is the wall model. I attached the two textures and the Normal mapping shader.
Also StoneWall=1,StoneWallN=2,StoneFloor=3, and StonefloorN=4
It seems to be using the BowNUV.tga image for the wall's texture which is image number 7


If it hasn't exploded yet, I haven't touched it.

Attachments

Login to view attachments
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Feb 2010 12:44
I believe that when GG said 'may we have some simple code ... please', he meant simple but runnable code please - ie, code that WE can run.

There are so many variables in your code that we don't know the values of that almost anything could be happening.

Madscientist
14
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 28th Feb 2010 17:52 Edited at: 28th Feb 2010 18:06
Well here is the code that is runable. I attached the media folder. just make a proj folder and put the media folder in it with the code.


If it hasn't exploded yet, I haven't touched it.

Attachments

Login to view attachments
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 2nd Mar 2010 23:25
Quote: "I believe that when GG said 'may we have some simple code ... please', he meant simple but runnable code please - ie, code that WE can run."


Yes, that is exactly what I meant.

Will look at the example tomorrow.
Madscientist
14
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 3rd Mar 2010 03:16
It's not really an example since i just ripped it dirrectly from my game.

If it hasn't exploded yet, I haven't touched it.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 3rd Mar 2010 12:33
Had a quick look - there's at least one bug in your code.

Check your code more carefully - and it would help if you submitted SIMPLE code when submitting a bug report. Most of the code in your example is unnecessary for the "bug" report - and you would probably have spotted the bug yourself if you had tried to simplify it. You would also have have spotted it if you had bothered to print out the actual image numbers being used when loading the level and weapon.

Here's your problem:



You've declared Bow twice - and changed its value.
Madscientist
14
Years of Service
User Offline
Joined: 23rd Aug 2009
Location: Between a rock and a hard place
Posted: 3rd Mar 2010 21:17
Wow, sorry I way overlooked that.
I was just getting really fustrated and couldn't figure it out.

If it hasn't exploded yet, I haven't touched it.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Mar 2010 21:25

Login to post a reply

Server time is: 2024-03-28 09:09:11
Your offset time is: 2024-03-28 09:09:11