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.

Dark GDK / DGGK & DDS Environment Textures

Author
Message
Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 11th Jan 2010 10:51 Edited at: 11th Jan 2010 11:21
Do they work?

I have tried multiple shaders using .dds environment textures and none have seemed to work yet.

Things like my skybox shader, relection shader etc don't work in DGDK but are fine in FXC.

Cheers

EDIT:
I mean DGDK in the title, not DGGK ha.

dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 11th Jan 2010 14:18
When you load a cube map texture you must specify a flag of '2' for one of the parameters of dbLoadImage, why you must do this I have no idea.

Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 11th Jan 2010 15:03 Edited at: 11th Jan 2010 15:26
Dark coder to the rescue yet again!

Thanks heaps mate.

EDIT:
I opened up my project, and tried adding the parameter but still no luck with the shader.

Any other ideas as to why this could be happening?

dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 11th Jan 2010 20:05
No idea, post your code and media.

Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 11th Jan 2010 20:57
Here's the DGDK code:



Here's the shader:



and the DDS image, Islands.dds is attached.

Thanks again dark coder!

Attachments

Login to view attachments
Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 11th Jan 2010 20:59
Also, the skybox.

Attachments

Login to view attachments
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 11th Jan 2010 22:19 Edited at: 11th Jan 2010 22:20
I didn't try it but you set the 4th parameter to 2, which is the divide texture size value, this should be 1, while the 3rd param should be 2.

Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 12th Jan 2010 00:57
Yeah, I had tried both.
Maybe i'll just do it as 6 different textures.

Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Jan 2010 11:35
Did you get my emails in reply to your query?
Aldur
16
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 17th Jan 2010 12:14
Yep, just replied! Thanks heaps GG, you're a life saver.



Login to post a reply

Server time is: 2024-10-01 23:43:45
Your offset time is: 2024-10-01 23:43:45