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 Professional Discussion / scale limb texture not working

Author
Message
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 2nd Jun 2013 13:40
Is this command working for anyone else? I'm trying to figure out if maybe I'm somehow not using it right or it it's just broken in the latest build.

http://mattsmith.carbonmade.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 2nd Jun 2013 14:24 Edited at: 2nd Jun 2013 14:25
No problem with this command at all.Test this piece of code



I'm not a grumpy grandpa
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 2nd Jun 2013 14:29 Edited at: 2nd Jun 2013 14:36
That works fine.
If I import a dbo with multiple limbs however, it doesn't work.

edit
Heres a screenshot of what I'm getting. Without the scale limb texture command the texture fills the whole floor, but with it on it does scale - but doesn't loop the image.

http://mattsmith.carbonmade.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 2nd Jun 2013 19:54 Edited at: 2nd Jun 2013 19:57
I think you have a problem from the 3D program you have exported, any way we could use vertexdata commands to give a new texture to the object. Could you show us your object in a rar file?...just to try. If it is a flat surface made of several tiles or just a big tile, we could do it in Dbpro.

I'm not a grumpy grandpa
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 2nd Jun 2013 23:31
Yeah for sure! Here's what I was using for the test, just a couple of objects I slapped together for testing limbs (first time trying limbs).

http://mattsmith.carbonmade.com/
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 3rd Jun 2013 02:04
No time to check right now but you could try set object texture to change the texture wrapping mode.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 3rd Jun 2013 02:25
Hi there.
It works perfect, without any problem...is this exactly the file that gives problems to you ? could you then show us the code you use to texture this object?

Cheers.

I'm not a grumpy grandpa
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 3rd Jun 2013 02:54 Edited at: 3rd Jun 2013 03:38
This is really weird.
Well here's the code I'm using


@Green Gandalf - That actually works, but unfortunately when I tried it with the shader I'm intending to use it doesn't seem to scale anything.

EDIT
OK, I've run some more tests and it is indeed the model. It seems anything exported from 3dws has this problem. I guess I need to find a different tool for arranging my objects.

http://mattsmith.carbonmade.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 3rd Jun 2013 03:36
Quote: "when I tried it with the shader I'm intending to use it doesn't seem to scale anything."



So ,the problem is gonna be in the shader for sure.

I'm not a grumpy grandpa
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 3rd Jun 2013 03:39
The shader works fine with anything not exported from 3dws though.
And it's one of Evolved's normal shaders so I really don't think that's the problem.

http://mattsmith.carbonmade.com/
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 3rd Jun 2013 11:38
Quote: "The shader works fine with anything not exported from 3dws though"


Ok, I have heard some other guys to have problems about textures exported from 3dws...you could try with other program.

I'm not a grumpy grandpa
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 3rd Jun 2013 22:06
Details of the shader and your code would help. Otherwise it's just guesswork.
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 4th Jun 2013 05:59
@GG if you really want to check it out that would be awesome! With the shader on the scale limb texture command has no effect whatsoever, and with the shader turned off I get what the screenshot above shows, unless I use set object texture, which doesn't work with the shader on.

Here's the full code:



And here's the shader I'm using which works with light maps:


And the model is posted above in post #5.

http://mattsmith.carbonmade.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Jun 2013 19:14
With the shader on, it will take control of the texturing so the scale limb texture command won't work. You'll have to adjust it in the shader itself.


This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 4th Jun 2013 19:39
Quote: "You'll have to adjust it in the shader itself."

Wouldn't that mean that all limbs will have to share the same scale?

http://mattsmith.carbonmade.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 4th Jun 2013 23:15
I don't know sorry. My shader knowledge is very poor. I get Green Gandalf to sort me out, shader wise. lol

This is my current project, check it out! [href]forum.thegamecreators.com/?m=forum_view&t=204576&b=8[/href]
This is my website, check it out! [href]http:\\www.TeamDefiant.co.uk[/href]
wattywatts
17
Years of Service
User Offline
Joined: 25th May 2009
Location: Michigan
Posted: 5th Jun 2013 08:06
Yeah it's the same for me unfortunately. GG, could really use your help!

http://mattsmith.carbonmade.com/

Login to post a reply

Server time is: 2026-07-07 05:39:57
Your offset time is: 2026-07-07 05:39:57