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 / Limb Texturing by name

Author
Message
L3mmy
17
Years of Service
User Offline
Joined: 19th Jun 2009
Location: England, Sheffield
Posted: 30th Mar 2013 17:11 Edited at: 30th Mar 2013 17:11
Hey guys, I think I asked about this a couple of months back but never really got the answer I needed.

To start, Here is an example picture



All the parts are named, in a hierarchy (Body,Bonnet,Boot,Door(1,2,3,4)) etc.
As you can see in the material editor, there are some extensions like [prim], [sec] and [trans]...I'm not intrested in trans(parency) at the minute, just prim and sec..
The ones without any extensions are just textured with images..

I want to beable to read that in DB Pro, and apply a random colour to it (Pre planned colour in the future). As you can see in the picture, 'Mafiabody64[prim]' is applied to the main bulk of the model..

Any help? I have been tinkering with the code and looking through code base etc..but not really been aboy to come up with anything to suit it..

My plan is after the colour is applied to it, shaders will be doing the rest, reflective, specular etc.

Cheers!
Tom

www.monsterwareltd.co.uk/imagehost <-- Image Hosting for your pictures
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 30th Mar 2013 17:36
The Matrix1 dll's allow referencing a limb by name I believe. I'm pretty sure you can get limb names with plain DBP code too. I'm at work now so can't do a looksy for teh commands.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 30th Mar 2013 18:58
@L3mmy

My antivirus reported potential virus in your image pop up

I'm not a grumpy grandpa
L3mmy
17
Years of Service
User Offline
Joined: 19th Jun 2009
Location: England, Sheffield
Posted: 30th Mar 2013 19:08 Edited at: 30th Mar 2013 19:15
ohhhh..Should be good...it's my own imagehosting website? Here's another link just incase

http://imageshack.us/photo/my-images/571/texturing.png/

Edit**
Just clicked the pic and it came up on mine too..must be something silly in the code i'll look into it..it's safe though

www.monsterwareltd.co.uk/imagehost <-- Image Hosting for your pictures

Login to post a reply

Server time is: 2026-07-06 20:51:57
Your offset time is: 2026-07-06 20:51:57