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 / D3D - 3D text texturing problem

Author
Message
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 16th Sep 2011 17:26 Edited at: 16th Sep 2011 17:27
Hello, I'm trying to use Cloggy's D3D plugin to create 3d text. However whenever I try to texture them, I end up with an untextured object.

I've tried converting the FVF format but that didn't change anything either.

Here's the code I'm using, does anyone have any ideas?? I just want to show a texture on the 3d text! lol



My signature is NOT a moderator plaything! Stop changing it!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 16th Sep 2011 18:34 Edited at: 16th Sep 2011 18:36
Maybe they have no UV's, but you can save the objects as a mesh. Then you can UV map them.

make mesh from object 1,1
save mesh "Whatever.x", 1

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 16th Sep 2011 19:06 Edited at: 17th Sep 2011 14:31
@Mobiius
It doesn't matter the code you use, because the program that generate the 3D Text use triangles and didn't give UV coordinates. A sotution, could be to load the text in an external program and do it from there, but I guess you know that. We could do it with Dbpro using vertexdata which would be even harder as we don't know the texture scale the programer used


Cheers.

Edited
I found a way to texture front faces of the text. Using perform csg commands .






I'm not a grumpy grandpa
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Sep 2011 09:56
@Pincho Paxton: I've tried that.

@Chafari: I'd rather not use the CSG commands as it only does one face. I'd like the whole object to be textured.

I guess I'll have to use external objects after all.

My signature is NOT a moderator plaything! Stop changing it!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 19th Sep 2011 18:04 Edited at: 19th Sep 2011 18:06
Quote: "@Pincho Paxton: I've tried that. "


I've actually done it, it works. And if you want all of the letters to work just save them all out, and uv map them, then swap the objects for a string.

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Sep 2011 12:40
I've now tried to make a mesh from the 3d text object, then save the mesh and load it as an object. I still didn't get any UV data and the object wouldn't texture.

Am I doing anything wrong? Here's the code I'm using...



My signature is NOT a moderator plaything! Stop changing it!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Sep 2011 13:19
You have to UV map it in a 3D package. Doesn't take long if you just use planar maps. The edges stretch but that looks OK on text.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Sep 2011 13:42 Edited at: 20th Sep 2011 13:44
Doing that in a 3D package is easy What he tries, is do it in Dbpro, and it is possible geting vertexdata vertex count. I have made some test, and I nearly got it working.



Attached example



Cheers.

I'm not a grumpy grandpa
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 20th Sep 2011 14:13
@Chafari: YOU ARE A LEGEND!1!!1!one!!eleven

You're right it isn't perfect, but I'm not after perfection!! That worked fantastico!!

Thank you so much!! I knew there was a way to manually set the UV data using the vertex commands but I had no idea on how to actually do it. This is more than adequate for my needs!!!

Again, thank's so much!!

My signature is NOT a moderator plaything! Stop changing it!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 20th Sep 2011 14:24
Ok man .Enjoy it

Cheers

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-10 12:36:31
Your offset time is: 2026-07-10 12:36:31