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.

DarkBASIC Discussion / Need help with DBC v1.20 - Texture Problem

Author
Message
Anto
20
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 14th Nov 2007 09:53
G'day,

Ever since I download DBC update, In my game got an Arena with a cage round it, I've uploaded Pictures and you can see problem with the texture on the Cage


That what it should be, before DBC 1.20


The problem I'm having



As you see, this one side of the cage come up all white, other 3 sides is perfect. Ever since I've tried to do anything to fix it. made it darker or whatever, it does affect the 3 sides but nothing changes on this "white" side. It been driving me crazy!! even I remake that 3d object.

I wonder if any of you managed to know what the problem is.

Thanks, Anto
Ron Erickson
Moderator
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 14th Nov 2007 15:20
Anto,

It looks to me like there is excessive lighting and highlights on the one side of the cage.
If you like, send me a small code snippet that shows the problem (and include your cage textures). I'll be happy to look at the problem if I get some time.

Ron


a.k.a WOLF!
Anto
20
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 15th Nov 2007 08:40 Edited at: 15th Nov 2007 08:41
Here a little code I throw together for you to see.

The cage model is in the attactment



And save this texture in same place as the model



Hope you able to pick up the trouble I'm having. Thank you very much!

Cheers Anto
Jmahmood
19
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 15th Nov 2007 16:09
anto,It works fine in my pc though i am using the latest DBC.Did you use any extra lights in the scene?

Visit eternitygame-house.i8.com
Insert Name Here
19
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 15th Nov 2007 17:50
Are you sure that the cage has not just been set a very high specularity? Try toning the specularity down and see what happens.


Sudoku arts, the rabi and Nancy DrewG
Ron Erickson
Moderator
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 15th Nov 2007 19:30
Quote: "Are you sure that the cage has not just been set a very high specularity? Try toning the specularity down and see what happens."


That is what I was thinking. If you look at the pic that was posted that shows the problem, all is fine in the upper left corner of the cage. It looks to me like you need to play around with the new object light settings


a.k.a WOLF!
Anto
20
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 16th Nov 2007 06:11 Edited at: 16th Nov 2007 06:30
what?? this exact code and cage i sent you still get that white side on my pc!

I even test it without new DBC commands still the same. I don't know why it happening to my computer!




- edit -
I used the code i sent above, that what comes up on my computer screen, no changes to the code, even i played round with set object light etc, it makes no changes on this "white" side, all other get lighter or darker

here the pic,



cheers, Anto
Anto
20
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 16th Nov 2007 09:02
Hey guys,

Thank you for looking into it etc, I just recently managed to fix it, It was nothing to do with the DBC 1.20, it was the model itself, something in it trigger that side when used v1.20, I was so annoyed and I build new cage from ground up rather remake using existing vertex like what i did before. And that "white" side suddenly aren't there!! I can't explain why or what.. I reckon I did something with older model, but it weird some of you said that "white" side didn't even show up on yours.. can't explain that!!!

This computer is mucking me round i reckon, But again, thank you very much for tryin to help.

I better head back n try finish this project! If i ever will

Cheers, Anto
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 16th Nov 2007 10:40
@Anto

This is after the fact - you've solved the problem... but inside your 3ds file, there are two bitmaps tied to materials referenced: cage.bmp and Metal_01.bmp . I think Metal_01.bmp is only used for the top of the cage and probably the bottom - but the absence of that bitmap would cause the material to default to the diffuse color in the material. And if the ambient is low, the emissive will show up. The emissive is white, the diffuse is grey in the file. Also in the file, the specular is set to 7 which would be a wide dispersement of light and the specular color is light grey - though the file settings aren't supposed to influence the object light settings in DBC - except for diffuse color and the bitmap.

One other thing, I looked at the file with culling on and transparency off and it appears that half of the face normals are reversed. This would definately influenced how the light shows up.

Enjoy your day.
Anto
20
Years of Service
User Offline
Joined: 30th Oct 2005
Location: Brisbane, AUS
Posted: 16th Nov 2007 13:28
Latch,

Thank you for your time looking into it, Yes the other material were for top of the cage, didn't include it here cos it wasn't the important bit. Yes I know my models is a mess, half of face normals are reversed, didn't really have those problems with how the lights shows up except the cage bit!

Quote: "though the file settings aren't supposed to influence the object light settings in DBC"


That what I thought, maybe DBC v1.20 might manage to influence with the file setting

Anyway at least I got what i wanted working now, thank you for your time

Cheers Anto

Login to post a reply

Server time is: 2026-07-05 12:33:40
Your offset time is: 2026-07-05 12:33:40