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 / Is texture object obj,0,image the same as texture object obj,image?

Author
Message
Bluespark
15
Years of Service
User Offline
Joined: 18th Mar 2011
Location:
Posted: 17th Aug 2011 01:36
Question is in the topic title:
Is texture object obj,0,image the same as texture object obj,image?
If there is even a minor difference, I would like to know about it.

Thanks.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th Aug 2011 01:51
From help files
Quote: " Syntax
TEXTURE OBJECT Object Number, Image Number
TEXTURE OBJECT Object Number, Stage Number, Image Number
TEXTURE OBJECT Object Number, Stage Number, Image Number, Ignore Sorting
Parameters
Object Number
Integer
The object number
Stage Number
Integer
The texture stage index can be provided to the command to specify multi-textures directly
Image Number
Integer
The texture image number
Ignore Sorting
Integer
The NoSort texture flag is a way to group all objects together, sorted by texture "



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: 17th Aug 2011 17:08
Is that a "Yes" or a "No"?
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 17th Aug 2011 17:25
I would say that there is a difference of the commands, but if the object only has 1 texture stage then Texture Object obj,0,image has the same result as Texture Object obj,image.

If the object uses multi-texturing then you can set the various stages by using Texture Object obj, stage, image.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 17th Aug 2011 20:51
Quote: "I would say that there is a difference of the commands"


Maybe - but I can't produce an example where there is a difference. But then I probably missed something obvious.
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 18th Aug 2011 01:25
I seem to remember that using Texture Object obj,image "resets" certain things (like shaders or ghosting, I cant remember what), where as Texture Object obj, stage, image does not. However I do remember that I experienced the problem while writing a particle engine...
Mugen Wizardry
User Banned
Posted: 18th Aug 2011 01:28
Since we're on the subject, ANYWAY, can someone PLEASE help me so that I can embed my detailmap into my texture map for my terrain?

I've tried MANY different texture stages, including 0,1... 1,2... etc..

and it turns out wrong EVERY time or doesnt work AT ALL. :/

Here's the code:



CHECK OUT MY WEBSITE AT http://imageposeidon.com/ !
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 19th Aug 2011 01:15
stage number is important for shading and effects.
example:
a ground floor:
stage 0 normal groun made made of plane made of two polygons
stage 1 some humps here and there but the image made in dot 3.
stsge 2 same humps image as stage 1 but the image is normal

apply some 3d effect on the object then you will see the ground in 3d without the need to design a 3d floor that may take plenty of polygons polygons.

Login to post a reply

Server time is: 2026-07-10 20:58:29
Your offset time is: 2026-07-10 20:58:29