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 / texuter using uv's to multiple images/

Author
Message
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 17th Jul 2007 21:06 Edited at: 17th Jul 2007 22:16
I'm using

dbScrollObjectTexture
and
dbSetObjectTexture


to adjust my scaling.

I have a floor that is 4 by 4, and ceiling that is 4 by 4. My walls are 1 by 6. So when using this, my walls are out of wack. I tried pulling my walls out as limb and doing them simply but it just is a mess to do this. If my object export makes 3 textures and it has 3 uv channels, can I apply my uv's to each? Or can I only use one set of uv's per object?

edit::
I found a work around here, buy just expanding the image for the wall in the modeler. So for now that works.

Question two:

dbScrollObjectTexture (23,0,100);
dbScrollObjectTexture (23,0,10);
dbScrollObjectTexture (23,0,0.10);

nothing works? What do I need to do to get dbScrollObjectTexture to work. Images is always at 0,0.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 18th Jul 2007 11:36
Try smaller values for the texture offset at dbScrollObjectTexture. I think 0.10 is too big for UV coords.
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 18th Jul 2007 16:10
Hey, Morcilla. Thx for offering your suggestion. I tried..

dbScrollObjectTexture (23,0,0.10);
dbScrollObjectTexture (23,0,1);
dbScrollObjectTexture (23,0,3);
dbScrollObjectTexture (23,0,.5);

as well just not moving.

I added some code, keep in mind I have a object wrapper so the code looks different, but for the scaling I'm using the db command. m_ship_01.getID() is traced out to be the correct number.



Did I miss a step?
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 23rd Jul 2007 21:56
It is now working and I did need to use a float. float.(23,0.05,0.05);

Login to post a reply

Server time is: 2024-10-09 00:18:02
Your offset time is: 2024-10-09 00:18:02